/* ==========================================================================
   SCRAP LTD — industrial Material 3
   Tonal surfaces, tinted elevation, tight 6-8px radii, state layers.
   Mobile first. Interactive targets stay >= 52px.
   ========================================================================== */

/* --------------------------------------------------------------- fonts --- */

/* Self-hosted. A Google Fonts <link> is a render-blocking request to a third
   party plus a DNS lookup and TLS handshake before any text can paint - one
   of the largest single wins available on PageSpeed. Latin subset only. */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/archivo-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/archivo-800.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 900; font-display: swap; src: url('/fonts/archivo-900.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }

/* ------------------------------------------------------------- tokens --- */

/* ============================================================================
   TWO COLOURS ONLY.

   Hue 1  RUST  ~18deg  — the brand, every action, every accent
   Hue 2  IRON    0deg  — a true neutral grey ramp, warmed only in the paper
                          tones so the page does not read cold

   There is no third hue anywhere: no amber, no green, no red, no blue. State
   is carried by shade, fill-vs-outline and iconography instead of by colour,
   which is also why it survives greyscale printing and colour blindness.
   ========================================================================= */

:root {
  /* iron — structure, text, inverse surfaces. Neutral, zero saturation. */
  --iron-900: #121212;
  --iron-800: #1B1B1B;
  --iron-700: #262626;
  --iron-600: #333333;
  --iron-500: #4D4D4D;
  --iron-400: #6B6B6B;
  --iron-300: #949494;
  --iron-200: #C4C4C4;

  /* steel — kept as aliases so existing rules stay valid */
  --steel-600: var(--iron-500);
  --steel-500: var(--iron-400);
  --steel-400: var(--iron-300);
  --steel-300: var(--iron-200);

  /* paper — the surface ramp, tinted with rust so white never goes cold */
  --surface:    #FAF7F3;
  --surface-1:  #FFFFFF;
  --surface-2:  #F3EEE8;
  --surface-3:  #EAE3DA;
  --outline:    #E2D9CD;
  --outline-2:  #CCC0B2;

  /* rust — the only chromatic hue on the site */
  --rust-800: #4A1D07;
  --rust-700: #6E2C0D;
  --rust-600: #8E3A10;
  --rust-500: #B7410E;
  --rust-400: #CE5F27;
  --rust-300: #E4844F;
  --rust-200: #F0B698;
  --rust-100: #FBEAE0;

  /* Material categories, separated by lightness along the rust->iron ramp
     rather than by hue. */
  --sw-rust: var(--rust-500);
  --sw-steel: var(--iron-600);
  --sw-bronze: var(--rust-700);
  --sw-iron: var(--iron-800);
  --sw-silver: var(--iron-400);
  --sw-copper: var(--rust-400);
  --sw-brass: var(--rust-300);
  --sw-chrome: var(--iron-500);
  --sw-neutral: var(--iron-700);

  /* tight radii — 6px for small controls, 8px for surfaces */
  --r-xs: 6px;
  --r-sm: 6px;
  --r:    8px;
  --r-lg: 8px;
  --r-xl: 8px;
  --r-pill: 8px;   /* was 999px; kept as a token so it can be reverted in one place */

  /* tinted elevation — shadows carry the brand hue, never pure black */
  --e1: 0 1px 2px rgba(58, 34, 14, .07), 0 1px 3px 1px rgba(58, 34, 14, .05);
  --e2: 0 1px 2px rgba(58, 34, 14, .08), 0 3px 8px 2px rgba(58, 34, 14, .06);
  --e3: 0 2px 4px rgba(58, 34, 14, .08), 0 8px 18px 4px rgba(58, 34, 14, .08);
  --e4: 0 4px 8px rgba(58, 34, 14, .09), 0 16px 36px 8px rgba(58, 34, 14, .11);

  --tap: 52px;
  --wrap: 620px;
  --ease: cubic-bezier(.2, 0, 0, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");

  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14l-5-4.87 6.91-1.01z' fill='%23000'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------- reset --- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--iron-800);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  opacity: .035;
  pointer-events: none;
  z-index: 1;
}

img { max-width: 100%; display: block; }

/* Our own stock illustrations, forced into a single rust duotone so no artwork
   can introduce a third hue. Uploaded photographs never get this class - a
   buyer judging the condition of the metal needs its real colour. */
img.stock {
  filter: grayscale(1) sepia(1) saturate(2.35) hue-rotate(-16deg) brightness(.97);
}
a { color: var(--rust-600); text-underline-offset: 3px; }

h1, h2, h3, h4 {
  margin: 0 0 .45em;
  font-family: Archivo, Inter, "Segoe UI", sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--iron-900);
}

h1 { font-size: clamp(2rem, 6.2vw, 2.6rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 4vw, 1.85rem); }
h3 { font-size: 1.12rem; letter-spacing: -.015em; }

p { margin: 0 0 1em; }

::selection { background: var(--rust-500); color: #fff; }

:focus-visible {
  outline: 3px solid var(--rust-400);
  outline-offset: 2px;
  border-radius: 6px;
}

.hi {
  display: block;
  font-family: Inter, sans-serif;
  font-size: .8em;
  font-weight: 500;
  color: var(--steel-500);
  letter-spacing: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  z-index: 2;
}

.wrap-wide { max-width: 1140px; }

.muted { color: var(--steel-500); }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }

.section { padding: clamp(30px, 6vw, 62px) 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.section-head h1, .section-head h2 { margin: 0; }

.link-more {
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  color: var(--rust-600);
  white-space: nowrap;
  padding: 6px 0;
}

.link-more:hover { text-decoration: underline; }

/* ------------------------------------------------------------- header --- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 18, 18, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex: none; }

.brand-text {
  font-family: Archivo, sans-serif;
  font-weight: 900;
  font-size: 1.16rem;
  letter-spacing: .12em;
  color: #fff;
  line-height: 1;
}

/* The name splits at the seam of the promise: SCRAP is what you have, OFFER is
   what we give you for it. Rust on the second half makes the split legible at
   a glance instead of reading as one long word. */
.brand-text em { font-style: normal; color: var(--rust-400); }

.brand-text small {
  display: block;
  font-size: .44rem;
  letter-spacing: .3em;
  color: var(--iron-300);
  margin-top: 4px;
  font-weight: 600;
  text-transform: lowercase;
}

/* --------------------------------------------------------------- nav --- */

/* Nav shares row 2 with the brand. It scrolls horizontally rather than
   wrapping, so the header stays exactly one row tall at every width. */
.mainnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
  max-width: 100%;
}

.mainnav::-webkit-scrollbar { display: none; }

.mainnav a {
  flex: 0 0 auto;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  color: var(--iron-200);
  text-decoration: none;
  font-weight: 600;
  font-size: .89rem;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.mainnav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.mainnav a.on {
  background: var(--rust-500);
  color: #fff;
  font-weight: 700;
}

/* ------------------------------------------------------ hamburger --- */

/* Hidden by default and revealed only for scripted phones. A burger that
   cannot open is worse than a nav that simply scrolls, so without JS the
   button never appears and the original row is left alone. */
.navtoggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.navtoggle:hover { background: rgba(255, 255, 255, .12); }

.navtoggle-bars { display: block; width: 19px; height: 13px; position: relative; }

.navtoggle-bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .24s var(--ease), opacity .16s var(--ease), top .24s var(--ease);
}

.navtoggle-bars i:nth-child(1) { top: 0; }
.navtoggle-bars i:nth-child(2) { top: 5.5px; }
.navtoggle-bars i:nth-child(3) { top: 11px; }

/* Bars converge and cross into an X. */
.navtoggle[aria-expanded="true"] .navtoggle-bars i:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle-bars i:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] .navtoggle-bars i:nth-child(3) { top: 5.5px; transform: rotate(-45deg); }

