/* Syxqora site.css
   One stylesheet for index, repairs, builds, method and contact.

   Component reference for page markup
   -----------------------------------
   Frame
     a.sx-skip[href="#main"]
     header.sx-bar > a.sx-bar__mark (optional span.sx-bar__glyph > svg) + nav.sx-nav > ul > li > a.sx-nav__link
       current page link carries aria-current="page"
     main#main.sx-main
     .sx-wrap                       centred column, same inset as the hero panel
     footer.sx-foot > .sx-wrap > .sx-foot__grid
       .sx-foot__brand (.sx-foot__mark, .sx-foot__place), .sx-foot__mail, nav.sx-foot__nav > ul, .sx-foot__copy

   Home hero
     section.sx-hero > figure.sx-plate
       svg.sx-plate__svg[viewBox][preserveAspectRatio="xMidYMid slice"][data-vb-narrow="x y w h"]
         g.sx-plate__layer[data-depth="0.02|0.04|0.07|0.1|0.14"]
         Overdraw every layer about 160 units past the top and sides so parallax never shows an edge.
       figcaption.sx-plate__caption > span.sx-plate__tag + p.sx-plate__text + a.sx-plate__cue[href="#intro"]
         cue holds span.sx-plate__cue-label + span.sx-plate__cue-line
     section.sx-intro#intro > .sx-intro__grid > h1.sx-intro__title + p.sx-intro__standfirst (+ dl.sx-keyline)

   Sections
     section.sx-section (--tight, --loose) > .sx-section__head > p.sx-label + h2.sx-section__title + p.sx-section__aside

   Card grid
     .sx-deck            loose 6 column grid, cards start where they like and keep their own height
     .sx-deck--even      equal height cards, every foot on the same floor
     .sx-deck--flow      five step cards stepping down like a fanned stack
     .sx-deck--method    three columns for the fourteen method steps
     Placement on a card: .sx-span-2/3/4/6, .sx-at-1..5, .sx-rows-2, .sx-drop-1/2/3, .sx-tuck, .sx-tuck-lg

   Card
     article.sx-card.sx-card--t1..t5 (or --dark) [data-tabs when interactive]
       .sx-card__tabs  (modifiers on card: .sx-card--tab-mid, .sx-card--tab-end)
         a.sx-card__tab[href="#panel-id"]      interactive tab, JS turns it into a real tab
         span.sx-card__tab.sx-card__tab--static   label tab in the card's own tint
         span.sx-card__tab.sx-card__tab--accent   orange tab, used only on the won't-do card
       .sx-card__body
         span.sx-card__num[aria-hidden]  oversized tone-on-tone numeral (.sx-card__num--bl for bottom left)
         .sx-card__head (title block + optional svg.sx-spot)
         p.sx-card__label, h3.sx-card__title (--lg), p.sx-card__note
         .sx-card__panels > section.sx-card__panel#panel-id > h4.sx-card__panel-title + content
         .sx-card__foot   pinned to the bottom of the card, holds .sx-price and .sx-badge
     Without JS every panel shows, stacked under its own small title.

   Inside cards
     ul.sx-list (li or li > .sx-list__row with span + span.sx-list__val)
     ol.sx-steps      auto numbered 01, 02, 03
     dl.sx-facts > div.sx-facts__row > dt + dd   (.sx-facts__row--off for closed, data-days="2-5" marks today, 0 = Sunday)
     .sx-price > span.sx-price__from + span.sx-price__val + span.sx-price__unit (+ span.sx-price__sep)
     span.sx-badge
     ol.sx-ledger > li.sx-ledger__row > span.sx-ledger__no + span.sx-ledger__item + span.sx-ledger__job + span.sx-ledger__state (span.sx-meter > i, i.is-on)
     ul.sx-rack > li.sx-rack__row > span.sx-rack__name + span.sx-rack__origin + span.sx-rack__sets (i per set) + span.sx-rack__count
     .sx-note > p + p.sx-note__sign   (sign is just "Callum", the short rule is drawn by CSS)
     .sx-prose, ul.sx-nolist, h4.sx-card__sub, .sx-card__grid
     figure.sx-outline > svg (use .sx-ink, .sx-ink--soft, .sx-ink--faint, .sx-ink--dash) + figcaption

   Inner page head
     header.sx-head (--t2) > span.sx-head__num + p.sx-head__label + h1.sx-head__title + p.sx-head__lede + .sx-head__aside

   Repairs filter
     .sx-filter[data-target="grid-id"] > button.sx-filter__btn[data-filter="all|setups|frets|..."][aria-pressed] + span.sx-filter__count
     grid element gets the id, cards carry data-cat="setups"
     The filter bar only appears when the script runs; with JS off every card simply shows.

   Method
     .sx-method > aside.sx-method__aside > nav.sx-rail > p.sx-rail__label + ol.sx-rail__list > li > a.sx-rail__link[href="#step-01"] > span.sx-rail__n + span.sx-rail__t
     .sx-method__main > .sx-deck.sx-deck--method > article.sx-card#step-01

   Contact
     .sx-contact > p.sx-label + a.sx-mail[href="mailto:hello@syxqora.com"] + p.sx-contact__note

   Utility
     .sx-btn (> span.sx-arrow), .sx-link (> span.sx-arrow), .sx-label, .sx-vh
     [data-reveal] fades in on scroll, [data-reveal-group] staggers children, [data-wipe] masked wipe
     Do not put data-reveal on the homepage card index: the plan keeps it still.
*/

