/* Llamacoids Safety Signs
   Industrial dark theme: graphite shop floor, safety-yellow accents, CAD-style
   mono annotations. Sign plates are the only saturated colour on the page. */

:root {
  --bg: #0e0f10;
  --bg-2: #131517;
  --panel: #17191c;
  --panel-2: #1d2024;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eceae3;
  --muted: #a1a6a9;
  --dim: #6c7276;
  --yellow: #ffce1f;
  --yellow-2: #ffdd5c;
  --ink: #161616;
  --red: #e5344d;
  --orange: #f7801e;
  --blue: #4a95e6;
  --green: #1fb46f;

  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html { background: var(--bg); }
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Subtle yellow glow behind the whole site. Fixed, so it stays put while scrolling. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 88% -5%, rgba(255, 206, 31, 0.1), transparent 70%),
    radial-gradient(45% 45% at 0% 100%, rgba(255, 206, 31, 0.05), transparent 70%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.mono { font-family: var(--f-mono); font-size: 0.78em; letter-spacing: 0.02em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 0.98; letter-spacing: 0.005em; margin: 0 0 0.5em; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.5rem; line-height: 1.05; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.85rem/1.4 var(--f-body); letter-spacing: 0.01em;
  color: var(--yellow); margin: 0 0 14px;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --b: var(--yellow);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 600 0.98rem/1 var(--f-body); letter-spacing: 0.005em; text-decoration: none;
  color: var(--ink); background: var(--b); border: 1px solid var(--b); border-radius: 8px; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn:hover { background: var(--yellow-2); border-color: var(--yellow-2); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { color: var(--text); background: transparent; border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.3); color: var(--text); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn--pill { border-radius: 999px; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--yellow); font-size: 0.95rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- header */
/* Transparent over the hero, turns into a slim solid bar once you scroll,
   and slides away while scrolling down. */
.site-header { position: sticky; top: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease); }
.site-header.is-scrolled { background: rgba(14, 15, 16, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__in { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 26px; height: 26px; }
.brand__word { font: 700 1.08rem/1 var(--f-body); letter-spacing: -0.005em; }
.brand__tag { font: 500 0.92rem/1 var(--f-body); color: var(--dim); padding-left: 10px; border-left: 1px solid var(--line-2); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; font-weight: 500; font-size: 0.94rem; text-decoration: none; color: var(--muted); border-radius: 6px; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a[aria-current] { color: var(--text); }
.site-header__cta { display: flex; align-items: center; gap: 18px; }
.tel { font: 500 0.9rem var(--f-body); text-decoration: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.tel svg { width: 16px; height: 16px; color: var(--yellow); }
.tel:hover { color: var(--text); }
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; border-radius: 8px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform 0.35s var(--ease); }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); padding: 12px var(--gutter) 28px; background: var(--bg); min-height: calc(100vh - 64px); }
.mobile-nav ul { list-style: none; margin: 0 0 20px; padding: 0; }
.mobile-nav li { opacity: 0; transform: translateY(8px); animation: rise 0.45s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms); }
.mobile-nav a { display: block; padding: 14px 0; font: 600 1.4rem/1 var(--f-body); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .tel { display: inline-flex; gap: 8px; align-items: center; }
@keyframes rise { to { opacity: 1; transform: none; } }
.site-header:has(.nav-toggle[aria-expanded='true']) { background: var(--bg); }

@media (max-width: 960px) {
  .nav, .site-header__cta .tel, .site-header__cta .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header__cta { margin-left: auto; }
}
@media (max-width: 400px) { .brand__tag { display: none; } }

/* ---------------------------------------------------------------- plates */
.plate { position: relative; display: block; border-radius: 1.8%/2.6%; transform-style: preserve-3d; transition: transform 0.5s var(--ease), filter 0.5s var(--ease); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); will-change: transform; }
.plate > img, .plate > svg, .plate .builder__svg > svg { width: 100%; height: auto; border-radius: inherit; }
/* Surface sheen: a phenolic plate has a slight satin gloss. */
.plate::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.22) 45%, transparent 60%); background-size: 250% 100%; background-position: var(--sheen, 120%) 0; mix-blend-mode: soft-light; transition: background-position 0.9s var(--ease); }
.plate:hover::after, a:hover .plate::after { --sheen: -20%; }
.plate--portrait { max-width: 72%; margin-inline: auto; }
.plate--label { max-width: 62%; margin-inline: auto; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; margin-top: -64px; padding: calc(64px + clamp(40px, 6vw, 88px)) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.hero { background: radial-gradient(80% 70% at 72% 45%, rgba(255, 255, 255, 0.025), transparent 70%); }
.hero__kicker { font-size: 0.95rem; font-weight: 500; color: var(--muted); margin: 0 0 18px; }
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__h { font-size: clamp(3rem, 6vw, 5.4rem); line-height: 0.88; margin-bottom: 28px; }
.hero__h .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__h .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 0.9s var(--ease) forwards; }
.hero__h .line:nth-child(2) > span { animation-delay: 0.08s; }
.hero__h .line:nth-child(3) > span { animation-delay: 0.16s; }
@keyframes lineUp { to { transform: none; } }
.hl { color: var(--yellow); }
.hero__lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 34em; margin-bottom: 32px; }
.hero__lede em { color: var(--text); font-style: normal; font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
[data-anim] { opacity: 0; transform: translateY(18px); animation: rise 0.8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
[data-anim='1'] { --d: 60; } [data-anim='2'] { --d: 140; } [data-anim='3'] { --d: 260; } [data-anim='4'] { --d: 380; } [data-anim='5'] { --d: 500; }
.hero__h[data-anim] { opacity: 1; transform: none; animation: none; }

.hero__stage { perspective: 1400px; }
.bed { position: relative; }
.bed__plate { position: relative; }
.hero-sign { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s; }
.hero-sign.is-active { position: relative; opacity: 1; visibility: visible; }
.hero-sign svg { width: 100%; height: auto; }
.bed__readout { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--dim); font-size: 0.88rem; }
.bed__readout [data-rd='state'] { color: var(--text); font-weight: 500; }
.bed__readout .sep { color: var(--line-2); }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); animation: blink 0.9s steps(2) infinite; }
.bed__readout.is-done .led { background: var(--green); box-shadow: 0 0 10px var(--green); animation: none; }
@keyframes blink { 50% { opacity: 0.3; } }
.cutter { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), 0 0 18px 6px rgba(255, 220, 120, 0.8); opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 3; }
.cutter.on { opacity: 1; }
.cutter__glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 230, 150, 0.45), transparent); animation: flicker 0.12s infinite alternate; }
@keyframes flicker { to { opacity: 0.55; transform: scale(0.9); } }

