/* ==========================================================================
   3D REVOLUTION, 3drevolution.net
   Single stylesheet. No frameworks, no build step.

   Design notes for future edits:
   - Brand orange #FF8B4C is BRIGHT. White text on it fails contrast (2.3:1),
     so every filled orange button uses near-black ink text (7.7:1). That's
     deliberate, not an oversight.
   - Orange text on white must use --ember-ink (#B4471A, 5.4:1). Never --flame.
   - The "dither strip" (.dither) is the signature device: three rows of
     offset dashes standing in for dithered filament lines. Orange by default,
     CMY inside .cmy blocks (Primed3D pages).
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand */
  --flame:      #FF8B4C;   /* logo orange, fills, rules, accents. Not text. */
  --flame-lit:  #FFA877;   /* lighter tint for gradients */
  --flame-wash: #FFF1E7;   /* palest wash for tints and hovers */
  --ember:      #E0672A;   /* deeper orange, hovers on fills */
  --ember-ink:  #B4471A;   /* the only orange safe for text on white */

  /* Neutrals, warm, so they sit with the orange */
  --ink:        #1A1614;
  --ink-soft:   #5B5148;
  --ink-faint:  #8B8078;
  --white:      #FFFFFF;
  --bed:        #FFF7F1;   /* warm off-white section fill */
  --rule:       #EADFD6;
  --rule-dark:  #3A322D;

  /* CMY, Primed3D only */
  --cyan:    #00AEEF;
  --magenta: #EC008C;
  --yellow:  #FFD400;

  /* Dither strip colours (overridden inside .cmy) */
  --d1: var(--flame);
  --d2: var(--ember);
  --d3: var(--flame-lit);

  /* Type */
  --f-display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --f-brand: 'Outfit', 'Avenir Next', 'Century Gothic', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Rhythm */
  --wrap: 1180px;
  --wrap-prose: 760px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --gap: clamp(1.25rem, 2.6vw, 2rem);
  --sect-y: clamp(3.5rem, 8vw, 6.5rem);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(26,22,20,.05), 0 10px 30px -14px rgba(26,22,20,.22);
  --shadow-lift: 0 2px 4px rgba(26,22,20,.06), 0 20px 44px -18px rgba(26,22,20,.3);
  --header-h: 68px;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ember-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
ul, ol { padding-left: 1.15rem; }
li + li { margin-top: .4rem; }
strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--ember-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: .5rem; top: -100px;
  background: var(--ink); color: var(--white);
  padding: .7rem 1.1rem; border-radius: var(--radius-sm);
  z-index: 200; font-weight: 600; text-decoration: none;
}
.skip:focus { top: .5rem; color: var(--white); }

/* ---------- 3. Type scale ------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
  font-stretch: 112%;          /* Archivo width axis, signage feel */
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7.2vw, 5.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); letter-spacing: -.015em; font-stretch: 106%; }
h4 { font-size: 1.02rem; font-stretch: 104%; letter-spacing: -.005em; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .715rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ember-ink);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; flex: none;
  background: var(--flame); border-radius: 2px;
}
.eyebrow--plain::before { display: none; }
.section--flame .eyebrow, .section--ink .eyebrow { color: inherit; }
.section--ink .eyebrow::before { background: var(--flame); }
.section--flame .eyebrow::before { background: var(--ink); }

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
}
.section--flame .lede, .section--ink .lede { color: inherit; opacity: .92; }

.mono { font-family: var(--f-mono); font-size: .82rem; letter-spacing: .02em; }

/* ---------- 4. Layout ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap--prose { max-width: var(--wrap-prose); }

.section { padding-block: var(--sect-y); position: relative; }
.section--tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.section--bed { background: var(--bed); }
.section--flame { background: var(--flame); color: var(--ink); }
.section--ink { background: var(--ink); color: #F2EBE6; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink a:not(.btn) { color: var(--flame); }
.section--ink a:not(.btn):hover { color: var(--flame-lit); }

.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.stack > * + * { margin-top: 1.1rem; }
.head-block { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-inline: auto; }

/* ---------- 5. Signature: the dither strip ------------------------------- */
/* Three rows of offset dashes, how a dithered colour print actually looks. */
.dither {
  height: 12px;
  width: 100%;
  background-image:
    repeating-linear-gradient(90deg, var(--d1) 0 9px, transparent 9px 24px),
    repeating-linear-gradient(90deg, var(--d2) 0 6px, transparent 6px 21px),
    repeating-linear-gradient(90deg, var(--d3) 0 13px, transparent 13px 31px);
  background-size: 100% 4px;
  background-position: 0 0, 5px 4px, 11px 8px;
  background-repeat: repeat-x;
  border-radius: 2px;
}
.dither--tall { height: 16px; background-size: 100% 5px; background-position: 0 0, 5px 5px, 11px 10px; }
.cmy { --d1: var(--cyan); --d2: var(--magenta); --d3: var(--yellow); }