:root {
  --g0: #1E2422;
  --g1: #252C29;
  --g2: #2C3531;
  --g3: #34403B;
  --g4: #3E4B45;
  --g5: #4A5852;
  --g6: #56655F;
  --g7: #63736C;
  --deep: #161B19;
  --text: #C6F0DC;
  --soft: #B2D9C6;
  --muted: #82A898;
  --line: #3D4A44;
  --accent: #FF5A1F;

  --display: Futura, 'Futura PT', 'Century Gothic', 'URW Gothic', 'Avenir Next', 'Trebuchet MS', sans-serif;
  --body: 'Avenir Next', Avenir, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --fs-0: 0.6875rem;
  --fs-1: 0.8125rem;
  --fs-2: 0.9375rem;
  --fs-3: 1.0625rem;
  --fs-4: 1.375rem;
  --fs-5: 2rem;
  --fs-6: clamp(2.25rem, 1.3rem + 2.4vw, 3rem);
  --fs-7: clamp(2.25rem, 1rem + 4.4vw, 4.5rem);
  --fs-8: clamp(5.25rem, 3.6rem + 3.2vw, 7rem);
  --fs-9: clamp(6.5rem, 2.4rem + 11vw, 11rem);

  --max: 1392px;
  --gutter: 24px;
  --gap: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fade: 160ms;
}

@media (max-width: 680px) {
  :root { --gutter: 16px; }
}

/* Base */

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--g0);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--g0);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--fs-2);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

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

p, li, dd, dt, figcaption, a, span { overflow-wrap: anywhere; }

a { color: inherit; }

img, svg { max-width: 100%; }
svg { height: auto; }

ul, ol { margin: 0; padding: 0; }

button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--g0); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.sx-vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sx-skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: var(--g0);
  font-family: var(--display);
  font-size: var(--fs-0);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
}
.sx-skip:focus { top: 12px; }

.sx-label {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: var(--fs-0);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.sx-wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.sx-main { display: block; }

/* Top bar */

.sx-bar {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}

.sx-bar__mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: var(--fs-3);
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.sx-bar__glyph {
  display: inline-block;
  width: 1.375rem;
  flex: none;
  color: var(--muted);
  transition: color 0.25s var(--ease), transform 0.4s var(--ease);
}
.sx-bar__glyph svg { display: block; width: 100%; height: auto; }
.sx-bar__mark:hover .sx-bar__glyph { color: var(--text); transform: rotate(-12deg); }

.sx-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.sx-nav a,
.sx-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  font-family: var(--display);
  font-size: var(--fs-0);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.sx-nav a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.sx-nav a:hover { color: var(--text); }
.sx-nav a:hover::after { transform: scaleX(1); }
.sx-nav a[aria-current="page"] { color: var(--text); }
.sx-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--muted); }

@media (max-width: 720px) {
  .sx-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-block: 14px 6px;
  }
  .sx-nav { border-top: 1px solid var(--line); padding-top: 4px; }
  .sx-nav ul { gap: 0; justify-content: space-between; }
  .sx-nav a { padding: 10px 6px; letter-spacing: 0.1em; }
  .sx-nav li:first-child a { padding-left: 0; }
  .sx-nav li:last-child a { padding-right: 0; }
  .sx-nav a::after { left: 6px; right: 6px; }
  .sx-nav li:first-child a::after { left: 0; }
  .sx-nav li:last-child a::after { right: 0; }
}
@media (max-width: 350px) {
  .sx-nav a { padding-inline: 3px; letter-spacing: 0.06em; }
  .sx-nav a::after { left: 3px; right: 3px; }
}

/* Hero plate */

.sx-hero {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.sx-plate {
  position: relative;
  margin: 0;
  height: 86vh;
  min-height: 540px;
  max-height: 1040px;
  overflow: hidden;
  isolation: isolate;
  background: var(--g1);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.sx-plate__svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  transform-origin: 52% 46%;
}

.sx-plate__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 40px;
  row-gap: 8px;
  align-items: end;
  padding: 18px 28px 20px 24px;
  background: var(--g1);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-top-right-radius: 4px;
}