@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__stage { max-width: 620px; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 760px; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- levels */
.levels__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.level { --band: var(--ink); --fg: var(--yellow); --plate: var(--yellow); --txt: var(--ink); position: relative; display: flex; flex-direction: column; min-height: 300px; text-decoration: none; background: var(--plate); color: var(--txt); border-radius: 12px; padding: 14px; overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.level--danger { --band: #c8102e; --fg: #f6f5f0; --plate: #f6f5f0; --txt: #c8102e; }
.level--warning { --band: var(--ink); --fg: #f7801e; --plate: #f7801e; --txt: var(--ink); }
.level--notice { --band: #f2f0e8; --fg: #0b5cad; --plate: #0b5cad; --txt: #f2f0e8; }
.level::before { content: ''; position: absolute; inset: 8px; border: 2px solid var(--txt); border-radius: 7px; opacity: 0.9; pointer-events: none; }
.level__band { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--band); color: var(--fg); border-radius: 4px; padding: 12px 8px; margin: 6px; }
.level__band svg { width: 30px; height: 30px; }
.level--notice .level__band svg { display: none; }
.level__band b { font: 900 clamp(1.4rem, 2.4vw, 2rem)/1 var(--f-body); letter-spacing: 0.02em; }
.level--notice .level__band b { font-style: italic; }
.level__body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 20px 16px; }
.level__d { font: 800 1.45rem/1.08 var(--f-display); text-transform: uppercase; }
.level__pal { opacity: 0.75; }
.level__go { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 12px; border-top: 2px solid var(--txt); margin: 0 6px; font-size: 0.72rem; text-transform: uppercase; }
.level__go svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.level:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.8); }
.level:hover .level__go svg { transform: translateX(4px); }
.levels__more { margin-top: 28px; color: var(--muted); }
.levels__more a { color: var(--yellow); }
@media (max-width: 960px) { .levels__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .levels__grid { grid-template-columns: 1fr; } .level { min-height: 0; } }

/* ---------------------------------------------------------------- category cards */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 20px; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color 0.3s, background 0.3s, transform 0.5s var(--ease); }
.cat-card:hover { border-color: rgba(255, 206, 31, 0.45); transform: translateY(-4px); }
.cat-card__art { display: grid; place-items: center; height: 150px; margin-bottom: 14px; perspective: 800px; }
.cat-card__art .plate { width: 88%; }
.cat-card__art .plate--portrait { width: auto; height: 100%; max-width: none; }
.cat-card__art .plate--portrait img, .cat-card__art .plate--label img { height: 100%; width: auto; }
.cat-card__art .plate--label { width: auto; height: 100%; max-width: none; }
.cat-card__name { font: 800 1.45rem/1 var(--f-display); text-transform: uppercase; }
.cat-card__n { color: var(--dim); }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } .cat-card__art { height: 110px; } .cat-card__name { font-size: 1.15rem; } }