/* Lays itself down like a print head on first paint */
.js .dither--lay { transform: scaleX(0); transform-origin: left center; }
.js .dither--lay.is-in { animation: lay 1.1s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes lay { to { transform: scaleX(1); } }

/* ---------- 6. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--f-display);
  font-weight: 700; font-stretch: 108%;
  font-size: .95rem; letter-spacing: -.005em;
  padding: .78rem 1.35rem;
  border-radius: 10px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* Ink-on-orange: 7.7:1. The house style. */
.btn.btn--primary { background: var(--flame); color: var(--ink); box-shadow: 0 3px 0 var(--ember); }
.btn.btn--primary:hover { background: var(--flame-lit); color: var(--ink); transform: translateY(-2px); box-shadow: 0 5px 0 var(--ember); }
.btn.btn--primary:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ember); }

.btn.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--rule); box-shadow: 0 3px 0 var(--rule); }
.btn.btn--ghost:hover { color: var(--ink); border-color: var(--flame); transform: translateY(-2px); box-shadow: 0 5px 0 var(--flame); }
.btn.btn--ghost:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--flame); }

.btn.btn--ink { background: var(--ink); color: var(--white); box-shadow: 0 3px 0 #000; }
.btn.btn--ink:hover { background: #2C2521; color: var(--white); transform: translateY(-2px); box-shadow: 0 5px 0 #000; }

.btn.btn--onflame { background: var(--ink); color: var(--white); box-shadow: 0 3px 0 rgba(0,0,0,.45); }
.btn.btn--onflame:hover { background: #2C2521; color: var(--white); transform: translateY(-2px); }
.btn.btn--outline-ink { background: transparent; color: var(--ink); border-color: rgba(26,22,20,.5); }
.btn.btn--outline-ink:hover { background: rgba(26,22,20,.09); color: var(--ink); transform: translateY(-2px); }

/* The channel button. Red reads as "YouTube" instantly, which is the whole
   job of this button. #E60000 rather than YouTube's #FF0000 because pure red
   only reaches 4.0:1 with white text; this clears 4.8:1. */
.btn.btn--yt { background: #E60000; color: var(--white); box-shadow: 0 3px 0 #8F0000; }
.btn.btn--yt:hover { background: #CC0000; color: var(--white); transform: translateY(-2px); box-shadow: 0 5px 0 #8F0000; }
.btn.btn--yt:active { transform: translateY(1px); box-shadow: 0 1px 0 #8F0000; }
.btn.btn--yt svg { width: 1.3em; height: 1.3em; }
.section--ink .btn.btn--yt, .footer .btn.btn--yt { box-shadow: 0 3px 0 rgba(0,0,0,.55); }

.btn.btn--lg { font-size: 1.06rem; padding: .95rem 1.7rem; }
.btn.btn--sm { font-size: .85rem; padding: .55rem 1rem; }
.btn.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.center .btn-row { justify-content: center; }

/* ---------- 7. Masthead -------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  display: flex; align-items: center; gap: 1rem;
  height: var(--header-h);
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
}

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 32px; height: 32px; }
/* Logotype: brand orange, per brand guidance. Contrast rules exempt
   logos and brand names, and the mark sits right beside it for context. */
.brand__name {
  font-family: var(--f-brand);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: .012em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--flame);
  transition: color .16s ease;
}
.brand:hover .brand__name { color: var(--ember); }
.brand:hover { color: var(--ink); }

.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav a {
  font-size: .93rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
  padding: .5rem .68rem; border-radius: 8px;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--flame-wash); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--flame-wash); box-shadow: inset 0 -3px 0 var(--flame); }
.masthead .btn { margin-left: .5rem; }

/* ---- Socials dropdown ---- */
.nav__drop { position: relative; }
.nav__droptoggle {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--f-body); font-size: .93rem; font-weight: 500;
  color: var(--ink-soft); background: none; border: 0; cursor: pointer;
  padding: .5rem .68rem; border-radius: 8px; white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.nav__droptoggle:hover { color: var(--ink); background: var(--flame-wash); }
.nav__chev { width: 14px; height: 14px; transition: transform .18s ease; }
.nav__drop:hover .nav__chev,
.nav__droptoggle[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.nav__menu {
  display: none;
  position: absolute; top: 100%; right: 0;
  min-width: 224px; padding: .4rem;
  background: var(--white);
  border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: var(--shadow-lift);
  z-index: 120;
}
/* Hover only where hovering is real; touch devices use the click toggle. */
@media (hover: hover) and (min-width: 1021px) {
  .nav__drop:hover .nav__menu { display: block; }
}
.nav__drop:focus-within .nav__menu,
.nav__menu.is-open { display: block; }

.nav .nav__menu a {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .6rem; border-radius: 8px;
  font-size: .92rem; color: var(--ink); font-weight: 500;
}
.nav .nav__menu a:hover { background: var(--flame-wash); color: var(--ink); box-shadow: none; }
.nav__menu .social__ico { width: 26px; height: 26px; }
.nav__menu .social__ico svg { width: 15px; height: 15px; }

@media (max-width: 1020px) {
  .nav__drop { width: 100%; }
  .nav__droptoggle { width: 100%; justify-content: space-between; padding: .8rem .7rem; font-size: 1.02rem; }
  .nav__menu {
    position: static; min-width: 0; padding: .2rem 0 .4rem .6rem;
    border: 0; box-shadow: none; background: none;
  }
  .nav .nav__menu a { padding: .65rem .7rem; }
}

.burger {
  display: none; margin-left: auto;
  background: var(--white); border: 2px solid var(--rule); border-radius: 9px;
  width: 44px; height: 40px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.burger span { display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .18s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: .8rem var(--pad) 1.4rem;
    box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem .7rem; font-size: 1.02rem; }
  .masthead .btn { margin: .5rem 0 0; width: 100%; }
}

/* ---------- 8. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  background: var(--bed);
  overflow: hidden;
}
/* Print-bed grid, faded at the edges */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 22%, #000 8%, transparent 74%);
  mask-image: radial-gradient(120% 90% at 50% 22%, #000 8%, transparent 74%);
  opacity: .85;
}
.hero > * { position: relative; }

.hero h1 { margin-bottom: 1.1rem; }
/* Home statement: sized to fill the measure rather than sit in a column */
.hero__title { font-size: clamp(2.7rem, 9vw, 7.2rem); letter-spacing: -.042em; line-height: .95; }
.hero__sub { font-size: clamp(1.12rem, 2.1vw, 1.55rem); max-width: none; color: var(--ink-soft); }
/* Layered "extrusion" on the accented word, used once, on the home hero */
.extruded {
  color: var(--ink);
  text-shadow:
    2px 2px 0 var(--flame-lit),
    4px 4px 0 var(--flame),
    5px 5px 0 var(--ember);
}
.hero__intro { max-width: 44ch; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: .5rem .9rem;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-top: 1.6rem;
}
.hero__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--flame); }

/* ---------- 9. Video: build-plate frame + facade ------------------------- */
.plate {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 12px 0;
  box-shadow: var(--shadow-lift);
}
.plate::after {           /* the freshly-laid layer under the plate */
  content: ""; display: block; height: 12px; margin: 12px 0 0;
  background-image:
    repeating-linear-gradient(90deg, var(--d1) 0 9px, transparent 9px 24px),
    repeating-linear-gradient(90deg, var(--d2) 0 6px, transparent 6px 21px),
    repeating-linear-gradient(90deg, var(--d3) 0 13px, transparent 13px 31px);
  background-size: 100% 4px;
  background-position: 0 0, 5px 4px, 11px 8px;
  background-repeat: repeat-x;
  border-radius: 0 0 8px 8px;
}
.plate__label {
  position: absolute; top: -11px; left: 20px; z-index: 2;
  background: var(--ink); color: var(--white);
  font-family: var(--f-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 5px;
}

.ratio {
  position: relative; aspect-ratio: 16 / 9;
  background: #14100E;
  border-radius: 8px;
  overflow: hidden;
}
.ratio > iframe, .ratio > img, .ratio > button, .ratio > a, .ratio > div {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.ratio > img { object-fit: cover; }

.facade { padding: 0; background: none; border: 0; cursor: pointer; display: block; text-decoration: none; color: var(--white); }
.facade:hover { color: var(--white); }
.facade__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.22,1,.36,1), filter .3s ease;
}
.facade:hover .facade__img { transform: scale(1.035); filter: brightness(.82); }
.facade__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(20,16,14,.05), rgba(20,16,14,.45));
}
.facade__play i {
  display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--flame); color: var(--ink);
  box-shadow: 0 8px 26px rgba(0,0,0,.4);
  transition: transform .2s ease, background-color .2s ease;
}
.facade__play i svg { width: 30px; height: 30px; margin-left: 4px; }
.facade:hover .facade__play i { transform: scale(1.09); background: var(--flame-lit); }