@media (max-width: 719.98px) {
  .js .navtoggle { display: inline-grid; }

  /* The panel is positioned against .topbar, which is the sticky element, so
     it stays put with the bar rather than scrolling away with the page. */
  .js .mainnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 41;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px;
    background: var(--iron-900);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--e4);
    /* Collapsed by height rather than display:none so it can animate, and
       hidden from the accessibility tree so a closed menu is not tabbable. */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .26s var(--ease), opacity .18s var(--ease), visibility .18s;
  }

  .js .mainnav[data-open="true"] {
    max-height: 74vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .js .mainnav a {
    padding: 14px 16px;
    font-size: .96rem;
    border-radius: var(--r-xs);
  }

  .js .mainnav a.on { background: var(--rust-500); }
  .js .mainnav a:not(.on)::after { content: none; }
}

/* -------------------------------------------------------------- ribbon --- */

/* Row 1. Standing notice above the brand on every page, so the two facts a
   first-time visitor needs are the first thing on screen. */
.ribbon {
  background: var(--rust-600);
  color: #fff;
  font-size: .79rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.ribbon::-webkit-scrollbar { display: none; }

.ribbon-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 9px;
  padding-bottom: 9px;
  white-space: nowrap;
}

.ribbon-in span { display: inline-flex; align-items: center; gap: 6px; }
.ribbon-in b { font-weight: 800; }
.ribbon-sep { opacity: .45; }

/* ---------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  padding: clamp(34px, 7vw, 76px) 0 clamp(32px, 6vw, 64px);
  background: var(--iron-900);
  color: #fff;
  overflow: hidden;
}

/* Layered mesh gradient — three offset radials read as depth, where one flat
   gradient reads as a background. */
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(46% 52% at 8% 4%, rgba(206, 95, 39, .72) 0%, transparent 62%),
    radial-gradient(40% 46% at 88% 12%, rgba(183, 65, 14, .30) 0%, transparent 66%),
    radial-gradient(58% 60% at 62% 96%, rgba(110, 44, 13, .62) 0%, transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: .13;
  mix-blend-mode: overlay;
}

.hero .wrap { position: relative; z-index: 3; }
.hero h1 { color: #fff; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--rust-300); }

.hero-sub {
  font-size: clamp(1rem, 2.6vw, 1.14rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .76);
  max-width: 60ch;
  margin-bottom: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(228, 132, 79, .13);
  border: 1px solid rgba(228, 132, 79, .3);
  color: var(--rust-300);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .88);
}

.pill b { color: var(--rust-300); font-weight: 800; }

/* --------------------------------------------------------------- stats --- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; }

/* Base styling assumes a LIGHT section. The stats block is used on /about as
   well as in the dark hero, and the old white-on-translucent treatment made
   the labels invisible on the cream background. */
.stat {
  padding: 16px 14px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--outline);
}

.stat b {
  display: block;
  font-family: Archivo, sans-serif;
  font-size: clamp(1.16rem, 4.4vw, 1.62rem);
  font-weight: 900;
  color: var(--rust-500);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.stat b small { font-size: .52em; letter-spacing: .04em; margin-left: 3px; font-weight: 700; }

.stat span {
  display: block;
  margin-top: 6px;
  font-size: .74rem;
  line-height: 1.3;
  color: var(--steel-500);
}

/* Dark variant, only inside the hero. */
.hero .stat {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
}

.hero .stat b { color: var(--rust-300); }
.hero .stat span { color: rgba(255, 255, 255, .64); }

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: var(--tap);
  padding: 13px 24px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow .2s var(--ease), transform .12s var(--ease), background .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

/* MD3 state layer — a tinted veil over the button rather than a colour swap */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity .18s var(--ease);
  z-index: -1;
}