/* ---------------------------------------------------------------- anatomy */
.anatomy { background: rgba(255, 255, 255, 0.015); border-block: 1px solid var(--line); }
.anatomy__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.anatomy__copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.ticks li b { color: var(--text); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 4px; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23161616' stroke-width='2.4'/%3E%3C/svg%3E") center/100% no-repeat; }
.ticks--sm li { padding-left: 28px; font-size: 0.95rem; }
.ticks--sm li::before { width: 16px; height: 16px; top: 5px; }
.xsec { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: clamp(12px, 3vw, 28px); }
.xsec svg { width: 100%; height: auto; overflow: visible; }
.xsec__grooves rect { transform-box: fill-box; transform-origin: top; transform: scaleY(0); }
.xsec.in .xsec__grooves rect { animation: groove 0.35s var(--ease) forwards; }
.xsec.in .xsec__grooves rect:nth-child(1) { animation-delay: 0.55s; }
.xsec.in .xsec__grooves rect:nth-child(2) { animation-delay: 1.05s; }
.xsec.in .xsec__grooves rect:nth-child(3) { animation-delay: 1.5s; }
.xsec.in .xsec__grooves rect:nth-child(4) { animation-delay: 2.05s; }
.xsec.in .xsec__grooves rect:nth-child(5) { animation-delay: 2.55s; }
@keyframes groove { to { transform: scaleY(1); } }
.xsec__tool { transform: translate(100px, 0); }
.xsec.in .xsec__tool { animation: tool 3.4s var(--ease-in-out) forwards, toolLoop 6s 3.6s ease-in-out infinite; }
@keyframes tool {
  0% { transform: translate(100px, -20px); }
  12% { transform: translate(137px, 4px); }
  22% { transform: translate(137px, 4px); }
  30% { transform: translate(205px, 4px); }
  40% { transform: translate(273px, 4px); }
  56% { transform: translate(347px, 4px); }
  72% { transform: translate(419px, 4px); }
  86% { transform: translate(419px, -20px); }
  100% { transform: translate(470px, -30px); }
}
@keyframes toolLoop { 50% { transform: translate(470px, -40px); } 0%, 100% { transform: translate(470px, -30px); } }
.xsec__ctr { fill: var(--yellow); opacity: 0; }
.xsec.in .xsec__ctr { animation: fadeIn 0.5s 3s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
@media (max-width: 900px) { .anatomy__in { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; counter-reset: s; }
.steps::before { content: ''; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: var(--line-2); }
.steps::after { content: ''; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: var(--yellow); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 0.2s linear; }
.step { position: relative; padding-top: 72px; }
.step__n { position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); color: var(--muted); font-size: 0.9rem; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.step.lit .step__n { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.step h3 { font-size: 1.6rem; }
.step p { color: var(--muted); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before, .steps::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .steps::after { transform: scaleY(var(--p, 0)); transform-origin: top; }
  .step { padding: 8px 0 0 80px; min-height: 56px; }
}

/* ---------------------------------------------------------------- builder teaser */
.builder-teaser { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015)); }
.builder-teaser__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.builder-teaser__in p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; max-width: 30em; margin-bottom: 28px; }
.teaser-stack { position: relative; height: clamp(260px, 32vw, 380px); perspective: 1200px; }
.teaser-stack__p { position: absolute; width: 70%; left: calc(var(--i) * 14%); top: calc(var(--i) * 14%); transform: rotate(calc(-6deg + var(--i) * 5deg)); transition: transform 0.7s var(--ease); }
.teaser-stack:hover .teaser-stack__p { transform: rotate(calc(-10deg + var(--i) * 9deg)) translateX(calc(var(--i) * 14px - 14px)); }
@media (max-width: 860px) { .builder-teaser__in { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { transition: opacity 0.4s var(--ease), transform 0.8s var(--ease); }
.post-card[hidden] { display: none; }
.post-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color 0.3s, transform 0.5s var(--ease); }
.post-card__link:hover { border-color: rgba(255, 206, 31, 0.45); transform: translateY(-4px); }
.post-card__art { display: grid; place-items: center; height: 200px; background: radial-gradient(circle at 50% 120%, rgba(255, 206, 31, 0.12), transparent 60%), var(--panel-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.post-card__art .plate { width: 62%; transition: transform 0.7s var(--ease); }
.post-card__art .plate--portrait, .post-card__art .plate--label { width: auto; height: 78%; max-width: none; }
.post-card__art .plate--portrait img, .post-card__art .plate--label img { height: 100%; width: auto; }
.post-card__link:hover .plate { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.post-card__meta { display: flex; gap: 14px; color: var(--yellow); text-transform: uppercase; }
.post-card__meta span + span { color: var(--dim); }
.post-card__h { font: 800 1.6rem/1.02 var(--f-display); text-transform: uppercase; }
.post-card__d { color: var(--muted); font-size: 0.96rem; flex: 1; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.feature-post { display: grid; grid-template-columns: 1.1fr 1fr; margin-bottom: 18px; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color 0.3s; }
.feature-post:hover { border-color: rgba(255, 206, 31, 0.45); }
.feature-post__art { display: grid; place-items: center; padding: 40px; background: repeating-linear-gradient(-45deg, rgba(255, 206, 31, 0.04) 0 14px, transparent 14px 28px), var(--panel-2); perspective: 900px; }
.feature-post__art .plate { width: 78%; }
.feature-post__body { display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: clamp(24px, 4vw, 48px); }
.feature-post__h { font: 800 clamp(2rem, 3.4vw, 2.9rem)/0.98 var(--f-display); text-transform: uppercase; }
@media (max-width: 860px) { .feature-post { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- page hero */
.page-hero { position: relative; margin-top: -64px; padding: calc(64px + clamp(36px, 5vw, 64px)) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero, .post-hero { background: radial-gradient(70% 90% at 80% 30%, rgba(255, 255, 255, 0.025), transparent 70%); }
.page-hero > .wrap { position: relative; }
.page-hero--compact h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.page-hero__lede { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 40em; }
.page-hero__lede a { color: var(--yellow); }
.page-hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero__art { perspective: 1200px; padding: 12px; }
.page-hero .hero__actions { margin: 28px 0 0; }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; } .page-hero__art { max-width: 520px; } }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; color: var(--dim); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-2); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--yellow); }
.crumbs [aria-current] { color: var(--text); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a, .filters a, .filters button, .chip-links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); text-decoration: none; background: transparent; font: inherit; cursor: pointer; transition: all 0.25s var(--ease);
}
.jump a:hover, .filters a:hover, .filters button:hover, .chip-links a:hover { border-color: var(--yellow); color: var(--yellow); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; font-size: 0.9rem; font-weight: 500; }
.filters [aria-current], .filters [aria-pressed='true'] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.section .filters { margin: 0 0 28px; }
.chip-links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-links a { font-weight: 600; padding: 12px 18px; }
.chip-links svg { width: 16px; height: 16px; }
.chip-links--post { margin-top: 32px; }

/* ---------------------------------------------------------------- sign cards */
.sign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.sign-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color 0.3s; }
.sign-card:hover { border-color: rgba(255, 206, 31, 0.4); }
.sign-card__art { display: grid; place-items: center; height: 230px; padding: 24px; background: radial-gradient(circle at 50% 110%, rgba(255, 255, 255, 0.05), transparent 60%), var(--panel-2); perspective: 900px; }
.sign-card__art .plate { width: 100%; }
.sign-card__art .plate--portrait, .sign-card__art .plate--label { width: auto; height: 100%; max-width: none; }
.sign-card__art .plate--portrait img, .sign-card__art .plate--label img { height: 100%; width: auto; }
.sign-card__art .plate--wide { width: 100%; }
.sign-card__meta { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sign-card__h { font: 800 1.3rem/1.05 var(--f-display); text-transform: uppercase; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chips span { padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--muted); }
.sign-card__actions { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.link-dl { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.link-dl svg { width: 14px; height: 14px; }
.link-dl:hover { color: var(--yellow); }

/* ---------------------------------------------------------------- category body */
.cat-body { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.spec-card { position: sticky; top: 100px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.spec-card + .spec-card { position: static; margin-top: 16px; }
.spec-card dl { margin: 0 0 22px; }
.spec-card dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.spec-card dt { font: 500 0.72rem/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.spec-card dd { margin: 0; font-weight: 500; }
.spec-card dd a { color: var(--yellow); }
@media (max-width: 960px) { .cat-body { grid-template-columns: 1fr; } .spec-card { position: static; } }

/* ---------------------------------------------------------------- prose */
.prose { font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.5rem; margin-top: 1.5em; }
.prose p, .prose li { color: #cfd1cf; }
.prose a { color: var(--yellow); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--yellow); }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--yellow); background: var(--panel); border-radius: 0 10px 10px 0; font-size: 1.15rem; }
.prose blockquote p:last-child { margin: 0; }
.prose .callout { margin: 1.8em 0; padding: 22px 24px 20px 64px; position: relative; background: rgba(255, 206, 31, 0.07); border: 1px solid rgba(255, 206, 31, 0.3); border-radius: 12px; }
.prose .callout::before { content: ''; position: absolute; left: 22px; top: 22px; width: 26px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 7 L95 88 H5 Z' fill='%23FFCE1F'/%3E%3Cpath d='M50 34 V60' stroke='%23161616' stroke-width='11' stroke-linecap='round'/%3E%3Ccircle cx='50' cy='75' r='6.5' fill='%23161616'/%3E%3C/svg%3E") center/contain no-repeat; }
.prose .callout strong { display: block; font: 800 1.25rem/1.1 var(--f-display); text-transform: uppercase; margin-bottom: 6px; color: var(--yellow); }
.prose .callout p:last-child { margin: 0; }
.prose table { width: 100%; max-width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose table.spec thead th { text-align: left; font: 500 0.72rem var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 12px 14px; white-space: nowrap; }
.prose table.spec thead th:first-child { border-radius: 8px 0 0 0; }
.prose table.spec thead th:last-child { border-radius: 0 8px 0 0; }
.prose table.spec td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: #cfd1cf; }
.prose table.spec tbody tr { transition: background 0.2s; }
.prose table.spec tbody tr:hover { background: var(--panel); }
.post-fig { margin: 2em 0; padding: clamp(24px, 4vw, 44px); background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.015) 0 12px, transparent 12px 24px), var(--panel); border: 1px solid var(--line); border-radius: 14px; perspective: 900px; }
.post-fig .plate { max-width: 480px; margin: 0 auto; }
.post-fig .plate--portrait, .post-fig .plate--label { max-width: 300px; }
.post-fig figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
.post-fig figcaption a { text-decoration: none; }

/* ---------------------------------------------------------------- post */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; background: var(--yellow); transform: scaleX(var(--read, 0)); transform-origin: left; box-shadow: 0 0 12px var(--yellow); }
.post-hero { position: relative; margin-top: -64px; padding: calc(64px + clamp(32px, 5vw, 60px)) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.post-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
.post-hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.post-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--dim); text-transform: uppercase; margin-bottom: 18px; }
.post-hero__meta a { color: var(--yellow); text-decoration: none; }
.byline { color: var(--dim); margin: 18px 0 0; }
@media (max-width: 900px) { .post-hero__grid { grid-template-columns: 1fr; } .post-hero .page-hero__art { max-width: 420px; } }
.post-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: clamp(32px, 6vw, 88px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: 40px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc ol { list-style: none; margin: 0 0 28px; padding: 0; border-left: 1px solid var(--line-2); counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { position: relative; display: block; padding: 7px 0 7px 16px; color: var(--dim); text-decoration: none; font-size: 0.92rem; line-height: 1.35; transition: color 0.2s; }
.toc a::before { content: counter(t, decimal-leading-zero); font: 500 0.66rem var(--f-mono); margin-right: 8px; color: var(--line-2); }
.toc a::after { content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--yellow); transform: scaleY(0); transition: transform 0.3s var(--ease); }
.toc a:hover, .toc a.on { color: var(--text); }
.toc a.on::after { transform: scaleY(1); }
.toc a.on::before { color: var(--yellow); }
.toc__cta { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.toc__cta p { font-weight: 600; margin-bottom: 12px; }
@media (max-width: 1000px) { .post-layout { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.post-body .faq { margin-top: 56px; }
.author { display: flex; gap: 18px; align-items: flex-start; margin-top: 48px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.author .logo-mark { flex: none; width: 48px; height: 48px; }
.author p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.author .author__n { color: var(--text); font-weight: 700; margin-bottom: 4px; }
.author a { color: var(--yellow); }

/* ---------------------------------------------------------------- faq */
.faq .section-head { margin-bottom: 24px; }
.faq h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.12rem; transition: color 0.2s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--yellow); }
.faq__item summary i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%; transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s; }
.faq__item summary i svg { width: 16px; height: 16px; }
.faq__item[open] summary i { transform: rotate(135deg); background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a, .no-js .faq__item[open] .faq__a { grid-template-rows: 1fr; }
.faq__a p { color: var(--muted); padding: 0 56px 22px 0; margin: 0; }

/* ---------------------------------------------------------------- cta band */
.cta-band { position: relative; overflow: hidden; margin: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 100px); border-radius: 14px; background: var(--yellow); color: var(--ink); }
.cta-band__stripes { display: none; }
.cta-band__in { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: clamp(32px, 5vw, 60px); }
.cta-band__in > div:first-child { max-width: 620px; }
.cta-band .eyebrow { color: var(--ink); }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.cta-band p:not(.eyebrow) { margin: 0; font-size: 1.08rem; font-weight: 500; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn { --b: var(--ink); color: var(--text); }
.cta-band .btn:hover { background: #000; border-color: #000; }
.cta-band .btn--ghost { color: var(--ink); border-color: rgba(0, 0, 0, 0.35); background: transparent; }
.cta-band .btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(0, 0, 0, 0.06); }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: #0a0b0c; padding-top: 16px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 48px 0; }
.foot-brand p { color: var(--muted); max-width: 30em; margin-top: 16px; font-size: 0.95rem; }
.foot-brand .mono { color: var(--dim); line-height: 1.9; }
.foot-brand a { color: var(--text); text-decoration: none; }
.foot-h { font: 600 0.9rem var(--f-body); color: var(--text); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: 0.95rem; transition: color 0.2s, transform 0.3s var(--ease); }
.site-footer li a:hover { color: var(--yellow); transform: translateX(4px); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 28px; border-top: 1px solid var(--line); color: var(--dim); }
.foot-base a { color: var(--dim); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- builder */
.builder { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.builder__preview { position: sticky; top: 96px; }
.builder__bed { display: grid; place-items: center; min-height: clamp(300px, 38vw, 520px); padding: clamp(24px, 4vw, 48px); background: linear-gradient(var(--line) 1px, transparent 1px) 0 0/32px 32px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/32px 32px, var(--panel); border: 1px solid var(--line); border-radius: 16px; perspective: 1200px; }
.builder__bed .plate { width: 100%; max-width: 560px; transition: max-width 0.5s var(--ease), transform 0.5s var(--ease); }
.builder__bed .plate.is-portrait { max-width: 330px; }
.builder__bed .plate.is-wide { max-width: 600px; }
.builder__bed .plate.is-small { max-width: 380px; }
.builder__svg { display: block; }
.builder__svg.flash svg { animation: stamp 0.45s var(--ease); }
@keyframes stamp { 0% { transform: scale(0.97); filter: brightness(1.25); } 100% { transform: none; filter: none; } }
.builder__spec { color: var(--dim); margin: 16px 2px; min-height: 1.4em; }
.builder__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.builder__actions svg { width: 18px; height: 18px; }
.builder__controls { display: grid; gap: 22px; }
.builder__controls fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 20px; margin: 0; background: var(--panel); min-width: 0; }
.builder__controls legend { font: 500 0.72rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); padding: 0 6px; }
.builder__controls fieldset.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border: 0; padding: 0; background: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2, .builder__controls fieldset.row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; margin-bottom: 14px; align-content: start; }
.field:last-child { margin-bottom: 0; }
.field > span { font-weight: 600; font-size: 0.92rem; }
.field small { color: var(--dim); font-weight: 400; margin-left: 6px; }
.field input, .field textarea, .field select { width: 100%; font: 500 1rem/1.4 var(--f-body); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { font-family: var(--f-mono); font-size: 0.92rem; resize: vertical; text-transform: uppercase; }
.field input[name='sub'] { text-transform: uppercase; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 206, 31, 0.18); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23FFCE1F' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field .is-bad { border-color: var(--red); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__opt input, .icon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opt span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 8px; font-weight: 700; text-transform: uppercase; font-size: 0.86rem; letter-spacing: 0.04em; cursor: pointer; transition: all 0.2s; }
.seg__opt span:hover { border-color: var(--muted); }
.seg__opt input:checked + span { color: var(--ink); border-color: transparent; background: var(--yellow); }
.seg__opt--danger input:checked + span { background: #c8102e; color: #fff; }
.seg__opt--warning input:checked + span { background: var(--orange); }
.seg__opt--notice input:checked + span { background: #0b5cad; color: #fff; }
.seg__opt--fire input:checked + span { background: #c8102e; color: #fff; }
.seg__opt--firstaid input:checked + span { background: #00824a; color: #fff; }
.seg__opt--prohibit input:checked + span { background: #f6f5f0; color: #c8102e; }
.seg__opt input:focus-visible + span, .icon-pick input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.icon-pick label { display: grid; gap: 4px; justify-items: center; cursor: pointer; }
.icon-pick span { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); transition: all 0.2s; padding: 10px; }
.icon-pick span svg { width: 100%; height: 100%; }
.icon-pick span b { color: var(--dim); font-size: 1.2rem; }
.icon-pick em { font-style: normal; font-size: 0.66rem; color: var(--dim); text-align: center; line-height: 1.2; }
.icon-pick label:hover span { border-color: var(--muted); }
.icon-pick input:checked + span { border-color: var(--yellow); background: rgba(255, 206, 31, 0.1); box-shadow: 0 0 0 1px var(--yellow) inset; }
.icon-pick input:checked ~ em { color: var(--yellow); }
@media (max-width: 960px) { .builder { grid-template-columns: 1fr; } .builder__preview { position: relative; top: 0; } }

/* ---------------------------------------------------------------- svg library */
.license { margin-top: 26px; max-width: 760px; padding: 18px 22px; border: 1px dashed rgba(255, 206, 31, 0.45); border-radius: 12px; background: rgba(255, 206, 31, 0.05); }
.license p { margin: 0; color: var(--muted); }
.license b { color: var(--yellow); }
.license a { color: var(--yellow); }
.svg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.svg-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); perspective: 900px; }
.svg-card[hidden] { display: none; }
.svg-card > .plate { height: 170px; width: auto; max-width: 100%; margin: 0 auto 10px; }
.svg-card > .plate img { height: 100%; width: auto; }
.svg-card > .plate--wide { height: auto; width: 100%; }
.svg-card > .plate--wide img { width: 100%; height: auto; }
.svg-card__h { font: 800 1.2rem/1.05 var(--f-display); margin: 0; }
.svg-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.svg-card__actions svg { width: 15px; height: 15px; }
.svg-card__actions .link-arrow { margin-left: auto; }

/* ---------------------------------------------------------------- quote */
.quote { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.quote__form { padding: clamp(20px, 3vw, 32px); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.quote__form .btn { margin-top: 8px; }
.quote__note { color: var(--muted); margin: 16px 0 0; min-height: 1.4em; }
.quote__note.ok { color: var(--green); }
.quote__note.err { color: var(--red); }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 404 */
.nf__in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; perspective: 1200px; }
@media (max-width: 800px) { .nf__in { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- engraving (hero SVGs) */
.js svg.engrave:not(.done) .s-border, .js svg.engrave:not(.done) .s-rule { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js svg.engrave:not(.done) .s-band { clip-path: inset(0 100% 0 0); }
.js svg.engrave:not(.done) .s-alert, .js svg.engrave:not(.done) .s-word, .js svg.engrave:not(.done) .s-icon { opacity: 0; }
.js svg.engrave:not(.done) .s-line { fill-opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-anim] { opacity: 1 !important; transform: none !important; }
  .hero__h .line > span { transform: none; }
  .ticker__track { animation: none; }
  .xsec__grooves rect { transform: none; }
}

/* ---------------------------------------------------------------- builder: price, order, checkout */
.builder__price { margin: 4px 2px 18px; color: var(--muted); font-size: 0.98rem; }
.builder__price b { color: var(--text); font-size: 1.35rem; font-weight: 700; margin-right: 4px; font-variant-numeric: tabular-nums; }
.builder__price small { color: var(--dim); }
.builder__status { min-height: 1.4em; margin: 10px 2px 0; color: var(--muted); font-size: 0.9rem; }
[data-add].is-added { background: var(--green); border-color: var(--green); color: #fff; }
.order-panel { margin-top: 20px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.order-panel[hidden] { display: none; }
.order-panel__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.order-panel__head h2 { font-size: 1.6rem; margin: 0; }
.order-panel__head span { color: var(--dim); }
.order-list { list-style: none; margin: 0; padding: 0; }
.order-item { display: grid; grid-template-columns: 72px 1fr auto auto; grid-template-areas: 'art txt qty price' 'art acts acts acts'; gap: 4px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-item__art { grid-area: art; display: grid; place-items: center; }
.order-item__art svg { width: 72px; height: auto; max-height: 72px; border-radius: 3px; }
.order-item__txt { grid-area: txt; display: grid; gap: 2px; min-width: 0; }
.order-item__txt b { font-weight: 600; font-size: 0.98rem; overflow-wrap: anywhere; }
.order-item__txt small { color: var(--dim); font-size: 0.8rem; }
.order-item__qty { grid-area: qty; }
.order-item__qty input { width: 64px; font: 600 0.95rem var(--f-body); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 8px; }
.order-item__price { grid-area: price; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 80px; text-align: right; }
.order-item__acts { grid-area: acts; display: flex; gap: 14px; }
.order-item__acts button { background: none; border: 0; padding: 0; font: 500 0.82rem var(--f-body); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.order-item__acts button:hover { color: var(--yellow); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.order-totals { margin: 14px 0 6px; }
.order-totals div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.order-totals dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--text); }
.order-totals__total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px !important; }
.order-totals__total dt, .order-totals__total dd { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.order-panel__note { color: var(--dim); font-size: 0.86rem; margin: 10px 0 16px; }
.checkout { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 16px; }
.checkout::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.checkout[open] { animation: rise 0.35s var(--ease); }
.checkout__form { padding: clamp(20px, 4vw, 32px); }
.checkout__form h2 { font-size: 2rem; }
.checkout__lede { color: var(--muted); }
.checkout__lede b { color: var(--text); }
.checkout__status { min-height: 1.4em; color: var(--muted); font-size: 0.92rem; }
.checkout__status.is-err { color: var(--red); }
.checkout__status.is-ok { color: var(--green); }
.checkout__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.checkout__actions .btn[disabled] { opacity: 0.6; cursor: progress; }
.row3 { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row3 { grid-template-columns: 1fr; } .order-item { grid-template-columns: 56px 1fr auto; grid-template-areas: 'art txt price' 'art qty acts'; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.checkout .field textarea { text-transform: none; font-family: var(--f-body); font-size: 1rem; }

/* ---------------------------------------------------------------- cart: header, toast, cards */
.cart-link { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--text); border: 1px solid var(--line-2); transition: border-color 0.2s, background 0.2s; }
.cart-link svg { width: 20px; height: 20px; }
.cart-link:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.04); }
.cart-count { position: absolute; top: -5px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 0.7rem/19px var(--f-body); text-align: center; }
.cart-count[hidden] { display: none; }
[data-cart-link] [data-cart-count] { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 0.78rem; }
[data-cart-link] [data-cart-count][hidden] { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: min(520px, calc(100vw - 32px)); padding: 14px 18px; border-radius: 12px; background: #1d2024; border: 1px solid var(--line-2); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7); color: var(--muted); font-size: 0.95rem; transform: translate(-50%, 140%); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.3s; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast b { color: var(--text); }
.toast a { color: var(--yellow); font-weight: 600; margin-left: 6px; }
.btn.is-added, [data-add].is-added { background: var(--green); border-color: var(--green); color: #fff; }
.btn svg + span { margin-left: 0; }
.sign-card__price { margin: 2px 0 0; color: var(--dim); font-size: 0.9rem; }
.sign-card__price b { color: var(--text); font-size: 1.15rem; font-variant-numeric: tabular-nums; margin-right: 2px; }
.sign-card__actions .btn svg { width: 16px; height: 16px; }
.svg-card__art { display: block; text-decoration: none; }
.svg-card__art .plate { height: 170px; width: auto; max-width: 100%; margin: 0 auto 10px; }
.svg-card__art .plate img { height: 100%; width: auto; }
.svg-card__art .plate--wide { height: auto; width: 100%; }
.svg-card__art .plate--wide img { width: 100%; height: auto; }
.builder__status a { color: var(--yellow); font-weight: 600; }

/* ---------------------------------------------------------------- cart page */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.cart__loading { color: var(--dim); }
.cart__empty { padding: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.cart__empty h2 { font-size: 2rem; }
.cart__empty p { color: var(--muted); }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.cart-line__art { display: grid; place-items: center; min-height: 110px; }
.cart-line__art .plate { width: 100%; }
.cart-line__art .plate--portrait, .cart-line__art .plate--label { width: auto; max-width: 90px; }
.cart-line__art img, .cart-line__art svg { width: 100%; height: auto; }
.cart-line__h { font-size: 1.4rem; margin: 0 0 4px; }
.cart-line__meta { color: var(--dim); font-size: 0.9rem; margin: 0 0 12px; }
.cart-line__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.cart-line__opts .field { margin: 0; gap: 4px; }
.cart-line__opts .field > span { font-size: 0.78rem; color: var(--dim); font-weight: 500; }
.cart-line__opts select, .cart-line__opts input { padding: 8px 10px; font-size: 0.9rem; }
.cart-line__opts select { padding-right: 34px; background-position: right 8px center; }
.cart-line__qty input { width: 80px; }
.cart-line__acts { display: flex; gap: 16px; margin-top: 12px; }
.cart-line__acts button { background: none; border: 0; padding: 0; font: 500 0.86rem var(--f-body); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cart-line__acts button:hover { color: var(--yellow); }
.cart-line__price { text-align: right; display: grid; gap: 2px; }
.cart-line__price b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.cart-line__price small { color: var(--dim); }
.cart__summary[hidden] { display: none; }
.cart__summary .btn + .btn { margin-top: 10px; }
@media (max-width: 900px) { .cart { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .cart-line { grid-template-columns: 90px minmax(0, 1fr); } .cart-line__price { grid-column: 2; text-align: left; } }

/* ---------------------------------------------------------------- checkout page */
.checkout-page { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.checkout-page .field textarea { text-transform: none; font-family: var(--f-body); font-size: 1rem; }
.checkout-page .btn[disabled] { opacity: 0.6; cursor: progress; }
.checkout-lines { list-style: none; margin: 0 0 8px; padding: 0; }
.checkout-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.checkout-lines small { color: var(--dim); }
.checkout-lines b { font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .checkout-page { grid-template-columns: 1fr; } .checkout-summary { order: -1; } }
/* totals inside a spec card: label left, amount right, not the dt/dd spec grid */
.spec-card .order-totals div { display: flex; justify-content: space-between; grid-template-columns: none; padding: 6px 0; border-bottom: 0; }
.spec-card .order-totals dt { font: 500 0.95rem var(--f-body); text-transform: none; letter-spacing: 0; color: var(--muted); }
.spec-card .order-totals dd { font-variant-numeric: tabular-nums; }
.spec-card .order-totals .order-totals__total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.spec-card .order-totals .order-totals__total dt, .spec-card .order-totals .order-totals__total dd { font-weight: 700; font-size: 1.15rem; color: var(--text); }