/* Says where the click goes, so opening a new tab isn't a surprise */
.facade__badge {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .75rem; border-radius: 100px;
  background: rgba(20,16,14,.82);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-family: var(--f-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .18s ease;
}
.facade__badge svg { width: 13px; height: 13px; }
.facade:hover .facade__badge { background: var(--flame); color: var(--ink); }
@media (max-width: 520px) {
  .facade__badge { right: 10px; bottom: 10px; font-size: .66rem; padding: .35rem .6rem; }
}
.facade__loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--ink-faint); font-family: var(--f-mono); font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; background: var(--bed);
}

.video-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; background: var(--bed); text-align: center; padding: 1.5rem;
}
.video-fallback p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.video-meta { padding: .95rem .35rem 0; }
.video-meta h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.video-meta p { font-family: var(--f-mono); font-size: .76rem; color: var(--ink-faint); letter-spacing: .06em; text-transform: uppercase; }

/* Recent uploads grid (home page, fed by latest.php) */
.vid-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.vid-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.vid-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #DCCDC1; color: inherit; }
.vid-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #14100E; overflow: hidden; }
.vid-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.vid-card:hover .vid-card__thumb img { transform: scale(1.05); }
.vid-card__play {
  position: absolute; left: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--flame); color: var(--ink);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.vid-card__play svg { width: 14px; height: 14px; margin-left: 2px; }