.btn:hover::before { opacity: .09; }
.btn:active { transform: scale(.985); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-primary {
  background: var(--rust-500);
  color: #fff;
  box-shadow: var(--e2);
}

.btn-primary:hover { background: var(--rust-400); box-shadow: var(--e3); }

.btn-molten {
  background: var(--rust-300);
  color: #fff;
  box-shadow: var(--e2);
}

.btn-molten:hover { box-shadow: var(--e3); }

.btn-dark { background: var(--iron-800); color: #fff; box-shadow: var(--e1); }
.btn-dark:hover { box-shadow: var(--e2); }

/* tonal — MD3's quiet secondary action */
.btn-ghost {
  background: transparent;
  color: var(--rust-700);
  border: 1.5px solid var(--outline-2);
}

.btn-ghost:hover { background: var(--rust-100); border-color: var(--rust-300); }

/* outlined variant for use on dark sections — never inherits a dark text colour */
.btn-on-dark {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .34);
}

.btn-on-dark:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.btn-on-dark svg { color: #fff; }

/* WhatsApp sits on iron, not rust. Rust is reserved for the primary action,
   so a card no longer has two full-width buttons shouting at the same weight —
   the eye reads the project first, then the enquiry. */
.btn-wa { background: var(--iron-900); color: #fff; box-shadow: var(--e1); }
.btn-wa:hover { background: var(--iron-700); box-shadow: var(--e2); }

/* On a dark section a flat black fill has almost no edge, so lift it a step
   and outline it. Same button, still black, still visible. */
.hero .btn-wa, .cta-bar .btn-wa {
  background: var(--iron-700);
  border: 1px solid rgba(255, 255, 255, .24);
}

.hero .btn-wa:hover, .cta-bar .btn-wa:hover {
  background: var(--iron-600);
  border-color: rgba(255, 255, 255, .42);
}

.btn-sm {
  min-height: 40px;
  font-size: .86rem;
  padding: 6px 16px;
  width: auto;
}

.btn-inline { width: auto; }

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, .34);
  animation: ripple .6s var(--ease) forwards;
  pointer-events: none;
  z-index: 0;
}

@keyframes ripple { to { transform: scale(2.8); opacity: 0; } }

/* --------------------------------------------------------------- cards --- */

.card {
  background: var(--surface-1);
  border-radius: var(--r);
  box-shadow: var(--e1);
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid var(--outline);
}

.card + .card { margin-top: 16px; }
.card h3:first-child { margin-top: 0; }

.card:hover { box-shadow: var(--e2); }

/* Inside a grid or carousel the adjacent-sibling margin above pushed every
   card after the first down by 16px, so a row of three never lined up.
   Stretch them instead and let a trailing link sit on the baseline. */
.pgrid > .card,
.carousel-track > .card {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pgrid > .card > .link-more,
.carousel-track > .card > .link-more { margin-top: auto; padding-top: 12px; }

.pgrid, .carousel-track { align-items: stretch; }

/* ------------------------------------------------------ how it works --- */

.steps { counter-reset: s; display: grid; gap: 12px; }

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow: var(--e1);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}

.step:hover { box-shadow: var(--e2); transform: translateY(-2px); }

.step-n {
  counter-increment: s;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-family: Archivo, sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--rust-700);
  background: var(--rust-100);
  border: 1px solid rgba(183, 65, 14, .16);
}

.step-n::before { content: counter(s); }
.step h3 { margin: 4px 0 4px; font-size: 1.05rem; }
.step p { margin: 0; font-size: .94rem; color: var(--steel-500); line-height: 1.55; }

/* ---------------------------------------------------------- choice grid --- */

.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 128px;
  padding: 20px 12px;
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--r);
  text-align: center;
  box-shadow: var(--e1);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease), border-color .18s;
  -webkit-tap-highlight-color: transparent;
}

.choice:hover { box-shadow: var(--e2); transform: translateY(-3px); border-color: var(--outline-2); }

.choice-ico {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 -2px 8px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .26);
}

.choice-ico svg { width: 26px; height: 26px; color: #fff; }
.choice b { font-size: .95rem; font-weight: 700; line-height: 1.25; }
.choice span { font-size: .82rem; color: var(--steel-500); line-height: 1.35; }

/* ------------------------------------------------------ project cards --- */

.pgrid { display: grid; gap: 18px; }

.pcard {
  display: block;
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--e1);
  position: relative;
  isolation: isolate;
  transition: box-shadow .28s var(--ease), transform .28s var(--ease);
}

.pcard:hover { box-shadow: var(--e4); transform: translateY(-5px); }

/* The card is an <article> so the WhatsApp button can live inside it without
   nesting one anchor in another. Everything except that button is the link. */
.pcard-link { display: block; text-decoration: none; color: inherit; }

/* Two actions side by side. Details is the quiet one and takes only the width
   it needs; WhatsApp takes the rest, so the primary action stays dominant
   without either label wrapping. */
.pcard-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 20px 18px;
}

.pcard-actions .btn {
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  gap: 7px;
  font-size: .87rem;
  /* The label must never wrap — that is what pushed the text out of the button
     on a narrow card before this row was split. */
  white-space: nowrap;
}

.pcard-actions .btn svg { flex: none; }

/* Arrow nudges on hover, matching the old inline Details link. */
.pcard-actions .btn-ghost svg { transition: transform .22s var(--ease); }
.pcard-actions .btn-ghost:hover svg { transform: translateX(3px); }

.pcard-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--iron-800);
  overflow: hidden;
}

.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.pcard:hover .pcard-media img { transform: scale(1.055); }

/* Transparent overlay that carries navigation for the image. Kept beneath the
   arrows so a tap on an arrow is never swallowed by the link. */
.pcard-cover-link { position: absolute; inset: 0; z-index: 1; }

/* ------------------------------------------------- card image slider --- */

.mnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-xs);
  background: rgba(18, 18, 18, .6);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s var(--ease), background .16s var(--ease);
  backdrop-filter: blur(4px);
}

.pcard:hover .mnav, .mnav:focus-visible { opacity: 1; }
.mnav:hover { background: var(--rust-500); border-color: var(--rust-500); }
.mprev { left: 8px; }
.mnext { right: 8px; }

/* No hover on touch, so the arrows stay visible there. */
@media (hover: none) {
  .mnav { opacity: .85; }
}