.sx-plate__tag {
  grid-column: 1;
  font-family: var(--display);
  font-size: var(--fs-0);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sx-plate__text {
  grid-column: 1;
  margin: 0;
  max-width: 64ch;
  font-size: var(--fs-1);
  line-height: 1.55;
  color: var(--soft);
}
.sx-plate__text strong { color: var(--text); font-weight: 500; }

.sx-plate__cue {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 2px;
  color: var(--text);
  text-decoration: none;
}
.sx-plate__cue-label {
  font-family: var(--display);
  font-size: var(--fs-0);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sx-plate__cue-line {
  position: relative;
  display: block;
  width: 1px;
  height: 2.25rem;
  background: currentColor;
  transition: height 0.35s var(--ease);
}
.sx-plate__cue-line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}
.sx-plate__cue:hover .sx-plate__cue-line { height: 2.875rem; }

@media (max-width: 680px) {
  .sx-plate {
    height: 80vh;
    height: 80svh;
    min-height: 460px;
  }
  .sx-plate__svg text { display: none; }
  .sx-plate__caption {
    width: 100%;
    right: 0;
    column-gap: 18px;
    padding: 14px 16px 16px;
    border-right: 0;
    border-radius: 0;
  }
  .sx-plate__text { font-size: var(--fs-1); line-height: 1.5; }
  .sx-plate__cue-line { height: 1.75rem; }
}

/* SVG ink helpers, shared by the plate, outlines and spot drawings */

.sx-f0 { fill: var(--g0); }
.sx-f1 { fill: var(--g1); }
.sx-f2 { fill: var(--g2); }
.sx-f3 { fill: var(--g3); }
.sx-f4 { fill: var(--g4); }
.sx-f5 { fill: var(--g5); }
.sx-f6 { fill: var(--g6); }
.sx-f7 { fill: var(--g7); }
.sx-ft { fill: var(--text); }
.sx-nofill { fill: none; }
.sx-s2 { stroke: var(--g2); }
.sx-s3 { stroke: var(--g3); }
.sx-s4 { stroke: var(--g4); }
.sx-s5 { stroke: var(--g5); }
.sx-s6 { stroke: var(--g6); }
.sx-s7 { stroke: var(--g7); }
.sx-sm { stroke: var(--muted); }
.sx-st { stroke: var(--text); }
.sx-pencil { stroke: var(--accent); fill: none; stroke-linecap: round; }

.sx-ink {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.sx-ink--soft { stroke: var(--muted); stroke-width: 1; }
.sx-ink--faint { stroke: var(--g6); stroke-width: 1; }
.sx-ink--dash { stroke-dasharray: 3 4; }
.sx-ink--fill { fill: var(--g3); }

.sx-outline {
  margin: 2px 0 22px;
  padding: 14px 0 10px;
  border-top: 1px solid var(--edge, var(--line));
  border-bottom: 1px solid var(--edge, var(--line));
}
.sx-outline svg {
  display: block;
  width: 100%;
  height: auto;
}
.sx-outline svg text {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.12em;
  fill: var(--cmuted, var(--muted));
}
.sx-outline figcaption {
  margin-top: 8px;
  font-family: var(--display);
  font-size: var(--fs-0);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cmuted, var(--muted));
}

.sx-spot {
  display: block;
  width: 100%;
  max-width: 5.5rem;
  height: auto;
  flex: none;
  color: var(--cmuted, var(--muted));
  transition: color 0.3s var(--ease);
}
.sx-card:hover .sx-spot { color: var(--text); }

/* Intro beneath the hero */

.sx-intro {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  padding: clamp(64px, 8vw, 128px) 0 clamp(48px, 5vw, 80px);
  scroll-margin-top: 24px;
}
.sx-intro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.sx-intro__label { grid-column: 1 / -1; }
.sx-intro__title {
  grid-column: 1 / span 10;
  max-width: 17ch;
  padding-bottom: 0.08em;
  font-size: var(--fs-7);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
}
.sx-intro__standfirst {
  grid-column: 6 / span 6;
  margin: clamp(28px, 3vw, 44px) 0 0;
  max-width: 40ch;
  font-size: var(--fs-4);
  line-height: 1.4;
  color: var(--soft);
}
.sx-intro__standfirst strong { color: var(--text); font-weight: 500; }

.sx-keyline {
  grid-column: 1 / -1;
  margin: clamp(40px, 5vw, 72px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.sx-keyline > div {
  padding: 16px 24px 0 0;
  min-width: 0;
}
.sx-keyline > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.sx-keyline dt {
  font-family: var(--display);
  font-size: var(--fs-0);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sx-keyline dd {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: var(--fs-4);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  font-variant-numeric: lining-nums;
}

@media (max-width: 900px) {
  .sx-intro__title { grid-column: 1 / -1; }
  .sx-intro__standfirst { grid-column: 1 / -1; font-size: var(--fs-3); }
  .sx-keyline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-keyline > div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
  .sx-keyline > div + div { padding-left: 0; border-left: 0; }
  .sx-keyline > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .sx-keyline dd { font-size: var(--fs-3); }
}

/* Sections */

.sx-section { margin-top: clamp(72px, 8vw, 120px); }
.sx-section--tight { margin-top: clamp(40px, 5vw, 64px); }
.sx-section--loose { margin-top: clamp(96px, 11vw, 168px); }
.sx-section--flush { margin-top: 0; }

.sx-section__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: 12px;
  align-items: end;
  padding-top: 18px;
  margin-bottom: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.sx-section__head .sx-label { grid-column: 1 / -1; margin-bottom: 4px; }
.sx-section__title {
  font-size: var(--fs-5);
  line-height: 1.08;
  max-width: 22ch;
}
.sx-section__aside {
  margin: 0;
  max-width: 52ch;
  color: var(--soft);
}

@media (max-width: 760px) {
  .sx-section__head { grid-template-columns: minmax(0, 1fr); }
  .sx-section__title { font-size: 1.625rem; }
}

/* Card grids */

.sx-deck {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}
.sx-deck > * { min-width: 0; }

.sx-deck--even { align-items: stretch; }

.sx-deck--flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
}
.sx-deck--flow > :nth-child(2) { margin-top: 20px; }
.sx-deck--flow > :nth-child(3) { margin-top: 40px; }
.sx-deck--flow > :nth-child(4) { margin-top: 60px; }
.sx-deck--flow > :nth-child(5) { margin-top: 80px; }

.sx-deck--method {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  row-gap: 22px;
}

.sx-span-2 { grid-column-end: span 2; }
.sx-span-3 { grid-column-end: span 3; }
.sx-span-4 { grid-column-end: span 4; }
.sx-span-6 { grid-column-end: span 6; }
.sx-at-1 { grid-column-start: 1; }
.sx-at-2 { grid-column-start: 2; }
.sx-at-3 { grid-column-start: 3; }
.sx-at-4 { grid-column-start: 4; }
.sx-at-5 { grid-column-start: 5; }
.sx-rows-2 { grid-row-end: span 2; }
.sx-drop-1 { margin-top: 24px; }
.sx-drop-2 { margin-top: 56px; }
.sx-drop-3 { margin-top: 96px; }
.sx-tuck { margin-top: -10px; }
.sx-tuck-lg { margin-top: -16px; }

.sx-deck--method .sx-span-2 { grid-column-end: span 2; }

@media (max-width: 1200px) {
  .sx-deck--method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .sx-deck .sx-span-2,
  .sx-deck .sx-span-3 { grid-column-end: span 3; }
  .sx-deck .sx-span-4,
  .sx-deck .sx-span-6 { grid-column-end: span 6; }
  .sx-deck [class*="sx-at-"] { grid-column-start: auto; }
  .sx-drop-2 { margin-top: 28px; }
  .sx-drop-3 { margin-top: 40px; }
  .sx-deck--flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-deck--flow > :nth-child(n) { margin-top: 0; }
  .sx-deck--flow > :nth-child(even) { margin-top: 24px; }
  .sx-deck--method .sx-span-2 { grid-column-end: span 2; }
}

@media (max-width: 680px) {
  .sx-deck,
  .sx-deck--flow,
  .sx-deck--method { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .sx-deck > .sx-card,
  .sx-deck--flow > :nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .sx-deck > .sx-card + .sx-card { margin-top: -10px; }
  .sx-deck > .sx-card:nth-child(odd) { margin-right: 10px; }
  .sx-deck > .sx-card:nth-child(even) { margin-left: 10px; }
  .sx-deck .sx-rows-2 { grid-row-end: auto; }
}

/* Card */

.sx-card {
  --card: var(--g2);
  --num: var(--g4);
  --tabbg: var(--g1);
  --edge: var(--g3);
  --edge-hi: var(--g4);
  --notebg: var(--g1);
  --cmuted: var(--muted);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  scroll-margin-top: 28px;
}

.sx-card--t1 { --card: var(--g1); --num: var(--g3); --tabbg: var(--g0); --edge: var(--g2); --edge-hi: var(--g3); --notebg: var(--g0); --cmuted: var(--muted); }
.sx-card--t2 { --card: var(--g2); --num: var(--g4); --tabbg: var(--g1); --edge: var(--g3); --edge-hi: var(--g4); --notebg: var(--g1); --cmuted: var(--muted); }
.sx-card--t3 { --card: var(--g3); --num: var(--g5); --tabbg: var(--g2); --edge: var(--g4); --edge-hi: var(--g5); --notebg: var(--g2); --cmuted: #95BBAA; }
.sx-card--t4 { --card: var(--g4); --num: var(--g6); --tabbg: var(--g3); --edge: var(--g5); --edge-hi: var(--g6); --notebg: var(--g3); --cmuted: #A8CDBB; }
.sx-card--t5 { --card: var(--g5); --num: var(--g7); --tabbg: var(--g4); --edge: var(--g6); --edge-hi: var(--g7); --notebg: var(--g4); --cmuted: #B4D9C7; }
.sx-card--dark { --card: var(--deep); --num: var(--g2); --tabbg: var(--g0); --edge: #2A332F; --edge-hi: var(--g3); --notebg: var(--g0); --cmuted: var(--muted); }

.sx-card__tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 3px;
  padding: 0 16px 0 20px;
  margin-bottom: -1px;
}
.sx-card--tab-mid .sx-card__tabs { padding-left: clamp(20px, 22%, 160px); }
.sx-card--tab-end .sx-card__tabs { justify-content: flex-end; padding-right: 20px; }

.sx-card__tab {
  appearance: none;
  display: inline-block;
  margin: 0;
  padding: 9px 14px 8px;
  font-family: var(--display);
  font-size: var(--fs-0);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cmuted);
  background: var(--tabbg);
  border: 1px solid var(--edge);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--fade) ease, background-color var(--fade) ease, border-color var(--fade) ease;
}
a.sx-card__tab:hover,
button.sx-card__tab:hover { color: var(--text); }

.sx-card__tab[aria-selected="true"],
.sx-card__tab.is-active {
  color: var(--g0);
  background: var(--accent);
  border-color: var(--accent);
}
.sx-card__tab[aria-selected="true"]:hover,
.sx-card__tab.is-active:hover { color: var(--g0); }

.sx-card__tab--static {
  cursor: default;
  color: var(--text);
  background: var(--card);
  border-top-color: var(--edge-hi);
}
.sx-card__tab--accent {
  cursor: default;
  color: var(--g0);
  background: var(--accent);
  border-color: var(--accent);
}

/* Phone tab rows: one line, scrolling sideways, still attached to the card top.
   Sits after the base tab rules so it wins on source order. */
@media (max-width: 680px) {
  .sx-card__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-left: 12px;
    padding-right: 12px;
  }
  .sx-card__tabs::-webkit-scrollbar { display: none; }
  .sx-card__tab { padding: 8px 9px 7px; letter-spacing: 0.06em; }
  .sx-card--tab-end .sx-card__tabs { justify-content: flex-start; }
  .sx-card--tab-end .sx-card__tabs > .sx-card__tab:first-child { margin-left: auto; }
}

.sx-card__body {
  position: relative;
  isolation: isolate;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 28px 32px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--edge);
  border-top-color: var(--edge-hi);
  border-radius: 4px;
}
.sx-card--roomy .sx-card__body { padding: clamp(32px, 4vw, 52px) clamp(28px, 4vw, 52px) clamp(36px, 4vw, 56px); }

.sx-card__num {
  position: absolute;
  top: -0.14em;
  right: -0.03em;
  z-index: -1;
  font-family: var(--display);
  font-size: var(--fs-8);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--num);
  pointer-events: none;
  user-select: none;
  font-variant-numeric: lining-nums tabular-nums;
}
.sx-card__num--bl { top: auto; right: auto; bottom: -0.22em; left: -0.04em; }
.sx-card__num--br { top: auto; bottom: -0.22em; }

.sx-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 4px;
}
.sx-card__head > :first-child { min-width: 0; }

.sx-card__label {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: var(--fs-0);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cmuted);
}
.sx-card__title {
  margin: 0 0 14px;
  max-width: 24ch;
  font-size: var(--fs-4);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--text);
}
.sx-card__title--lg {
  font-size: var(--fs-5);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
/* Titles on cards with a top-right numeral keep clear of it */
.sx-card__num:not(.sx-card__num--bl):not(.sx-card__num--br) ~ .sx-card__title {
  padding-right: calc(var(--fs-8) * 1.1);
  max-width: calc(24ch + var(--fs-8) * 1.1);
}
/* Every corner numeral keeps a clear lane, so no line of text or badge runs across it.
   A top-right numeral pushes the first block beside it inwards; a bottom one pushes the
   last block of the card off its side; a four-figure year gets its own strip below. */
.sx-card__num:not(.sx-card__num--bl):not(.sx-card__num--br) + * {
  padding-right: calc(var(--fs-8) * 1.1);
}
.sx-card__body:has(> .sx-card__num--br:not(.sx-card__num--wide)) > :last-child {
  margin-right: calc(var(--fs-8) * 1.2);
}
.sx-card__body:has(> .sx-card__num--bl) > :last-child {
  margin-left: calc(var(--fs-8) * 1.2);
}
.sx-card__body:has(> .sx-card__num--wide) > :last-child {
  margin-bottom: calc(var(--fs-8) * 0.8);
}
@media (max-width: 680px) {
  .sx-card__num:not(.sx-card__num--bl):not(.sx-card__num--br) + .sx-card__title {
    min-height: calc(var(--fs-8) * 0.78);
  }
  .sx-card__body:has(> .sx-card__num--br:not(.sx-card__num--wide)) > :last-child,
  .sx-card__body:has(> .sx-card__num--bl) > :last-child {
    margin-right: 0;
    margin-left: 0;
    margin-bottom: calc(var(--fs-8) * 0.8);
  }
}
.sx-card__sub {
  margin: 22px 0 8px;
  font-family: var(--display);
  font-size: var(--fs-0);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.sx-card__body p { max-width: 66ch; }
.sx-card__note {
  font-size: var(--fs-1);
  color: var(--cmuted);
}
.sx-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px 32px;
}

.sx-card__foot {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
}
.sx-card__foot--rule {
  position: relative;
  margin-top: auto;
  padding-top: 40px;
}
.sx-card__foot--rule::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 22px;
  height: 1px;
  background: var(--edge);
}