.vid-card__body { display: block; padding: 1rem 1.15rem 1.25rem; }
.vid-card__title {
  display: block;
  font-family: var(--f-display); font-weight: 700; font-stretch: 106%;
  font-size: 1rem; line-height: 1.25; letter-spacing: -.012em; color: var(--ink);
}
.vid-card__date {
  display: block; margin-top: .5rem;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* ---------- 10. Cards ---------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 2.4vw, 1.75rem);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card::before {           /* first layer of the print */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--flame);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #DCCDC1; }
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.section--bed .card { background: var(--white); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card p + p { margin-top: .8rem; }
.card > .card__foot { margin-top: auto; }
.card__ico {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--flame-wash); color: var(--ember-ink);
  margin-bottom: 1rem;
}
.card__ico svg { width: 23px; height: 23px; }
.card__foot { padding-top: 1rem; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; }

.card--link { text-decoration: none; color: inherit; }
.card--link:hover { color: inherit; }

/* Numbered steps, used only where order genuinely matters (workflows) */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3.1rem;
  margin-top: 1.5rem;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font-family: var(--f-mono); font-size: .8rem; font-weight: 600;
  color: var(--ember-ink);
  background: var(--flame-wash);
  border-radius: 7px; padding: .3rem .5rem;
}
.steps h3 { font-size: 1.02rem; font-stretch: 104%; letter-spacing: -.005em; margin-bottom: .25rem; }
.steps p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- 11. Feature rows & spec tables ------------------------------- */
.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.row__key { display: flex; gap: .8rem; align-items: baseline; }
.row__key h3 { margin: 0; }
.row__num {
  font-family: var(--f-mono); font-size: .74rem; color: var(--ink-faint);
  letter-spacing: .1em; padding-top: .3rem;
}
.row__body > * + * { margin-top: .8rem; }
.row__body p { color: var(--ink-soft); }
@media (max-width: 740px) { .row { grid-template-columns: 1fr; gap: .9rem; } }