.mdots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 5px;
  padding: 4px 7px;
  border-radius: var(--r-xs);
  background: rgba(18, 18, 18, .5);
  backdrop-filter: blur(4px);
}

.mdots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transition: background .2s var(--ease), transform .2s var(--ease);
}

.mdots i.on { background: #fff; transform: scale(1.35); }

/* scrim so the status chip stays readable over any photo */
.pcard-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, .38) 0%, transparent 34%, transparent 62%, rgba(18, 18, 18, .3) 100%);
  pointer-events: none;
}

.pcard-status {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: var(--e2);
}

/* White on a deeper green: the old dark-green-on-light-green sat at roughly
   2:1 contrast and read as a smudge at chip size. */
/* With one accent hue available, status is carried by fill weight instead of
   colour: solid rust = live, hollow rust = in progress, flat iron = closed.
   That ordering still reads correctly in greyscale and to colour-blind users. */
.s-available   { background: var(--rust-500); color: #fff; border: 1px solid var(--rust-500); }
.s-under-offer { background: rgba(255, 255, 255, .93); color: var(--rust-700); border: 1px solid var(--rust-400); }
.s-sold        { background: rgba(27, 27, 27, .82); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }

/* sourcing-channel badge — bank auction / liquidator / tender */
.src-chip {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(18, 18, 18, .74);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.src-chip svg { width: 12px; height: 12px; }
.src-chip.src-bank-auction { background: rgba(183, 65, 14, .88); border-color: rgba(255, 255, 255, .26); }

.src-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px 10px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--rust-100);
  border: 1px solid rgba(183, 65, 14, .22);
  color: var(--rust-700);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.src-inline svg { width: 13px; height: 13px; }

.pcard-video {
  position: absolute;
  bottom: 13px;
  right: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(18, 18, 18, .68);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: .71rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.pcard-video svg { width: 12px; height: 12px; }

.pcard-body { padding: 18px 20px 20px; }

.pcard-type {
  display: inline-block;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rust-500);
  margin-bottom: 8px;
}

/* Single line always, so every card in a row has an identical body height and
   the tonnage / button strip lines up across the grid. Full text stays in the
   title attribute for hover, and in the <h3> text for screen readers. */
.pcard-body h3 {
  font-size: 1.16rem;
  margin: 0 0 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcard-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  color: var(--steel-500);
  font-size: .89rem;
  min-width: 0;
}

/* Long city/state must ellipsis rather than shove the status badge out. */
.pcard-loc b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pcard-loc svg { width: 15px; height: 15px; flex: none; }

.pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 0 4px;
  border-top: 1px solid var(--outline);
}

.pcard-mt { display: flex; align-items: baseline; gap: 6px; color: var(--steel-500); }

.pcard-mt b {
  font-family: Archivo, sans-serif;
  font-size: 1.22rem;
  color: var(--iron-900);
  font-weight: 900;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.pcard-mt small { font-size: .76rem; font-weight: 500; white-space: nowrap; }

/* --------------------------------------------------------------- stars --- */

/* One masked strip rather than ten SVG elements per card: the grey track is
   the element's own background, the rust bar inside is clipped to the score,
   and the star mask cuts both at once. Supports halves for free. */
.stars {
  position: relative;
  display: inline-block;
  flex: none;
  width: 70px;
  height: 13px;
  background: var(--outline-2);
  -webkit-mask: var(--star) repeat-x left center / 14px 13px;
  mask: var(--star) repeat-x left center / 14px 13px;
}

/* Amazon's star gold. A deliberate exception to the two-hue rule: gold stars
   are a near-universal convention, and rendering them in brand colour costs
   more in instant recognition than palette purity is worth. */
.stars i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct, 0%);
  background: #FFA41C;
}

.pcard-rating { display: inline-flex; align-items: center; gap: 7px; }
.pcard-rating b { font-size: .82rem; font-weight: 700; color: var(--iron-700); font-variant-numeric: tabular-nums; }
.rating-count { font-size: .78rem; color: var(--steel-500); }

/* Small status badge, in the card body rather than burned into the cover. */
.status-sm {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-left: auto;
  padding: 3px 9px;
  border-radius: var(--r-xs);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* On paper rather than over a photo, so these need their own values — the
   over-image versions rely on translucency against a dark cover. */
.status-sm.s-available { background: var(--rust-500); color: #fff; border: 0; }
.status-sm.s-under-offer { background: var(--rust-100); color: var(--rust-700); border: 1px solid var(--rust-300); }
.status-sm.s-sold { background: var(--surface-3); color: var(--iron-500); border: 1px solid var(--outline-2); }

.h2-rating { display: inline-flex; vertical-align: middle; margin-left: 12px; }

/* -------------------------------------------------------------- reviews --- */

.review-grid { display: grid; gap: 14px; }

.review {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--e1);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}

.review:hover { box-shadow: var(--e2); transform: translateY(-2px); }

.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.review-date { font-size: .8rem; color: var(--steel-500); }

.review-body {
  margin: 0 0 16px;
  font-size: .97rem;
  line-height: 1.6;
  color: var(--iron-700);
}

.review-who { display: flex; align-items: center; gap: 11px; }

.review-avatar {
  flex: none;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rust-500);
  color: #fff;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 1rem;
}

.review-who b { display: block; font-size: .92rem; }
.review-who span span { display: block; font-size: .8rem; color: var(--steel-500); }

.review-project {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--outline);
  font-size: .82rem;
  color: var(--steel-500);
}

/* In a carousel track the cards must fill their column and match heights, or
   the row looks ragged as it scrolls. */
.carousel-track > .review {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}

.carousel-track > .review .review-who { margin-top: auto; }

@media (min-width: 720px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .review-grid-compact { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------- rating picker --- */

.rate { border: 0; padding: 0; margin: 0 0 18px; }

.rate legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--iron-700);
}

/* Stars are rendered in reverse order so the general-sibling selector can
   light up everything to the left of the hovered one. Pure CSS, no JS. */
.rate-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }

.rate-stars input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.rate-stars label { cursor: pointer; line-height: 0; padding: 2px; }
.rate-stars svg { fill: var(--outline-2); transition: fill .12s var(--ease), transform .12s var(--ease); }

.rate-stars label:hover svg,
.rate-stars label:hover ~ label svg,
.rate-stars input:checked ~ label svg { fill: var(--rust-500); }

.rate-stars label:hover svg { transform: scale(1.12); }

/* Keyboard users must see the focused star even though the input is hidden. */
.rate-stars input:focus-visible + label svg { outline: 3px solid var(--rust-400); outline-offset: 2px; }

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

/* Honeypot: off-screen rather than display:none, because some bots skip
   hidden fields but not positioned ones. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* .pcard-go removed — Details is now a real button in .pcard-actions. */

/* ------------------------------------------------------------ carousel --- */

.section-tools { display: flex; align-items: center; gap: 8px; }

.cbtn {
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  padding: 0;
  border: 1.5px solid var(--outline-2);
  border-radius: var(--r);
  background: var(--surface-1);
  color: var(--iron-700);
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), opacity .18s;
}

.cbtn:hover:not(:disabled) { background: var(--rust-500); border-color: var(--rust-500); color: #fff; }
.cbtn:disabled { opacity: .32; cursor: default; }

/* Shown only where there is no touch scrolling to fall back on. */
@media (hover: hover) and (min-width: 720px) {
  .cbtn { display: grid; }
}

.carousel { position: relative; }

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  /* room for the card hover-lift and shadow inside the scroll box */
  padding: 6px 2px 14px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }

@media (min-width: 620px) { .carousel-track { grid-auto-columns: 46%; } }
@media (min-width: 1000px) { .carousel-track { grid-auto-columns: 31.6%; } }

@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
}

/* ---------------------------------------------------- project detail --- */

.pdetail { padding: 22px 0 34px; }

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 8px 14px 8px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-weight: 600;
  font-size: .86rem;
  color: var(--steel-600);
  text-decoration: none;
  transition: background .18s var(--ease);
}

.crumb:hover { background: var(--surface-3); }
.crumb svg { width: 16px; height: 16px; }

.pdetail-grid { display: grid; gap: 28px; }

.gallery-main {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--iron-800);
  box-shadow: var(--e3);
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

/* prev / next */
.gnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  background: rgba(18, 18, 18, .58);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity .22s var(--ease), background .18s var(--ease);
  backdrop-filter: blur(6px);
}

.gallery-main:hover .gnav, .gnav:focus-visible { opacity: 1; }
.gnav:hover { background: var(--rust-500); }
.gprev { left: 12px; }
.gnext { right: 12px; }

/* Touch devices get no hover, so the arrows stay visible there. */
@media (hover: none) {
  .gnav { opacity: 1; }
}

.gcount {
  position: absolute;
  bottom: 13px;
  left: 13px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(18, 18, 18, .68);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
}

.gcount b { font-weight: 800; color: var(--rust-300); }

.gzoom {
  position: absolute;
  bottom: 13px;
  right: 13px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r);
  background: rgba(18, 18, 18, .68);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .18s var(--ease);
}

.gzoom:hover { background: var(--rust-500); }

/* video stage — only populated once play is pressed */
.gstage-video { position: absolute; inset: 0; z-index: 4; display: none; background: #000; }
.gstage-video.on { display: block; }
.gstage-video iframe { width: 100%; height: 100%; border: 0; }

.gplay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 76px;
  height: 76px;
  display: none;
  place-items: center;
  padding: 0 0 0 4px;
  border: 3px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(183, 65, 14, .92);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--e3);
  transition: transform .18s var(--ease), background .18s var(--ease);
}

.gplay.on { display: grid; }
.gplay:hover { transform: translate(-50%, -50%) scale(1.07); background: var(--rust-500); }

.gthumb { position: relative; }

.gthumb-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, .35);
}

.gthumb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding-left: 2px;
  border-radius: 50%;
  background: var(--rust-500);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}

.gnote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: var(--r-xs);
  background: var(--surface-2);
  color: var(--steel-600);
  font-size: .86rem;
}

.gnote svg { flex: none; color: var(--rust-500); }

/* ------------------------------------------------------------ lightbox --- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(12, 12, 12, .93);
  backdrop-filter: blur(8px);
}

.lightbox.on { display: grid; animation: fade .22s var(--ease); }

@keyframes fade { from { opacity: 0; } }

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--r-sm);
  box-shadow: var(--e4);
}

.lb-close, .lb-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  transition: background .18s var(--ease);
}

.lb-close:hover, .lb-nav:hover { background: var(--rust-500); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

.lb-count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .8);
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
}

.gallery-thumbs {
  display: flex;
  gap: 9px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 3px 3px 6px;
  scrollbar-width: thin;
}

.gthumb {
  flex: 0 0 90px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--r-xs);
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: .62;
  transition: opacity .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.gthumb:hover { opacity: 1; transform: translateY(-2px); }
.gthumb.on { opacity: 1; border-color: var(--rust-500); }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 16px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--iron-900);
  box-shadow: var(--e3);
}

.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.keyfacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0 22px; }

.loc-sep { opacity: .45; }
.pcard-loc b { color: var(--iron-800); font-weight: 700; }

.keyfact {
  padding: 15px 13px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--outline);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}

.keyfact:hover { box-shadow: var(--e2); transform: translateY(-2px); }

/* ------------------------------------------------------- feature boxes --- */

.featrow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 22px 0 4px;
}

.feat {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

.feat:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .24);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}