/* Card panels: stacked without JS, cross-faded tabs with JS */

.sx-card__panels { position: relative; }
.sx-card__panel + .sx-card__panel {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--edge-hi);
}
.sx-card__panel-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: var(--fs-0);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cmuted);
}

/* Only the active panel takes up room; the others lie over it while they fade */
.is-tabbed .sx-card__panels { position: relative; }
.is-tabbed .sx-card__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--fade) ease, visibility 0s linear var(--fade);
}
.is-tabbed .sx-card__panel.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--fade) ease, visibility 0s linear 0s;
}
.is-tabbed .sx-card__panel:focus-visible { outline-offset: 6px; }
.is-tabbed .sx-card__panel-title {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.is-tabbed .sx-card__foot { margin-top: 0; }
.sx-deck--even > .is-tabbed .sx-card__foot { margin-top: auto; }

/* Lists */

.sx-list { list-style: none; }
.sx-list > li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-top: 1px solid var(--edge);
  color: var(--soft);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.sx-list > li:last-child { border-bottom: 1px solid var(--edge); }
.sx-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(9px + 0.75em);
  width: 10px;
  height: 1px;
  background: var(--cmuted);
  transition: width 0.25s var(--ease), background-color 0.25s var(--ease);
}
.sx-list__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.sx-list__row > :first-child { min-width: 0; }
.sx-list__val {
  flex: none;
  font-family: var(--display);
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: lining-nums tabular-nums;
}
.sx-list a { text-decoration: none; }

