/* =====================================================================
   Carva design tokens + global styles (Shift identity system)
   One stylesheet for the whole app: components use these classes.
   ===================================================================== */
:root {
  /* colour */
  --red: #E3241B;        /* Kerf Red: pointer + accents only */
  --red-ink: #B81A12;    /* red for small text on light (5.9:1) */
  --ink: #0E0F11;        /* Obsidian */
  --graphite: #2A2D33;
  --slate: #5B616B;
  --bone: #F4F4F2;
  --paper: #FFFFFF;
  --rule: #DCDCD6;
  --rule-dark: #34373E;

  /* type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 3.6vw, 2.75rem);
  --step-hero: clamp(3.25rem, 9vw, 7.5rem);

  /* shift geometry for live text (em-relative, matches the logo ratios) */
  --shift-cut: 57%;
  --shift-gap: 0.04em;
  --shift-off: 0.095em;

  /* space */
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 2px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--display); font-size: var(--step-0); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-stretch: 125%; font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- the caliper pointer: the brand's red device ---------- */
.ptr { display: inline-block; width: 0; height: 0; border-top: 0.36em solid transparent; border-bottom: 0.36em solid transparent;
  border-left: 0.5em solid var(--red); margin-right: 0.6em; vertical-align: 0.02em; }
.ptr-list { list-style: none; margin: 16px 0 0; padding: 0; }
.ptr-list li { position: relative; padding: 8px 0 8px 20px; border-top: 1px solid var(--rule); font-size: var(--step--1); }
.ptr-list li::before { content: ""; position: absolute; left: 0; top: 13px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid var(--red); }
.eyebrow { font-family: var(--mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
.eyebrow--light { color: #B9BCC2; }

/* ---------- Shift applied to live text ---------- */
.shift { position: relative; display: block; width: max-content; max-width: 100%; }
.shift__ghost { visibility: hidden; display: block; }
.shift__top, .shift__bottom { position: absolute; inset: 0; display: block; white-space: nowrap; }
.shift__top { clip-path: inset(0 0 calc(100% - var(--shift-cut)) 0); transform: translateX(var(--shift-off)); }
.shift__bottom { clip-path: inset(calc(var(--shift-cut) + var(--shift-gap)) -0.1em -0.3em -0.1em); } /* negative insets let the kerf line show below the box */

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 var(--step--1)/1 var(--display); font-stretch: 112%;
  letter-spacing: 0.01em; padding: 14px 20px; border: 1px solid var(--ink); border-radius: var(--radius); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--red); border-color: var(--red); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.link-btn { font-family: var(--mono); font-size: 12px; color: var(--red-ink); text-decoration: none; white-space: nowrap; }
.link-btn::after { content: " →"; }
.link-btn:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 244, 242, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.site-header__brand { display: block; width: 168px; flex: none; }
.logo { display: block; } .logo svg { display: block; width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav__link { position: relative; font-size: var(--step--1); font-weight: 500; text-decoration: none; padding: 8px 12px 8px 16px; color: var(--graphite); }
.site-nav__link::before { content: ""; position: absolute; left: 2px; top: 50%; translate: 0 -50%; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: 7px solid var(--red); opacity: 0; transition: opacity .15s; }
.site-nav__link:hover { color: var(--ink); }
.site-nav__link.is-active { color: var(--ink); }
.site-nav__link.is-active::before { opacity: 1; }
.site-nav .btn { margin-left: 12px; padding: 11px 16px; }
.menu-btn { display: none; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; background: none; border: 1px solid var(--ink); padding: 8px 12px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--ink); }
.hero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.hero__title { font-size: var(--step-hero); font-weight: 800; line-height: 0.98; letter-spacing: -0.01em; margin: 18px 0 28px; }
.lede { font-size: var(--step-1); color: var(--graphite); max-width: 36ch; line-height: 1.45; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.specs__item { padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.specs__item:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--rule); }
.specs__item:nth-child(even) { padding-left: 16px; }
.specs dt { font-family: var(--mono); font-size: 12px; color: var(--slate); text-transform: uppercase; letter-spacing: .05em; }
.specs dd { margin: 6px 0 0; font-size: var(--step-2); font-weight: 700; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.specs dd span { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--slate); margin-left: 6px; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--rule); }
.section--dark { background: var(--ink); color: #fff; border-bottom-color: var(--ink); }
.section__head { display: grid; grid-template-columns: 160px 1fr; gap: 24px; margin-bottom: 40px; }
.section__head p:not(.section__n) { color: var(--slate); margin-top: 10px; max-width: 58ch; }
.section--dark .section__head p:not(.section__n) { color: #B9BCC2; }
.section__n { font-family: var(--mono); font-size: 12px; color: var(--red); text-transform: uppercase; letter-spacing: .06em; padding-top: 10px; }
.section--dark .section__n { color: #FF6B5E; }
.section__head--stack { display: block; margin: 0; }
.section__head--stack h2 { margin-top: 12px; }

/* services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--rule); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card__meta { font-family: var(--mono); font-size: 12px; color: var(--slate); display: flex; gap: 10px; }
.card__meta span { color: var(--red-ink); }
.card > p:not(.card__meta) { font-size: 15px; color: var(--graphite); }
.card .ptr-list { margin-top: auto; padding-top: 8px; }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule-dark); }
.step { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule-dark); color: #B9BCC2; padding: 20px 12px 20px 24px;
  cursor: pointer; display: flex; flex-direction: column; gap: 4px; position: relative; font: inherit; }
.step::before { content: ""; position: absolute; left: 4px; top: 26px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid var(--red); opacity: 0; transition: opacity .15s; }
.step:hover { color: #fff; }
.step.is-active { color: #fff; border-bottom-color: #fff; }
.step.is-active::before { opacity: 1; }
.step__n { font-family: var(--mono); font-size: 12px; }
.step__t { font-size: var(--step-1); font-weight: 700; font-stretch: 112%; }
.step-panel { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding-top: 36px; min-height: 150px; }
.step-panel__n { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; font-stretch: 125%; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.step-panel h3 { font-size: var(--step-2); margin-bottom: 10px; }
.step-panel p { color: #D3D5D9; max-width: 56ch; font-size: var(--step-1); line-height: 1.5; }

/* estimator */
.estimator { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.estimator__form { background: var(--paper); border: 1px solid var(--rule); padding: 28px; display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: var(--step--1); font-weight: 600; display: flex; justify-content: space-between; gap: 12px; padding: 0; }
.field small { font-weight: 400; color: var(--slate); }
.field output { font-family: var(--mono); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
select, input[type="text"], input[type="email"], input:not([type]), textarea, input[type="file"] {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bone); border: 1px solid var(--rule); border-radius: var(--radius); padding: 11px 12px; width: 100%; }
select:focus, input:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(227, 36, 27, 0.22); }
input[type="range"] { width: 100%; accent-color: var(--red); }
.seg { display: flex; flex-wrap: wrap; border: 1px solid var(--rule); border-radius: var(--radius); width: max-content; max-width: 100%; }
.field .seg__opt { font-size: 14px; font-weight: 500; padding: 9px 14px; cursor: pointer; border-right: 1px solid var(--rule); display: block; }
.seg__opt:last-child { border-right: 0; }
.seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opt.is-on { background: var(--ink); color: #fff; }
.seg__opt:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.toggle { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--red); }
.toggle small { color: var(--slate); }
.estimator__out { background: var(--ink); color: #fff; padding: 28px; position: sticky; top: 96px; display: grid; gap: 18px; }
.total { font-size: clamp(2.75rem, 5vw, 3.75rem); font-weight: 800; font-stretch: 112%; line-height: 1; font-variant-numeric: tabular-nums; }
.breakdown { margin: 0; display: grid; }
.breakdown div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule-dark); font-size: 14px; }
.breakdown dt { color: #B9BCC2; } .breakdown dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.estimator__out .btn--primary { background: var(--red); border-color: var(--red); }
.estimator__out .btn--primary:hover { background: #fff; color: var(--ink); border-color: #fff; }
.fine { font-family: var(--mono); font-size: 11.5px; color: #8E939B; }

/* materials */
.chips { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.chip { font: 500 12px var(--mono); padding: 8px 14px; border: 1px solid var(--rule); background: var(--paper); cursor: pointer; border-radius: 999px; color: var(--graphite); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--rule); }
.spec-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); font-size: 14px; vertical-align: middle; }
.spec-table thead th { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
.spec-table tbody th { font-weight: 700; font-stretch: 112%; font-size: 15px; position: relative; }
.spec-table tr.is-selected th::before { content: ""; position: absolute; left: 4px; top: 50%; translate: 0 -50%; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid var(--red); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px !important; white-space: nowrap; }
.tag { font: 500 11px var(--mono); padding: 3px 7px; border: 1px solid var(--rule); border-radius: 2px; }

/* work */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.work__item { margin: 0; background: var(--paper); border: 1px solid var(--rule); }
.work__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--rule); }
.work__item figcaption { padding: 16px 18px 18px; display: grid; gap: 2px; }
.work__item b { font-stretch: 112%; font-size: var(--step-1); }
.work__kind, .work__spec { font-family: var(--mono); font-size: 12px; color: var(--slate); }
.work__kind { color: var(--red-ink); text-transform: uppercase; letter-spacing: .05em; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__form { background: var(--paper); border: 1px solid var(--rule); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact__form .field--full, .contact__form fieldset, .contact__form .field:has(input[type="file"]) { grid-column: 1 / -1; }
.contact__form .btn { justify-self: start; }
.err { color: var(--red-ink); font-size: 13px; }
.hint { font-family: var(--mono); font-size: 12px; color: var(--slate); }
.contact__done { background: var(--paper); border: 1px solid var(--rule); padding: 32px; display: grid; gap: 12px; justify-items: start; }
.contact__done h3 { font-size: var(--step-2); }
.contact__done p:not(.eyebrow) { color: var(--graphite); }

/* footer */
.site-footer { background: var(--ink); color: #fff; padding: 64px 0 28px; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: start; padding-bottom: 40px; border-bottom: 1px solid var(--rule-dark); }
.site-footer__brand { display: grid; gap: 14px; max-width: 280px; }
.site-footer__brand p { font-family: var(--mono); font-size: 13px; color: #B9BCC2; }
.site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.site-footer nav a { text-decoration: none; color: #D3D5D9; font-size: 15px; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.site-footer__sym { width: 72px; }
.site-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; font-family: var(--mono); font-size: 12px; color: #8E939B; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .estimator, .contact { grid-template-columns: 1fr; }
  .estimator__out { position: static; }
  .steps { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__sym { display: none; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bone); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; }
  .site-nav.is-open { display: flex; }
  .site-nav__link { padding: 12px 16px; border-bottom: 1px solid var(--rule); }
  .site-nav .btn { margin: 12px 0 0; }
  .section__head, .step-panel { grid-template-columns: 1fr; gap: 8px; }
  .contact__form { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .site-header__brand { width: 140px; }
  .specs dd { font-size: var(--step-1); }
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Shop additions (collection, buy options, order configurator, shipping)
   ===================================================================== */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.product { background: var(--paper); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--rule); }
.product__body { padding: 18px; display: grid; gap: 8px; flex: 1; align-content: start; }
.product__cat { font-family: var(--mono); font-size: 12px; color: var(--red-ink); text-transform: uppercase; letter-spacing: .05em; }
.product h3 { font-size: var(--step-1); }
.product p { font-size: 14px; color: var(--graphite); }
.product__spec { font-family: var(--mono); font-size: 12px; color: var(--slate); }
.product__buy { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); margin-top: auto; }
.product__buy a, .product__buy button { font: 600 13px/1.25 var(--display); font-stretch: 112%; padding: 14px 12px; text-align: center; text-decoration: none;
  background: var(--paper); color: var(--ink); border: 0; cursor: pointer; display: grid; gap: 3px; transition: background .15s, color .15s; }
.product__buy a { border-right: 1px solid var(--rule); }
.product__buy small { font: 400 11.5px var(--mono); color: var(--slate); }
.product__buy a:hover, .product__buy button:hover { background: var(--ink); color: #fff; }
.product__buy a:hover small, .product__buy button:hover small { color: #B9BCC2; }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.way { border: 1px solid var(--rule-dark); padding: 28px; display: grid; gap: 12px; align-content: start; }
.way__n { font-family: var(--mono); font-size: 12px; color: #FF6B5E; text-transform: uppercase; letter-spacing: .06em; }
.way h3 { font-size: var(--step-2); }
.way p { color: #D3D5D9; }
.way .ptr-list li { border-top-color: var(--rule-dark); color: #D3D5D9; font-size: 15px; }
.way .btn--ghost { color: #fff; border-color: #fff; justify-self: start; margin-top: 6px; }
.way .btn--ghost:hover { background: #fff; color: var(--ink); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.field .swatch { font-weight: 500; display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 7px 12px 7px 8px; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; background: var(--paper); }
.swatch i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: block; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.ship { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.ship div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); }
.ship b { display: block; font-stretch: 112%; font-size: var(--step-1); }
.ship span { font-family: var(--mono); font-size: 12.5px; color: var(--slate); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about__mark { background: var(--ink); padding: 18% 14%; }
.about p { font-size: var(--step-1); line-height: 1.5; color: var(--graphite); max-width: 46ch; }
.about p + p { margin-top: 16px; }
.order-summary { font-family: var(--mono); font-size: 13px; background: var(--bone); border: 1px solid var(--rule); padding: 12px 14px; color: var(--graphite); }
@media (max-width: 820px) { .ways, .about { grid-template-columns: 1fr; } }

/* =====================================================================
   Accessibility panel + modes (classes set on <html>)
   ===================================================================== */
.site-header__row { position: relative; }
.site-nav { order: 1; margin-left: auto; }
.site-header__tools { order: 2; display: flex; align-items: center; gap: 8px; }
/* header utility: 40px outlined square with the 45° chamfer of the C */
.a11y-btn { width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; flex: none; display: block; }
.a11y-btn svg { width: 40px; height: 40px; display: block; overflow: visible; }
.a11y-btn__frame { fill: transparent; stroke: var(--ink); stroke-width: 1; transition: fill .15s, stroke .15s; }
.a11y-btn__icon { stroke: var(--ink); transition: stroke .15s; }
.a11y-btn__icon .dot { fill: var(--ink); transition: fill .15s; }
.a11y-btn:hover .a11y-btn__frame, .a11y-btn[aria-expanded="true"] .a11y-btn__frame { fill: var(--ink); }
.a11y-btn:hover .a11y-btn__icon, .a11y-btn[aria-expanded="true"] .a11y-btn__icon { stroke: #fff; }
.a11y-btn:hover .dot, .a11y-btn[aria-expanded="true"] .dot { fill: #fff; }
.a11y-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.a11y-panel { position: absolute; right: 0; top: calc(100% + 1px); z-index: 60; width: min(330px, calc(100vw - 2 * var(--gutter))); background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); border-radius: var(--radius); box-shadow: 0 14px 32px rgba(0,0,0,.16); padding: 18px 18px 14px; display: grid; gap: 0; }
.a11y-panel__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.a11y-panel__head p { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); }
.a11y-panel h2 { font-size: 20px; font-stretch: 125%; margin-top: 2px; }
.a11y-panel__head button { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; background: none; border: 1px solid var(--ink);
  border-radius: var(--radius); padding: 7px 10px; cursor: pointer; color: var(--ink); }
.a11y-panel__head button:hover { background: var(--ink); color: #fff; }
.a11y-opt { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left;
  font: 500 15px/1.3 var(--display); background: none; color: var(--graphite); border: 0; border-bottom: 1px solid var(--rule); padding: 13px 0 13px 18px; cursor: pointer; }
.a11y-opt::before { content: ""; position: absolute; left: 2px; top: 50%; translate: 0 -50%; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: 7px solid var(--red); opacity: 0; transition: opacity .15s; }
.a11y-opt::after { content: "No"; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--slate); flex: none; }
.a11y-opt:hover { color: var(--ink); }
.a11y-opt[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.a11y-opt[aria-pressed="true"]::before { opacity: 1; }
.a11y-opt[aria-pressed="true"]::after { content: "Activo"; color: var(--red-ink); }
.a11y-opt:focus-visible, .a11y-panel__head button:focus-visible, .a11y-reset:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.a11y-reset { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; background: none; border: 0; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; justify-self: start; padding: 12px 0 2px; color: var(--slate); }
.a11y-reset:hover { color: var(--ink); }

/* larger text */
html.a11y-large body { zoom: 1.18; }
/* dark high-contrast mode: Shift palette inverted (Obsidian ground, Bone text, Kerf Red accents) */
html.a11y-contrast {
  --bone: #0E0F11;       /* page ground */
  --paper: #17191D;      /* raised surfaces: cards, forms, panel */
  --ink: #F4F4F2;        /* primary text and lines */
  --graphite: #E2E4E7;   /* secondary text (15:1) */
  --slate: #B9BCC2;      /* captions, labels (10:1) */
  --rule: #3A3E46;       /* dividers */
  --rule-dark: #3A3E46;
  --red-ink: #FF6B5E;    /* red for small text on dark (6.6:1) */
  color-scheme: dark;
}
html.a11y-contrast body { background: var(--bone); }
html.a11y-contrast .site-header { background: rgba(14, 15, 17, 0.94); border-bottom-color: var(--rule); }
/* marks drawn in Obsidian become Bone */
html.a11y-contrast .logo [fill="#0E0F11"] { fill: #F4F4F2; }
/* sections that were already dark go one step deeper so they still read as distinct bands */
html.a11y-contrast .section--dark, html.a11y-contrast .site-footer { background: #000000; border-color: var(--rule); }
html.a11y-contrast .estimator__out { background: #000000; border: 1px solid var(--rule); }
html.a11y-contrast .about__mark { background: #000000; border: 1px solid var(--rule); }
html.a11y-contrast .section__n { color: #FF6B5E; }
/* filled controls: Bone fill with Obsidian text; red stays the hover/active energy */
html.a11y-contrast .btn--primary { background: #F4F4F2; color: #0E0F11; border-color: #F4F4F2; }
html.a11y-contrast .btn--primary:hover { background: var(--red); border-color: var(--red); color: #fff; }
html.a11y-contrast .btn--ghost { color: #F4F4F2; border-color: #F4F4F2; }
html.a11y-contrast .btn--ghost:hover { background: #F4F4F2; color: #0E0F11; }
html.a11y-contrast .estimator__out .btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
html.a11y-contrast .estimator__out .btn--primary:hover { background: #F4F4F2; border-color: #F4F4F2; color: #0E0F11; }
html.a11y-contrast .field .seg__opt.is-on, html.a11y-contrast .chip.is-on { background: #F4F4F2; color: #0E0F11; border-color: #F4F4F2; }
html.a11y-contrast .product__buy a:hover, html.a11y-contrast .product__buy button:hover { background: #F4F4F2; color: #0E0F11; }
html.a11y-contrast .product__buy a:hover small, html.a11y-contrast .product__buy button:hover small { color: #2A2D33; }
html.a11y-contrast .a11y-panel__head button:hover { background: #F4F4F2; color: #0E0F11; }
html.a11y-contrast .a11y-btn:hover .a11y-btn__icon, html.a11y-contrast .a11y-btn[aria-expanded="true"] .a11y-btn__icon { stroke: #0E0F11; }
html.a11y-contrast .a11y-btn:hover .dot, html.a11y-contrast .a11y-btn[aria-expanded="true"] .dot { fill: #0E0F11; }
html.a11y-contrast .skip { background: #F4F4F2; color: #0E0F11; }
/* form fields and swatches */
html.a11y-contrast select, html.a11y-contrast input, html.a11y-contrast textarea { background: #0E0F11; border-color: #5B616B; color: #F4F4F2; }
html.a11y-contrast ::placeholder { color: #8E939B; }
html.a11y-contrast .swatch i { border-color: rgba(255, 255, 255, 0.45); }
html.a11y-contrast .order-summary { background: #0E0F11; }
/* product illustrations sit on a light card: frame them so they don't glare */
html.a11y-contrast .product img, html.a11y-contrast .work__item img { filter: brightness(0.92); border-bottom-color: var(--rule); }
/* highlight links and buttons */
html.a11y-links a, html.a11y-links button:not(.a11y-opt):not(.a11y-btn) { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px dashed var(--red) !important; outline-offset: 2px; }
/* readable text: spacing + no shift cut on headlines */
html.a11y-readable body { letter-spacing: 0.04em; word-spacing: 0.12em; line-height: 1.75; }
html.a11y-readable p, html.a11y-readable li, html.a11y-readable dd { line-height: 1.75 !important; }
html.a11y-readable .shift__top, html.a11y-readable .shift__bottom { display: none; }
html.a11y-readable .shift__ghost { visibility: visible; }
html.a11y-readable .eyebrow, html.a11y-readable .section__n, html.a11y-readable thead th { text-transform: none; }
/* stop motion */
html.a11y-motion { scroll-behavior: auto; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { transition: none !important; animation: none !important; }
@media print { .a11y-btn, .a11y-panel { display: none; } }
@media (max-width: 820px) { .site-header__tools { margin-left: auto; } }
@media (max-width: 820px) { .site-nav { left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 100%; } }

/* =====================================================================
   Kerf emphasis: a thin red cut line under one key word per heading.
   The text stays Obsidian (or Bone in dark mode); only the cut is red.
   ===================================================================== */
.kerf { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: max(2px, 0.05em);
  text-underline-offset: 0.16em; text-decoration-skip-ink: auto; }
.hero__title .kerf { text-decoration-thickness: max(3px, 0.045em); text-underline-offset: 0.12em; }
/* red on hover for text links (buttons already turn red) */
.site-nav__link:hover, .site-footer nav a:hover, .site-footer__base a:hover { color: var(--red-ink); }
.site-footer nav a:hover, .site-footer__base a:hover { color: #FF6B5E; }
html.a11y-contrast .site-nav__link:hover { color: #FF6B5E; }

/* ---- PROPOSAL: labelled accessibility button ---- */
.a11y-btn { width: auto; height: 44px; padding: 0; border: 0; cursor: pointer; background: var(--ink);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); }
.a11y-btn svg { width: 22px; height: 22px; overflow: visible; }
.a11y-btn__in { position: relative; display: flex; align-items: center; gap: 9px; height: 40px; margin: 2px; padding: 0 14px 0 12px;
  background: var(--bone); color: var(--ink); clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px); transition: background .15s, color .15s, padding .15s; }
.a11y-btn__label { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.a11y-btn:hover .a11y-btn__in, .a11y-btn[aria-expanded="true"] .a11y-btn__in { background: var(--ink); color: #fff; padding-left: 24px; }
.a11y-btn__in::before { content: ""; position: absolute; left: 9px; top: 50%; translate: 0 -50%; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: 7px solid var(--red); opacity: 0; transition: opacity .15s; }
.a11y-btn:hover .a11y-btn__in::before, .a11y-btn[aria-expanded="true"] .a11y-btn__in::before { opacity: 1; }
html.a11y-contrast .a11y-btn { background: #F4F4F2; }
html.a11y-contrast .a11y-btn:hover .a11y-btn__in, html.a11y-contrast .a11y-btn[aria-expanded="true"] .a11y-btn__in { background: #F4F4F2; color: #0E0F11; }
@media (max-width: 820px) {
  .a11y-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .a11y-btn__in { padding: 0 9px; }
  .a11y-btn:hover .a11y-btn__in, .a11y-btn[aria-expanded="true"] .a11y-btn__in { padding-left: 9px; }
  .a11y-btn__in::before { display: none; }
  .a11y-btn svg { width: 24px; height: 24px; }
}
/* mobile menu button matches the accessibility button: 2px outline, 44px tall */
.menu-btn { border-width: 2px; height: 44px; padding: 0 14px; color: var(--ink); border-radius: 0; }
.menu-btn:hover { background: var(--ink); color: var(--bone); }

/* ---------- catalogue paginator (Shift style) ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--ink); }
.pager__nums { display: flex; gap: 4px; flex-wrap: wrap; }
.pager__num, .pager__step { font: 500 13px var(--mono); letter-spacing: .04em; background: none; color: var(--graphite); border: 1px solid transparent; cursor: pointer; }
.pager__num { position: relative; min-width: 44px; height: 44px; padding: 0 10px 0 16px; }
.pager__num::before { content: ""; position: absolute; left: 4px; top: 50%; translate: 0 -50%; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: 7px solid var(--red); opacity: 0; transition: opacity .15s; }
.pager__num:hover { color: var(--ink); border-color: var(--rule); }
.pager__num.is-on { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.pager__num.is-on::before { opacity: 1; }
.pager__step { height: 44px; padding: 0 14px; text-transform: uppercase; border-color: var(--ink); color: var(--ink); }
.pager__step:hover:not(:disabled) { background: var(--ink); color: var(--bone); }
.pager__step:disabled { opacity: .35; cursor: default; }
.pager__num:focus-visible, .pager__step:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.pager__info { flex-basis: 100%; order: 3; font: 400 12px var(--mono); color: var(--slate); }
@media (max-width: 560px) { .pager__nums { order: 2; flex-basis: 100%; justify-content: center; } .pager__step { flex: 1; } }