.feat-ico {
  flex: none;
  width: 38px;
  height: 38px;
  /* inline-grid + explicit centring on both axes, so the icon is dead centre
     regardless of how the SVG reports its intrinsic size */
  display: inline-grid;
  align-items: center;
  justify-items: center;
  border-radius: var(--r-xs);
  background: var(--rust-500);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.feat-ico svg { width: 19px; height: 19px; display: block; }

/* Text rules are scoped to their own wrapper. They used to be `.feat span`,
   which at (0,1,1) outranked `.feat-ico` at (0,1,0) and forced the icon box
   back to display:block — which is why the icon sat in the top-left corner. */
.feat-text { min-width: 0; }
.feat-text b { display: block; font-size: .88rem; font-weight: 700; color: #fff; line-height: 1.25; }
.feat-text span { display: block; font-size: .76rem; color: rgba(255, 255, 255, .62); line-height: 1.3; }

@media (min-width: 720px) {
  .featrow { grid-template-columns: repeat(4, 1fr); }
}

.keyfact b {
  display: block;
  font-family: Archivo, sans-serif;
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--iron-900);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.keyfact span {
  display: block;
  margin-top: 5px;
  font-size: .69rem;
  color: var(--steel-500);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 600;
}

.lede { font-size: 1.06rem; line-height: 1.62; color: var(--steel-600); }

.timeline-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  border-radius: var(--r-sm);
  background: var(--rust-100);
  color: var(--rust-700);
  font-weight: 600;
  font-size: .92rem;
  border: 1px solid rgba(183, 65, 14, .26);
}

.timeline-note svg { width: 18px; height: 18px; flex: none; }

.usps { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }

.usps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .97rem;
  line-height: 1.5;
}

.usp-tick {
  flex: none;
  width: 25px;
  height: 25px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rust-100);
  border: 1px solid rgba(183, 65, 14, .22);
}

.usp-tick svg { width: 13px; height: 13px; color: var(--rust-600); }

/* material breakdown */
.matrow + .matrow { margin-top: 17px; }

.matrow-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: .93rem;
}

.matrow-head b { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }

.matbar { height: 10px; border-radius: var(--r-xs); background: var(--surface-3); overflow: hidden; }

.matbar i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--rust-600), var(--rust-400));
  min-width: 4px;
  transform-origin: left;
  animation: grow .9s var(--ease) both;
}

@keyframes grow { from { transform: scaleX(0); } }

/* --------------------------------------------------------------- forms --- */

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 8px;
  color: var(--iron-700);
}

.field label span { font-weight: 400; color: var(--steel-500); font-size: .92em; }

.field code {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: .88em;
  background: var(--surface-3);
  padding: 2px 6px;
  border-radius: 5px;
}

/* MD3 filled text field */
.input, textarea.input, select.input {
  width: 100%;
  min-height: var(--tap);
  padding: 14px 17px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--iron-900);
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-bottom: 2px solid var(--outline-2);
  border-radius: var(--r-xs) var(--r-xs) 4px 4px;
  transition: background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.input::placeholder { color: var(--steel-400); }
.input:hover { background: var(--surface-3); }

.input:focus, textarea.input:focus, select.input:focus {
  outline: none;
  background: var(--surface-1);
  border-color: var(--rust-500);
  border-bottom-color: var(--rust-500);
  box-shadow: 0 0 0 3px rgba(183, 65, 14, .13);
}

textarea.input { min-height: 104px; resize: vertical; line-height: 1.55; border-radius: var(--r-xs); }

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366727D' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 19px;
  padding-right: 44px;
}

.phone-wrap { display: flex; align-items: stretch; }

.phone-prefix {
  display: grid;
  place-items: center;
  padding: 0 15px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--surface-3);
  border-bottom: 2px solid var(--outline-2);
  border-radius: var(--r-xs) 0 0 4px;
  color: var(--iron-700);
}

.phone-wrap .input {
  border-radius: 0 var(--r-xs) 4px 0;
  letter-spacing: .1em;
  font-weight: 600;
}

/* ------------------------------------------- material filled text field --- */

/* MD3 filled field with a floating label. Pure CSS: the label lifts on focus
   or when the control holds a value, which :placeholder-shown detects — hence
   the placeholder=" " on every input. No JS, so it cannot desync. */
.mdf { position: relative; margin-bottom: 20px; }

.mdf-input {
  width: 100%;
  min-height: 58px;
  padding: 25px 16px 9px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--iron-900);
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-bottom: 2px solid var(--outline-2);
  border-radius: var(--r-xs) var(--r-xs) 4px 4px;
  transition: background .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
  appearance: none;
}

.mdf-input:hover { background: var(--surface-3); }

.mdf-input:focus {
  outline: none;
  background: var(--surface-1);
  border-color: var(--rust-500);
  box-shadow: 0 0 0 3px rgba(183, 65, 14, .13);
}

.mdf-label {
  position: absolute;
  left: 16px;
  top: 18px;
  color: var(--steel-500);
  font-size: 1rem;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .16s var(--ease), color .16s var(--ease);
}

.mdf-input:focus ~ .mdf-label,
.mdf-input:not(:placeholder-shown) ~ .mdf-label {
  transform: translateY(-12px) scale(.74);
}

.mdf-input:focus ~ .mdf-label { color: var(--rust-600); }

/* Selects never match :placeholder-shown, so their label stays lifted. */
.mdf-select .mdf-label { transform: translateY(-12px) scale(.74); }

.mdf-select .mdf-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 19px;
  padding-right: 44px;
}

textarea.mdf-input { min-height: 130px; resize: vertical; padding-top: 26px; }

.mdf-help { margin: 6px 2px 0; font-size: .8rem; color: var(--steel-500); }

.contact-grid { display: grid; gap: 22px; }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.25fr 1fr; align-items: start; }
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--outline);
  text-decoration: none;
  color: inherit;
}

.contact-line:last-child { border-bottom: 0; }

.contact-ico {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-grid;
  align-items: center;
  justify-items: center;
  border-radius: var(--r-xs);
  background: var(--rust-500);
  color: #fff;
}

.contact-text b { display: block; font-size: .95rem; }
.contact-text span { display: block; font-size: .82rem; color: var(--steel-500); }

.checkrow {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-weight: 600;
  cursor: pointer;
}

.checkrow input { width: 22px; height: 22px; accent-color: var(--rust-500); }