@media (hover: hover) {
  .sx-list > li:hover { transform: translateX(4px); color: var(--text); }
  .sx-list > li:hover::before { width: 14px; background: var(--text); }
}

.sx-steps {
  list-style: none;
  counter-reset: sx-step;
}
.sx-steps > li {
  counter-increment: sx-step;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--edge);
  color: var(--soft);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.sx-steps > li:last-child { border-bottom: 1px solid var(--edge); }
.sx-steps > li::before {
  content: counter(sx-step, decimal-leading-zero);
  padding-top: 0.2em;
  font-family: var(--display);
  font-size: var(--fs-1);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cmuted);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s var(--ease);
}
.sx-steps > li > * { min-width: 0; }
.sx-steps strong { color: var(--text); font-weight: 500; }

@media (hover: hover) {
  .sx-steps > li:hover { transform: translateX(4px); color: var(--text); }
  .sx-steps > li:hover::before { color: var(--text); }
}

.sx-nolist { list-style: none; }
.sx-nolist > li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-top: 1px solid var(--edge);
  color: var(--soft);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.sx-nolist > li:last-child { border-bottom: 1px solid var(--edge); }
.sx-nolist > li::before,
.sx-nolist > li::after {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(11px + 0.72em);
  width: 11px;
  height: 1px;
  background: var(--cmuted);
  transition: background-color 0.25s var(--ease);
}
.sx-nolist > li::before { transform: rotate(45deg); }
.sx-nolist > li::after { transform: rotate(-45deg); }
.sx-nolist strong { color: var(--text); font-weight: 500; }