.spec {
  width: 100%; border-collapse: collapse; font-size: .93rem;
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
}
.spec th, .spec td { text-align: left; padding: .72rem .95rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec thead th { background: var(--flame-wash); font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-ink); }
.spec tbody th { font-family: var(--f-mono); font-weight: 600; white-space: nowrap; width: 1%; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec td { color: var(--ink-soft); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

kbd {
  font-family: var(--f-mono); font-size: .82em;
  background: var(--white); border: 1px solid var(--rule);
  border-bottom-width: 2px; border-radius: 5px; padding: .1em .4em;
  color: var(--ink); white-space: nowrap;
}
code { font-family: var(--f-mono); font-size: .88em; background: var(--flame-wash); color: var(--ember-ink); padding: .12em .38em; border-radius: 5px; }

/* ---------- 12. Pills, tags, chips --------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 100px;
  background: var(--flame-wash); color: var(--ember-ink);
  border: 1px solid #F6DDCC;
}
.pill--ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pill--cyan { background: #E1F6FD; color: #006C93; border-color: #BEE9F9; }
.pill--live { background: #E8F7EE; color: #1B7A44; border-color: #C6EAD5; }
.pill-row { display: flex; flex-wrap: wrap; gap: .4rem; }

.jump {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.jump__inner { display: flex; gap: .4rem; overflow-x: auto; padding: .6rem var(--pad); max-width: var(--wrap); margin-inline: auto; scrollbar-width: thin; }
.jump a {
  flex: none; text-decoration: none;
  font-family: var(--f-mono); font-size: .76rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); padding: .4rem .75rem; border-radius: 7px; border: 1px solid transparent;
}
.jump a:hover { background: var(--flame-wash); color: var(--ember-ink); border-color: #F6DDCC; }

/* ---------- 13. Support / perks ------------------------------------------ */
/* Marker is absolutely positioned rather than a grid cell, so <strong> or
   <a> inside an item can't spawn extra grid items and shred the wrapping. */
.perks { list-style: none; padding: 0; display: grid; gap: .85rem; }
.perks li { position: relative; padding-left: 2.15rem; line-height: 1.5; }
.perks li + li { margin-top: 0; }
.perks li::before {
  content: ""; position: absolute; left: 0; top: .18em;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8B4C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.section--flame .perks li::before { background-color: var(--ink); }

.tier {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 1.9rem); display: flex; flex-direction: column; gap: 1rem;
}
.tier--feature { border: 2px solid var(--ink); box-shadow: var(--shadow-lift); position: relative; }
.tier--feature::after {
  content: "MOST POPULAR"; position: absolute; top: -11px; right: 18px;
  background: var(--flame); color: var(--ink);
  font-family: var(--f-mono); font-size: .64rem; font-weight: 600; letter-spacing: .14em;
  padding: .22rem .55rem; border-radius: 5px;
}

/* Secondary membership route - deliberately quieter than the Patreon block */
.alt-route {
  border: 2px dashed var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: grid; gap: 1rem;
}
.alt-route__head { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.alt-route h3 { margin: 0; }
.alt-route p { color: var(--ink-soft); }
.alt-route .note {
  font-size: .93rem; padding: .85rem 1rem;
  background: var(--flame-wash); border-radius: var(--radius-sm);
  border-left: 3px solid var(--flame); color: var(--ink-soft);
}

/* Rallying cry under the supporter perks */
.slogan {
  font-family: var(--f-display);
  font-weight: 800; font-stretch: 112%;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  line-height: 1.05; letter-spacing: -.028em;
  margin-top: 1.8rem;
  color: var(--flame);
}
.section--flame .slogan { color: var(--ink); }

/* ---------- 14. Socials -------------------------------------------------- */
.socials { display: flex; flex-wrap: wrap; gap: .6rem; }
.social {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem .9rem; border-radius: 10px;
  background: var(--white); border: 1px solid var(--rule);
  color: var(--ink); text-decoration: none;
  font-size: .9rem; font-weight: 500;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.social svg { width: 18px; height: 18px; flex: none; }
.social:hover { transform: translateY(-2px); border-color: var(--flame); box-shadow: 0 4px 0 var(--flame); color: var(--ink); }
.section--ink .social { background: #241E1A; border-color: #3A322D; color: #F2EBE6; }
.section--ink .social:hover { border-color: var(--flame); color: var(--white); }

/* Platform marks sit in the site's own tile treatment, so they read as
   part of the design rather than seven imported brand colours. */
.social__ico {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: inline-grid; place-items: center;
  background: var(--flame-wash); color: var(--ember-ink);
  transition: background-color .16s ease, color .16s ease;
}
.social__ico svg { width: 16px; height: 16px; }
.social:hover .social__ico { background: var(--flame); color: var(--ink); }
.section--ink .social__ico { background: #332C27; color: var(--flame); }

/* ---------- 15. Downloads & recommendations ------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.8rem; }
.filter {
  font-family: var(--f-mono); font-size: .76rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .45rem .85rem; border-radius: 100px;
  background: var(--white); border: 1px solid var(--rule); color: var(--ink-soft);
  cursor: pointer; transition: all .16s ease;
}
.filter:hover { border-color: var(--flame); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.dl { display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center; }
.dl__ico {
  width: 52px; height: 52px; border-radius: 11px; display: grid; place-items: center;
  background: var(--flame-wash); color: var(--ember-ink);
  font-family: var(--f-mono); font-size: .68rem; font-weight: 600; letter-spacing: .04em;
}
.dl__meta { font-family: var(--f-mono); font-size: .74rem; color: var(--ink-faint); letter-spacing: .06em; text-transform: uppercase; margin-top: .35rem; display: flex; flex-wrap: wrap; gap: .3rem .8rem; }
@media (max-width: 620px) {
  .dl { grid-template-columns: auto 1fr; }
  .dl > .btn { grid-column: 1 / -1; }
}

.empty {
  border: 2px dashed var(--rule); border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem); text-align: center; background: var(--white);
}
.empty h3 { margin-bottom: .5rem; }
.empty p { color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }

.disclosure {
  background: var(--flame-wash);
  border: 1px solid #F6DDCC;
  border-left: 4px solid var(--flame);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.disclosure strong { color: var(--ink); }
.disclosure p + p { margin-top: .6rem; }

/* Gear category sections */
.gear-cat + .gear-cat { margin-top: clamp(2.5rem, 5vw, 4rem); }
.gear-cat > h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  padding-bottom: .7rem; margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--rule);
  display: flex; align-items: center; gap: .8rem;
}
.gear-cat > h2::after {
  content: ""; flex: 1; height: 4px; border-radius: 2px;
  background-image:
    repeating-linear-gradient(90deg, var(--flame) 0 9px, transparent 9px 24px);
  opacity: .55;
}
.empty--slim { padding: 1.5rem; }
.empty--slim p { margin: 0; }

.rec { display: flex; flex-direction: column; gap: .7rem; }
.rec__why { font-size: .95rem; color: var(--ink-soft); }
.rec__note {
  font-family: var(--f-mono); font-size: .73rem; letter-spacing: .05em;
  color: var(--ink-faint); text-transform: uppercase;
}
.rec__note--own { color: var(--ember-ink); }

/* Region buttons for products sold through more than one storefront */
.rec__links { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.rec__links-label {
  width: 100%;
  font-family: var(--f-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: .15rem;
}
.rec__link { max-width: 100%; }
.rec__link-text {
  display: block; max-width: 14rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Screenshot slots. The <img> removes itself if the file isn't there yet,
   leaving a tidy placeholder rather than a broken-image icon. */
.shot {
  margin-top: 1.2rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bed);
}
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em;
  color: var(--ink-faint); padding: .6rem .8rem; border-top: 1px solid var(--rule);
}
.shot--empty {
  border-style: dashed; border-width: 2px; border-color: var(--rule);
  background:
    linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--bed);
}
.shot--empty::before {
  content: "Screenshot coming soon";
  display: grid; place-items: center;
  aspect-ratio: 16 / 9;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint);
}
.shot--empty figcaption { border-top: 1px dashed var(--rule); }

/* About portrait */
.portrait { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); background: var(--bed); box-shadow: var(--shadow); }
.portrait img { width: 100%; height: auto; display: block; }
.portrait--empty { border-style: dashed; border-width: 2px; }
.portrait--empty::before {
  content: "Photo coming soon";
  display: grid; place-items: center; aspect-ratio: 4 / 5;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* ---------- 16. Prose ---------------------------------------------------- */
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; }
.prose h2 + p, .prose h3 + p { margin-top: .8rem; }
.prose ul, .prose ol { color: var(--ink-soft); }
.prose blockquote {
  border-left: 4px solid var(--flame);
  padding: .3rem 0 .3rem 1.2rem;
  font-family: var(--f-display); font-stretch: 106%; font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.35;
  letter-spacing: -.015em;
}
.figure { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--bed); }
.figure figcaption { padding: .8rem 1rem; font-family: var(--f-mono); font-size: .76rem; color: var(--ink-faint); border-top: 1px solid var(--rule); }

details.faq {
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  background: var(--white); padding: 0; overflow: hidden;
}
details.faq + details.faq { margin-top: .6rem; }
details.faq > summary {
  cursor: pointer; list-style: none;
  padding: 1rem 1.2rem;
  font-family: var(--f-display); font-weight: 700; font-stretch: 106%;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after { content: "+"; font-family: var(--f-mono); color: var(--ember-ink); font-size: 1.3rem; line-height: 1; flex: none; }
details.faq[open] > summary::after { content: "−"; }
details.faq[open] > summary { background: var(--flame-wash); }
details.faq .faq__body { padding: 1.1rem 1.2rem; border-top: 1px solid var(--rule); }
details.faq .faq__body > * + * { margin-top: .8rem; }

/* ---------- Cookie notice ------------------------------------------------ */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--white);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 30px -12px rgba(26,22,20,.28);
  transform: translateY(110%);
  transition: transform .32s cubic-bezier(.22,1,.36,1);
}
.cookie.is-up { transform: none; }
/* Laid down like a first layer, so it belongs to the rest of the site */
.cookie__dither {
  height: 6px;
  background-image:
    repeating-linear-gradient(90deg, var(--flame) 0 9px, transparent 9px 24px),
    repeating-linear-gradient(90deg, var(--ember) 0 6px, transparent 6px 21px);
  background-size: 100% 3px;
  background-position: 0 0, 5px 3px;
  background-repeat: repeat-x;
}
.cookie__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 1rem var(--pad) 1.15rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem;
}
.cookie__copy { flex: 1 1 380px; }
.cookie__label {
  font-family: var(--f-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase; color: var(--ember-ink);
  margin-bottom: .25rem;
}
.cookie__text { font-size: .92rem; color: var(--ink-soft); line-height: 1.5; max-width: 68ch; }
/* Same size, same effort - reject must be as easy as accept */
.cookie__btns { display: flex; gap: .6rem; flex: none; }
.cookie__btns .btn { min-width: 116px; }
@media (max-width: 560px) {
  .cookie__btns { width: 100%; }
  .cookie__btns .btn { flex: 1; min-width: 0; }
}

/* ---------- 17. Footer --------------------------------------------------- */
.footer { background: var(--ink); color: #C9BFB8; padding-block: clamp(2.8rem, 6vw, 4rem) 0; }
.footer h2 { color: var(--white); font-family: var(--f-mono); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.footer a:not(.btn) { color: #C9BFB8; text-decoration: none; }
.footer a:not(.btn):hover { color: var(--flame); }
.footer__grid { display: grid; gap: 2rem clamp(1.5rem,4vw,3rem); grid-template-columns: minmax(240px,1.4fr) repeat(auto-fit, minmax(140px,1fr)); }
.footer__links { list-style: none; padding: 0; display: grid; gap: .55rem; font-size: .93rem; }
.footer__links li + li { margin-top: 0; }
.footer__brand img { width: 40px; margin-bottom: .9rem; }
.footer__brand p { font-size: .93rem; max-width: 34ch; }
.footer__base {
  margin-top: 2.6rem; border-top: 1px solid #332C27; padding-block: 1.4rem 1.8rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; color: #8B8078;
}

/* ---------- 18. Reveal on scroll ----------------------------------------- */
/* Scoped to .js so that if JavaScript never runs, nothing is left invisible. */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .dither--lay { transform: none; }
}

/* ---------- 19. Utilities ------------------------------------------------ */
.hide { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

@media (max-width: 520px) {
  .hero .btn-row > .btn { width: 100%; }
  .btn.btn--lg { font-size: 1rem; padding: .9rem 1.3rem; }
}

@media print {
  .masthead, .jump, .footer, .btn, .facade { display: none !important; }
  body { color: #000; }
}