textarea.mono, .input.mono {
  font-family: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  font-size: .9rem;
  line-height: 1.6;
}

.grid2 { display: grid; gap: 0 14px; }

/* -------------------------------------------------------------- upload --- */

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 30px 20px;
  border: 2px dashed var(--outline-2);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  cursor: pointer;
  text-align: center;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.drop:hover { border-color: var(--rust-400); background: var(--rust-100); }

.drop-ico {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--rust-500);
  box-shadow: var(--e2);
}

.drop-ico svg { width: 28px; height: 28px; color: #fff; }
.drop b { font-size: 1.02rem; }
.drop span { font-size: .88rem; color: var(--steel-500); }
.drop input { display: none; }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }

.thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-xs);
  border: 1px solid var(--outline);
  box-shadow: var(--e1);
}

.imgedit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }

.imgedit-item {
  border: 2px solid var(--outline);
  border-radius: var(--r-xs);
  overflow: hidden;
  background: var(--surface-1);
  cursor: pointer;
  transition: border-color .18s, opacity .18s;
}

.imgedit-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.imgedit-item span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  font-size: .8rem;
  font-weight: 600;
}

.imgedit-item input { width: 17px; height: 17px; accent-color: var(--rust-800); }
.imgedit-item:has(input:checked) { border-color: var(--rust-800); opacity: .5; }

/* ------------------------------------------------------------- alerts --- */

.alert {
  display: flex;
  gap: 12px;
  padding: 15px 18px;
  border-radius: var(--r-sm);
  font-size: .94rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.alert-error { background: var(--surface-3); color: var(--rust-800); border: 1px solid rgba(110, 44, 13, .2); }
.alert-ok { background: var(--rust-100); color: var(--rust-700); border: 1px solid rgba(183, 65, 14, .2); }
.alert-info { background: var(--rust-100); color: var(--rust-700); border: 1px solid rgba(183, 65, 14, .26); }

/* ------------------------------------------------------------ success --- */

.tick {
  width: 88px;
  height: 88px;
  margin: 8px auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rust-500);
  box-shadow: 0 8px 24px rgba(183, 65, 14, .3);
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1);
}

.tick svg { width: 42px; height: 42px; color: #fff; }

@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.ref-chip {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  background: var(--iron-800);
  color: var(--rust-300);
  font-family: Archivo, sans-serif;
  font-weight: 800;
  letter-spacing: .09em;
  font-size: 1rem;
  box-shadow: var(--e2);
}

/* --------------------------------------------------------------- chips --- */

/* One scrollable row rather than wrapping. Category lists grow over time, and
   a wrapping row silently pushes the projects further down the page every time
   a type is added. Scrolling keeps the grid at a fixed offset. */
.filters {
  display: flex;
  gap: 9px;
  flex-wrap: nowrap;
  margin-bottom: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  /* room so focus rings and shadows are not clipped by the scroll container */
  padding: 3px 2px 8px;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar { display: none; }

.filters a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
  padding: 9px 17px;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1.5px solid var(--outline-2);
  text-decoration: none;
  font-weight: 600;
  font-size: .87rem;
  color: var(--iron-700);
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

.filters a:hover { background: var(--surface-2); border-color: var(--steel-400); }

.filters a.on {
  background: var(--iron-800);
  border-color: var(--iron-800);
  color: #fff;
}

/* --------------------------------------------------------- filter bar --- */

.filterbar {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--r);
  padding: 16px 18px 14px;
  box-shadow: var(--e1);
  margin-bottom: 22px;
}

.filterbar-fields { display: grid; gap: 12px; }

.fsel { display: block; }

.fsel > span {
  display: block;
  margin-bottom: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-500);
}

.fsel .input { min-height: 46px; padding: 10px 42px 10px 14px; font-size: .95rem; }

.filterbar-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--outline);
}

.result-count { margin: 0; font-size: .9rem; color: var(--steel-600); }
.result-count b { font-family: Archivo, sans-serif; font-size: 1.05rem; color: var(--iron-900); }

.filterbar-actions { display: flex; gap: 9px; align-items: center; }

@media (min-width: 620px) {
  .filterbar-fields { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 940px) {
  .filterbar-fields { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------------------------------------------------- sticky cta --- */

.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 247, 241, .86);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-top: 1px solid var(--outline);
}

.has-cta { padding-bottom: 96px; }

/* -------------------------------------------------------------- footer --- */

.foot {
  background: var(--iron-900);
  color: var(--steel-400);
  padding: 44px 0 40px;
  font-size: .92rem;
  position: relative;
}

.foot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: .07;
}

.foot .wrap { position: relative; z-index: 2; }

.foot h4 {
  color: #fff;
  margin: 0 0 12px;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
}

.foot a { color: var(--steel-300); text-decoration: none; display: block; padding: 7px 0; transition: color .16s; }

/* Same black treatment as .btn-wa, but the footer is already near-black, so a
   flat black fill would disappear into it. Lifted one step and outlined. */
.foot-wa {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 9px 16px !important;
  border-radius: var(--r-pill);
  background: var(--iron-700);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff !important;
  font-weight: 700;
}

.foot-wa:hover { background: var(--iron-600); border-color: rgba(255, 255, 255, .4); }

/* "or fill the form" divider */
.or-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 18px;
  color: var(--steel-500);
  font-size: .85rem;
}

.or-rule::before, .or-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--outline);
}
.foot a:hover { color: var(--rust-300); }
.foot-grid { display: grid; gap: 28px; margin-bottom: 30px; }
.foot-bot { border-top: 1px solid rgba(255, 255, 255, .09); padding-top: 20px; font-size: .82rem; }

/* --------------------------------------------------------------- admin --- */

.admin-body { background: var(--surface-2); }

.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }

.tbl th {
  text-align: left;
  padding: 12px 14px;
  background: var(--iron-800);
  color: #fff;
  font-size: .71rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
}

.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--outline); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .14s; }
.tbl tbody tr:hover { background: var(--surface-2); }