@media (hover: hover) {
  .sx-nolist > li:hover { transform: translateX(4px); color: var(--text); }
  .sx-nolist > li:hover::before,
  .sx-nolist > li:hover::after { background: var(--text); }
}

/* Facts and hours */

.sx-facts { margin: 0; }
.sx-facts__row,
.sx-facts > div {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--edge);
}
.sx-facts > div:last-child { border-bottom: 1px solid var(--edge); }
.sx-facts dt {
  font-family: var(--display);
  font-size: var(--fs-0);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cmuted);
  overflow-wrap: normal;
}
.sx-facts dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: normal;
}
.sx-facts__row--off dd { color: var(--cmuted); font-weight: 400; }

.sx-facts .is-today dt { color: var(--text); }
.sx-facts .is-today dt::after {
  content: "Today";
  display: inline-block;
  margin-left: 10px;
  padding: 2px 6px;
  border: 1px solid var(--edge-hi);
  border-radius: 3px;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--text);
  vertical-align: 1px;
}
.sx-facts .is-today::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--text);
}

/* Prices and badges */

.sx-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-family: var(--display);
}
.sx-price__from,
.sx-price__unit,
.sx-price__sep {
  font-size: var(--fs-0);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cmuted);
}
.sx-price__val {
  font-size: var(--fs-5);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variant-numeric: lining-nums tabular-nums;
}
.sx-price--sm .sx-price__val { font-size: var(--fs-4); }

.sx-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px 5px;
  font-family: var(--display);
  font-size: var(--fs-0);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text);
  border: 1px solid var(--edge-hi);
  border-radius: 3px;
  white-space: nowrap;
}

/* Bench ledger */

.sx-ledger {
  list-style: none;
  font-variant-numeric: tabular-nums;
}
.sx-ledger__head,
.sx-ledger__row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 2.1fr) minmax(0, 1.7fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--edge);
}
.sx-ledger__row:last-child { border-bottom: 1px solid var(--edge); }
.sx-ledger__head {
  padding: 0 0 10px;
  border-top: 0;
  font-family: var(--display);
  font-size: var(--fs-0);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cmuted);
}
.sx-ledger__row {
  transition: transform 0.25s var(--ease);
}
.sx-ledger__row > * { min-width: 0; }
.sx-ledger__no {
  font-family: var(--display);
  font-size: var(--fs-1);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cmuted);
  transition: color 0.25s var(--ease);
}
.sx-ledger__item {
  font-weight: 500;
  color: var(--soft);
  transition: color 0.25s var(--ease);
}
.sx-ledger__job { color: var(--soft); }
.sx-ledger__state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--fs-1);
  color: var(--cmuted);
}

.sx-meter {
  display: inline-flex;
  gap: 3px;
}
.sx-meter i {
  display: block;
  width: 0.75rem;
  height: 4px;
  background: var(--edge-hi);
  border-radius: 1px;
}
.sx-meter i.is-on { background: var(--text); }

@media (hover: hover) {
  .sx-ledger__row:hover { transform: translateX(4px); }
  .sx-ledger__row:hover .sx-ledger__item,
  .sx-ledger__row:hover .sx-ledger__no { color: var(--text); }
}

@media (max-width: 760px) {
  .sx-ledger__head { display: none; }
  .sx-ledger__row {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 4px 12px;
    align-items: start;
  }
  .sx-ledger__job,
  .sx-ledger__state { grid-column: 2; }
  .sx-ledger__state { flex-direction: row; align-items: center; margin-top: 4px; gap: 10px; }
}

/* Woods in the rack */

.sx-rack { list-style: none; }
.sx-rack__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "name sets count" "origin sets count";
  column-gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--edge);
  transition: transform 0.25s var(--ease);
}
.sx-rack__row:last-child { border-bottom: 1px solid var(--edge); }
.sx-rack__name {
  grid-area: name;
  font-weight: 500;
  color: var(--soft);
  transition: color 0.25s var(--ease);
}
.sx-rack__origin {
  grid-area: origin;
  font-size: var(--fs-1);
  color: var(--cmuted);
}
.sx-rack__sets {
  grid-area: sets;
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
}
.sx-rack__sets i {
  display: block;
  width: 3px;
  height: 16px;
  background: var(--soft);
  border-radius: 1px;
}
.sx-rack__sets i:nth-child(odd) { height: 14px; }
.sx-rack__count {
  grid-area: count;
  min-width: 2ch;
  text-align: right;
  font-family: var(--display);
  font-size: var(--fs-4);
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
  .sx-rack__row:hover { transform: translateX(4px); }
  .sx-rack__row:hover .sx-rack__name { color: var(--text); }
}

/* Callum's note */

.sx-note {
  position: relative;
  margin-top: 22px;
  padding: 18px 20px 16px 22px;
  background: var(--notebg);
  border: 1px solid var(--edge);
  border-left: 2px solid var(--edge-hi);
  border-radius: 3px;
  color: var(--soft);
}
.sx-note p { margin: 0 0 10px; max-width: 60ch; }
.sx-note p:last-child { margin-bottom: 0; }
.sx-note__sign {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: var(--fs-1);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
}
.sx-note__sign::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
}

/* Prose */

.sx-prose { max-width: 68ch; }
.sx-prose p { margin: 0 0 1em; color: var(--soft); }
.sx-prose p:last-child { margin-bottom: 0; }
.sx-prose strong { color: var(--text); font-weight: 500; }
.sx-prose--lead > p:first-child {
  font-size: var(--fs-3);
  line-height: 1.55;
  color: var(--text);
}

/* Buttons and links */

.sx-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: 100%;
  padding: 13px 18px 12px;
  font-family: var(--display);
  font-size: var(--fs-0);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--edge-hi, var(--g5));
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.sx-btn:hover { border-color: var(--text); }
.sx-btn:hover .sx-arrow { transform: translateX(4px); }

.sx-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: var(--fs-0);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease);
}
.sx-link:hover { background-size: calc(100% - 28px) 1px; }
.sx-link:hover .sx-arrow { transform: translateX(4px); }

.sx-arrow {
  position: relative;
  display: inline-block;
  flex: none;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.sx-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.sx-inline {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--g6);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s var(--ease);
}
.sx-inline:hover { text-decoration-color: var(--text); }

.sx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

/* Inner page head */

.sx-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: clamp(44px, 6vw, 96px) clamp(20px, 4vw, 56px) clamp(36px, 4.5vw, 64px);
  background: var(--g1);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.sx-head--t2 { background: var(--g2); border-color: var(--g3); }
.sx-head--t2 .sx-head__num { color: var(--g4); }

.sx-head__num {
  position: absolute;
  right: -0.04em;
  bottom: -0.34em;
  z-index: -1;
  font-family: var(--display);
  font-size: var(--fs-9);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--g3);
  pointer-events: none;
  user-select: none;
  font-variant-numeric: lining-nums;
}
.sx-head__label { grid-column: 1 / -1; margin-bottom: 18px; }
.sx-head__title {
  grid-column: 1 / span 8;
  max-width: 18ch;
  font-size: var(--fs-6);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.sx-head__lede {
  grid-column: 1 / span 6;
  margin: 22px 0 0;
  max-width: 54ch;
  font-size: var(--fs-3);
  line-height: 1.55;
  color: var(--soft);
}
.sx-head__lede strong { color: var(--text); font-weight: 500; }
.sx-head__aside {
  grid-column: 9 / -1;
  grid-row: 2 / span 2;
  align-self: end;
  min-width: 0;
  padding-right: clamp(5.5rem, 4rem + 4.5vw, 8.5rem);
  /* The facts end above the big page numeral rather than across it. */
  padding-bottom: calc(var(--fs-9) * 0.36);
}
.sx-head__aside .sx-facts > div { border-color: var(--line); }

@media (max-width: 900px) {
  .sx-head { padding-bottom: 76px; }
  .sx-head__title,
  .sx-head__lede,
  .sx-head__aside { grid-column: 1 / -1; grid-row: auto; }
  .sx-head__aside { margin-top: 28px; padding-right: 0; padding-bottom: 0; }
  .sx-head__aside .sx-facts dt { white-space: nowrap; }
  .sx-head__num { font-size: 5rem; }
}

/* Repairs filter */

.sx-filter { display: none; }
.js .sx-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 3px;
  margin: 0 0 30px;
  border-bottom: 1px solid var(--line);
}
.sx-filter__btn {
  appearance: none;
  margin: 0;
  padding: 10px 14px 9px;
  font-family: var(--display);
  font-size: var(--fs-0);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--muted);
  background: var(--g1);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  transition: color var(--fade) ease, background-color var(--fade) ease, border-color var(--fade) ease;
}
.sx-filter__btn:hover { color: var(--text); }
.sx-filter__btn[aria-pressed="true"] {
  color: var(--g0);
  background: var(--accent);
  border-color: var(--accent);
}
.sx-filter__count {
  margin-left: auto;
  padding: 0 0 10px 16px;
  font-family: var(--display);
  font-size: var(--fs-0);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Phone: the tabs wrap onto as many rows as they need, the count sits on its own line below,
   and its top rule is the line under the last row of tabs */
@media (max-width: 680px) {
  .js .sx-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 3px;
    padding-top: 6px;
    white-space: normal;
    line-height: normal;
    border-bottom: 0;
  }
  .sx-filter__btn {
    padding: 9px 10px 8px;
    letter-spacing: 0.08em;
  }
  .sx-filter__count {
    flex: 1 0 100%;
    margin: -3px 0 0;
    padding: 10px 0 0;
    line-height: 1.4;
    white-space: normal;
    border-top: 1px solid var(--line);
  }
}

/* Method page */

.sx-method {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  column-gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 80px);
}
.sx-method__aside { min-width: 0; }
.sx-method__main { min-width: 0; }