.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* Admin badges: solid = needs action, outlined = in flight, flat = closed. */
.b-new { background: var(--rust-500); color: #fff; }
.b-contacted { background: transparent; color: var(--rust-700); box-shadow: inset 0 0 0 1px var(--rust-400); }
.b-won { background: var(--rust-800); color: #fff; }
.b-lost { background: var(--surface-3); color: var(--iron-400); box-shadow: inset 0 0 0 1px var(--outline-2); }
.b-bulk { background: var(--iron-800); color: #fff; }

.s-badge.s-available { background: var(--rust-500); color: #fff; border: 0; }
.s-badge.s-under-offer { background: transparent; color: var(--rust-700); border: 1px solid var(--rust-400); }
.s-badge.s-sold { background: var(--iron-600); color: #fff; border: 0; }

.mini-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }

.mini-thumbs img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--outline);
}

/* ------------------------------------------------------------ >= 720px --- */

@media (min-width: 720px) {
  h1 { letter-spacing: -.04em; }
  .choices { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .cta-row { display: flex; gap: 12px; }
  .cta-row.stack > * + * { margin-top: 0; }
  .thumbs { grid-template-columns: repeat(6, 1fr); }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .stats { max-width: 600px; }
  .imgedit { grid-template-columns: repeat(5, 1fr); }
  .btn { padding: 14px 30px; }
}

@media (min-width: 1000px) {
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .pdetail-grid { grid-template-columns: 1.12fr 1fr; gap: 40px; align-items: start; }
  /* the sticky bar is redundant once the enquiry form sits beside the content */
  .cta-bar { display: none; }
  .has-cta { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   POLISH LAYER — modern motion and texture at zero JavaScript cost.

   Everything below is native CSS. The usual way to get these effects is a
   scroll library plus an SPA router: 40-120KB of JS on the main thread, which
   is what wrecks INP on a mid-range Android. These run on the compositor and
   cost nothing. See DESIGN.md section 6.
   ========================================================================== */

/* ------------------------------------------------- cross-page transitions --- */

/* Turns a multi-page server-rendered site into something that feels like an
   app. Chrome 126+ and Safari 18+; everywhere else navigates normally. */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 120ms cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in 220ms cubic-bezier(0, 0, .2, 1) both; }
}

@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* The header and the ribbon are constant across pages, so they should not
   cross-fade with the body — they stay put while the content swaps. */
.ribbon { view-transition-name: ribbon; }
.topbar { view-transition-name: topbar; }

/* --------------------------------------------------------- scroll reveal --- */

/* Replaces the IntersectionObserver that used to do this in app.js. Guarded by
   @supports so unsupported browsers simply show the content — never blank. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pcard,
    .step,
    .choice,
    .pgrid > .card,
    .keyfact,
    .feat,
    .matrow,
    .usps li {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 48%;
    }

    /* Section headings arrive slightly ahead of their content. */
    .section > .wrap > h2,
    .section-head { animation: rise-sm linear both; animation-timeline: view(); animation-range: entry 0% entry 34%; }
  }
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes rise-sm { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------------- off-screen --- */

/* The browser skips layout and paint for sections still below the fold. Large
   wins on the long home page. `auto` remembers the real size after first
   render, so the scrollbar never jumps. */
.section + .section { content-visibility: auto; contain-intrinsic-size: auto 620px; }
.foot { content-visibility: auto; contain-intrinsic-size: auto 380px; }

/* --------------------------------------------------------------- texture --- */

/* Blueprint ruling behind the hero. Two repeating gradients, no image, no
   request — the drafting-paper grid an engineer already reads as "technical". */
.hero .wrap::before {
  content: "";
  position: absolute;
  inset: -40px -100vw;
  z-index: -1;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 48px);
  mask-image: radial-gradient(120% 90% at 20% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

/* Measurement tick, like a dimension line on a drawing. Marks the start of a
   section without adding a heavier rule. */
.section > .wrap > h2::before,
.section-head h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 14px;
  background: var(--rust-500);
}

.hero h1::before { content: none; }

/* ----------------------------------------------------------- data as hero --- */

/* Tonnage is the number a buyer scans for, so it gets display treatment and
   tabular figures. This is the "graphic" on a card — not a stock photo. */
.pcard-mt b { font-size: 1.32rem; letter-spacing: -.035em; }

.keyfact:first-child b {
  font-size: clamp(1.35rem, 5vw, 1.72rem);
  color: var(--rust-600);
}

/* Small caps labels against display numerals — the typographic signature. */
.keyfact span,
.stat span,
.pcard-type,
.eyebrow { font-feature-settings: "cpsp" 1; }

/* -------------------------------------------------------- micro-detail --- */

/* Cards lift and their hairline warms. Transform and box-shadow only. */
.pcard { transition: box-shadow .28s var(--ease), transform .28s var(--ease), border-color .28s var(--ease); }
.pcard:hover { border-color: var(--outline-2); }

/* Sheen sweep across the cover on hover. A single transform on a pseudo
   element — no repaint of the image beneath. */
.pcard-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .13) 48%, transparent 58%);
  transform: translateX(-110%);
  transition: transform .7s var(--ease);
  pointer-events: none;
}

.pcard:hover .pcard-media::before { transform: translateX(110%); }

/* Buttons settle rather than snap. */
.btn { transition: box-shadow .2s var(--ease), transform .14s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.btn:active { transform: translateY(1px) scale(.99); }

/* Focus ring picks up the brand instead of the browser default. */
:focus-visible { outline-color: var(--rust-500); }

/* Nav item underline grows from the left on hover. */
.mainnav a { position: relative; }

.mainnav a:not(.on)::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 2px;
  background: var(--rust-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}

.mainnav a:not(.on):hover::after { transform: scaleX(1); }

/* Selection matches the brand rather than the OS blue. */
::selection { background: var(--rust-500); color: #fff; }

/* Scrollbar on desktop, tuned to the palette. Ignored on mobile. */
@media (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: var(--outline-2) transparent; }
}