.sx-rail {
  position: sticky;
  top: 24px;
  padding: 4px 0 24px;
}
.sx-rail__label { margin-bottom: 18px; }
.sx-rail__list {
  --p: 0;
  position: relative;
  list-style: none;
  padding-left: 20px;
}
.sx-rail__list::before,
.sx-rail__list::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.sx-rail__list::after {
  background: var(--text);
  transform: scaleY(var(--p));
  transform-origin: top center;
  transition: transform 0.18s linear;
}
.sx-rail__list > li { position: relative; }
.sx-rail__link {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
  padding: 5px 0;
  font-size: var(--fs-1);
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.sx-rail__link::before {
  content: "";
  position: absolute;
  left: -21px;
  top: calc(5px + 0.45em);
  width: 7px;
  height: 7px;
  background: var(--g0);
  border: 1px solid var(--g6);
  border-radius: 50%;
  z-index: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.sx-rail__n {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}
.sx-rail__t { min-width: 0; }
.sx-rail__link:hover { color: var(--text); transform: translateX(3px); }
.sx-rail__link:hover::before { transform: translateX(-3px); }

.is-passed > .sx-rail__link .sx-rail__n { color: var(--text); }
.is-passed > .sx-rail__link::before { background: var(--text); border-color: var(--text); }
.is-current > .sx-rail__link { color: var(--text); }
.is-current > .sx-rail__link .sx-rail__n { color: var(--accent); }
.is-current > .sx-rail__link::before { background: var(--accent); border-color: var(--accent); }

.sx-deck--method .sx-card { scroll-margin-top: 28px; }

@media (max-width: 1000px) {
  .sx-method { display: block; }
  .sx-rail {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 calc(var(--gutter) * -1) 28px;
    padding: 10px var(--gutter) 0;
    background: var(--g0);
    border-bottom: 1px solid var(--line);
  }
  .sx-rail__label { margin-bottom: 4px; }
  .sx-rail__list {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    padding: 0 0 12px;
  }
  .sx-rail__list::before,
  .sx-rail__list::after {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 1px;
  }
  .sx-rail__list::after {
    height: 2px;
    transform: scaleX(var(--p));
    transform-origin: left center;
  }
  .sx-rail__link {
    display: flex;
    justify-content: center;
    padding: 6px 0 4px;
  }
  .sx-rail__link::before { display: none; }
  .sx-rail__link:hover { transform: none; }
  .sx-rail__n { font-size: 0.6875rem; letter-spacing: 0; }
  .sx-rail__t {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .sx-deck--method .sx-card { scroll-margin-top: 84px; }
}

/* Contact */

.sx-contact {
  padding: clamp(48px, 7vw, 112px) 0 clamp(40px, 5vw, 72px);
}
.sx-mail {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding-bottom: 0.1em;
  font-family: var(--display);
  font-size: clamp(1.75rem, 0.6rem + 7vw, 7rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.sx-mail::before,
.sx-mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--g5);
}
.sx-mail::after {
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
}
.sx-mail:hover::after,
.sx-mail:focus-visible::after { transform: scaleX(1); }
.sx-contact__note {
  margin: 28px 0 0;
  max-width: 56ch;
  font-size: var(--fs-3);
  color: var(--soft);
}

/* Footer */

.sx-foot {
  margin-top: clamp(96px, 11vw, 168px);
  padding: 44px 0 52px;
  border-top: 1px solid var(--line);
}
.sx-foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 32px clamp(24px, 4vw, 64px);
  align-items: start;
}
.sx-foot__mark {
  display: inline-block;
  font-family: var(--display);
  font-size: var(--fs-3);
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--text);
  text-decoration: none;
}
.sx-foot__place {
  margin: 10px 0 0;
  max-width: 34ch;
  font-size: var(--fs-1);
  color: var(--muted);
}
.sx-foot__mail {
  display: inline-block;
  font-family: var(--display);
  font-size: var(--fs-4);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 4px;
  background-image: linear-gradient(var(--g6), var(--g6));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease);
  overflow-wrap: anywhere;
}
.sx-foot__mail:hover { background-image: linear-gradient(var(--text), var(--text)); }
.sx-foot__nav ul { list-style: none; }
.sx-foot__nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-family: var(--display);
  font-size: var(--fs-0);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.sx-foot__nav a::before {
  content: "";
  width: 8px;
  height: 1px;
  background: var(--g6);
  transition: width 0.25s var(--ease), background-color 0.25s var(--ease);
}
.sx-foot__nav a:hover { color: var(--text); transform: translateX(3px); }
.sx-foot__nav a:hover::before { width: 14px; background: var(--text); }
.sx-foot__nav a[aria-current="page"] { color: var(--text); }
.sx-foot__copy {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--display);
  font-size: var(--fs-0);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 820px) {
  .sx-foot__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Motion: everything starts visible, the script adds these states */

[data-reveal] {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.sx-pending {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}

.sx-wipe-run {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.95s cubic-bezier(0.65, 0, 0.25, 1);
}
.sx-wipe-pending {
  clip-path: inset(0 100% 0 0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .sx-plate__svg { animation: none; transform: none; }
  .sx-pending { opacity: 1; transform: none; }
  .sx-wipe-pending { clip-path: none; }
}

@media print {
  body { background: #fff; color: #111; }
  .sx-pending { opacity: 1 !important; transform: none !important; }
  .sx-wipe-pending { clip-path: none !important; }
  .sx-plate__svg { animation: none; }
  .sx-rail, .sx-filter, .sx-skip { display: none !important; }
  .is-tabbed .sx-card__panel { opacity: 1 !important; visibility: visible !important; position: static !important; grid-area: auto; }
}