/* ============================================================
   FENNIX IT SOLUTIONS — bold, tech, dark-carbon Ghost theme
   Design system: carbon base + ember (#F26522) + mesh-ice accent
   Display: Space Grotesk · Body: Inter · Data: JetBrains Mono
   ============================================================ */

:root {
  /* Carbon surfaces */
  --bg:          #090B10;
  --bg-2:        #0C0F16;
  --surface:     #12161F;
  --surface-2:   #171D29;
  --line:        rgba(255,255,255,.07);
  --line-2:      rgba(255,255,255,.12);

  /* Ember + accents (from the phoenix mark) */
  --ember:       #F26522;
  --ember-2:     #FF7D33;
  --ember-3:     #FF9A4D;
  --ember-glow:  rgba(242,101,34,.45);
  --ice:         #4AA3E0;

  /* Ink */
  --text:        #EAEDF3;
  --muted:       #9098A8;
  --muted-2:     #616B7E;

  /* Type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Rhythm */
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset-ish ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin: 0; }

/* Carbon-fiber twill woven from CSS gradients — the signature backdrop */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    repeating-linear-gradient(45deg,  rgba(255,255,255,.014) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.35) 0 2px, transparent 2px 4px),
    radial-gradient(1200px 800px at 50% -10%, #131824 0%, var(--bg) 60%);
  background-size: 6px 6px, 6px 6px, 100% 100%;
}
/* Ambient ember that breathes behind the fold */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(680px 520px at 50% 6%, var(--ember-glow), transparent 70%);
  opacity: .5;
  animation: breathe 9s var(--ease) infinite;
}
@keyframes breathe { 0%,100% { opacity:.32; } 50% { opacity:.6; } }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 124px); position: relative; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ember-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--ember); opacity: .7; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 50px); margin-top: 18px; }
.section-head p { color: var(--muted); margin: 16px 0 0; font-size: 18px; }

/* Circuit-trace divider — the recurring signature rule */
.trace { height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-2) 12%, var(--ember) 50%, var(--line-2) 88%, transparent);
  opacity: .5;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-head.is-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; filter: drop-shadow(0 3px 12px var(--ember-glow)); }
.brand .wordmark {
  font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .04em;
  color: var(--text);
}
.brand .wordmark b { color: var(--ember); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: .01em;
  position: relative; transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content:""; position:absolute; left:0; right:100%; bottom:-6px; height:1.5px;
  background: var(--ember); transition: right .25s var(--ease);
}
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* Buttons */
.btn {
  --pad: 13px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad);
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  border-radius: 10px; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #1a0d05;
  background: linear-gradient(180deg, var(--ember-3), var(--ember));
  box-shadow: 0 8px 24px -8px var(--ember-glow), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { box-shadow: 0 14px 34px -8px var(--ember-glow), inset 0 1px 0 rgba(255,255,255,.4); transform: translateY(-2px); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--ember); color: #fff; background: rgba(242,101,34,.08); }
.btn-sm { --pad: 10px 16px; font-size: 14px; border-radius: 9px; }
.btn svg { width: 16px; height: 16px; }

.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; }

/* ============================================================
   HERO — the enlarged phoenix is the thesis
   ============================================================ */
.hero { position: relative; text-align: center; padding-block: clamp(56px, 9vw, 104px) clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-visual { display: flex; justify-content: center; }
.hero-copy { display: contents; }

.hero-mark {
  width: clamp(220px, 34vw, 400px);
  margin-bottom: clamp(20px, 3vw, 34px);
  filter: drop-shadow(0 18px 60px var(--ember-glow));
  animation: rise 1s var(--ease) both;
}

/* Desktop: phoenix left, copy right */
@media (min-width: 900px) {
  .hero { text-align: left; }
  .hero-inner {
    display: grid; grid-template-columns: minmax(0, .92fr) 1.08fr;
    align-items: center; gap: clamp(32px, 5vw, 72px);
  }
  .hero-visual { justify-content: flex-end; }
  .hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
  .hero-mark { width: clamp(300px, 32vw, 440px); margin-bottom: 0; }
  .hero h1 { max-width: 14ch; }
  .hero-sub { margin-inline: 0; }
  .hero-actions { justify-content: flex-start; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }

.hero .eyebrow { animation: fade-up .7s var(--ease) .1s both; }
.hero h1 {
  font-size: clamp(38px, 6.6vw, 82px);
  margin: 20px 0 0; max-width: 15ch;
  animation: fade-up .8s var(--ease) .2s both;
}
.hero h1 .ember {
  background: linear-gradient(180deg, var(--ember-3), var(--ember));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.6;
  max-width: 60ch; margin: 24px auto 0;
  animation: fade-up .8s var(--ease) .32s both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px;
  animation: fade-up .8s var(--ease) .44s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Marquee of capabilities — subtle tech pulse under the hero */
.marquee { position: relative; margin-top: clamp(44px, 6vw, 76px); border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; padding-block: 16px; animation: slide 34s linear infinite; }
.marquee span { font-family: var(--mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); display: inline-flex; align-items: center; gap: 46px; }
.marquee span::after { content: "◆"; color: var(--ember); font-size: 8px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 18px; }
.card {
  position: relative; padding: 30px 28px 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card::before { /* circuit-trace top rule that lights up on hover */
  content:""; position:absolute; inset: 0 0 auto 0; height:1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0; transition: opacity .35s;
}
.card::after { /* corner glow */
  content:""; position:absolute; width:180px; height:180px; right:-60px; top:-60px; border-radius:50%;
  background: radial-gradient(circle, var(--ember-glow), transparent 65%); opacity:0; transition: opacity .4s;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 24px 50px -30px rgba(0,0,0,.9); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card-ico {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: radial-gradient(circle at 30% 25%, rgba(242,101,34,.22), rgba(242,101,34,.06));
  border: 1px solid rgba(242,101,34,.28); color: var(--ember-2);
}
.card-ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card .card-no { position: absolute; right: 22px; top: 20px; font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: .1em; }

/* ============================================================
   PROCESS — real 4-step sequence, numbered
   ============================================================ */
.process { position: relative; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 10px; }
.step { position: relative; padding: 34px 26px 8px 0; }
.step:not(:last-child) { border-right: 1px solid var(--line); padding-right: 30px; }
.step-no { font-family: var(--mono); font-size: 13px; color: var(--ember); letter-spacing: .15em; }
.step-dot { position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 5px rgba(242,101,34,.14), 0 0 18px var(--ember-glow); }
.step-line { position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--line-2); }
.process .steps { padding-top: 8px; }
.step h3 { font-size: 19px; margin: 18px 0 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ============================================================
   RISE band — value props on ember panel
   ============================================================ */
.rise { position: relative; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(900px 340px at 15% 0%, rgba(242,101,34,.18), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-2);
  padding: clamp(40px, 6vw, 68px);
}
.rise-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 42px; }
.rise-head h2 { font-size: clamp(28px, 4vw, 46px); max-width: 16ch; }
.rise-head h2 .ember { color: var(--ember); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 30px; }
.value { border-top: 2px solid var(--ember); padding-top: 20px; }
.value h4 { font-family: var(--display); font-size: 18px; margin: 0 0 8px; }
.value p { color: var(--muted); font-size: 15px; margin: 0; }

/* ============================================================
   POSTS
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 24px; }
.pcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface); transition: transform .3s var(--ease), border-color .3s; }
.pcard:hover { transform: translateY(-4px); border-color: var(--line-2); }
.pcard-img { aspect-ratio: 16/9; background: var(--bg-2) center/cover; position: relative; }
.pcard-img.no-img { display: grid; place-items: center; }
.pcard-img.no-img img { width: 68px; opacity: .5; filter: grayscale(.2); }
.pcard-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ember-2); }
.pcard h3 { font-size: 20px; line-height: 1.2; }
.pcard p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.pcard-meta { color: var(--muted-2); font-size: 13px; font-family: var(--mono); letter-spacing: .04em; margin-top: 4px; }

/* ============================================================
   CTA
   ============================================================ */
.cta { text-align: center; position: relative; border-radius: 22px; overflow: hidden;
  padding: clamp(48px, 7vw, 88px) var(--gutter);
  background: linear-gradient(180deg, #1a1108, #0b0d12);
  border: 1px solid rgba(242,101,34,.28);
}
.cta::before { content:""; position:absolute; inset:0; z-index:0;
  background: radial-gradient(600px 300px at 50% 120%, var(--ember-glow), transparent 60%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(30px, 5vw, 56px); max-width: 18ch; margin-inline: auto; }
.cta p { color: var(--muted); font-size: 18px; max-width: 50ch; margin: 18px auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.subscribe { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.subscribe input {
  background: rgba(0,0,0,.4); border: 1px solid var(--line-2); color: var(--text);
  padding: 13px 18px; border-radius: 10px; font: inherit; font-size: 15px; min-width: 260px;
}
.subscribe input::placeholder { color: var(--muted-2); }
.subscribe input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(242,101,34,.18); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px);
  align-items: start;
  border-radius: 22px; overflow: hidden;
  padding: clamp(32px, 5vw, 60px);
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(242,101,34,.14), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid rgba(242,101,34,.28);
}
.contact-intro h2 { font-size: clamp(28px, 4vw, 46px); margin-top: 16px; }
.contact-intro > p { color: var(--muted); font-size: 17px; margin: 16px 0 0; }
.contact-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-points li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 15px; }
.cp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--ember-glow); flex: none; }
.contact-sub { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-sub-label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 12px; }
.contact-sub .subscribe { justify-content: flex-start; margin-top: 0; }
.contact-sub .subscribe input { min-width: 200px; }

.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field > span em { font-style: normal; color: var(--muted-2); text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%; background: rgba(0,0,0,.34); border: 1px solid var(--line-2); color: var(--text);
  padding: 13px 16px; border-radius: 10px; font: inherit; font-size: 15.5px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(242,101,34,.16); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d5563a; }
.contact-submit { width: 100%; margin-top: 4px; }
.contact-submit[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form-status { margin: 4px 0 0; font-size: 14.5px; padding: 12px 16px; border-radius: 10px; }
.form-status.is-ok { color: #cfe7d4; background: rgba(52,160,90,.14); border: 1px solid rgba(52,160,90,.4); }
.form-status.is-err { color: #f4c4b6; background: rgba(213,86,58,.14); border: 1px solid rgba(213,86,58,.45); }
@media (max-width: 820px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot { border-top: 1px solid var(--line); margin-top: clamp(48px,7vw,96px); padding-block: 56px 34px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 34px; }
.foot-brand { max-width: 320px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--muted); font-size: 15px; margin: 0; }
.foot-cols { display: flex; gap: clamp(34px, 7vw, 84px); flex-wrap: wrap; }
.foot-col h5 { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 16px; }
.foot-col a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: var(--ember-2); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center;
  margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13.5px; }
.foot-bottom .veteran-owned { color: var(--ember); font-weight: 600; }
.foot-bottom .socials { display: flex; gap: 12px; }
.foot-bottom .socials a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); transition: all .2s; }
.foot-bottom .socials a:hover { color: var(--ember); border-color: var(--ember); }
.foot-bottom .socials svg { width: 16px; height: 16px; }

/* ============================================================
   CONTENT (post / page)
   ============================================================ */
.article { max-width: 760px; margin-inline: auto; padding-top: clamp(48px,6vw,84px); }
.article-head { text-align: center; margin-bottom: 40px; }
.article-head .eyebrow { justify-content: center; margin-bottom: 18px; }
.article-head h1 { font-size: clamp(32px, 5vw, 58px); }
.article-head .meta { color: var(--muted-2); font-family: var(--mono); font-size: 13px; margin-top: 20px; letter-spacing: .05em; }
.article-feature { max-width: var(--wrap); margin: 0 auto clamp(30px,5vw,56px); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.content { font-size: 18px; line-height: 1.75; color: #d7dce6; }
.content > * + * { margin-top: 1.4em; }
.content h2 { font-size: 30px; margin-top: 1.8em; }
.content h3 { font-size: 23px; margin-top: 1.6em; }
.content a { color: var(--ember-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(242,101,34,.4); }
.content a:hover { text-decoration-color: var(--ember); }
.content img { border-radius: 12px; margin-inline: auto; }
.content blockquote { border-left: 3px solid var(--ember); padding-left: 22px; color: var(--muted); font-style: italic; }
.content pre { background: #05070b; border: 1px solid var(--line); border-radius: 12px; padding: 20px; overflow-x: auto; font-family: var(--mono); font-size: 14px; }
.content code { font-family: var(--mono); font-size: .9em; background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 5px; }
.content pre code { background: none; padding: 0; }
.content hr { border: 0; border-top: 1px solid var(--line); }

/* ---- Koenig editor cards ---- */
.content :is(.kg-card, figure) { margin-top: 1.6em; margin-bottom: 1.6em; }
.kg-width-wide { position: relative; width: 85vw; max-width: 1050px; left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; max-width: 100vw; left: 50%; transform: translateX(-50%); border-radius: 0; }
.kg-width-full img { border-radius: 0; }
.kg-image-card img { margin-inline: auto; }
figcaption, .kg-card figcaption { text-align: center; color: var(--muted-2); font-size: 14px; margin-top: 10px; }
.kg-embed-card, .kg-gallery-card { display: flex; flex-direction: column; align-items: center; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 10px; max-width: 100%; }
.kg-gallery-row { display: flex; gap: 10px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-bookmark-card a { display: flex; flex-wrap: wrap; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.kg-bookmark-content { padding: 20px; flex: 1 1 60%; }
.kg-bookmark-title { font-family: var(--display); color: var(--text); font-weight: 600; }
.kg-bookmark-description { color: var(--muted); font-size: 15px; margin-top: 6px; }
.kg-bookmark-thumbnail { flex: 1 1 30%; min-height: 140px; background: center/cover; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-callout-card { display: flex; gap: 12px; padding: 18px 20px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.kg-toggle-card { border: 1px solid var(--line); border-radius: 12px; padding: 6px 20px; }
.kg-btn { display: inline-flex; padding: 12px 22px; border-radius: 10px; background: var(--ember); color: #1a0d05; font-family: var(--display); font-weight: 600; }

/* Archive header */
.archive-head { text-align: center; padding-top: clamp(48px,6vw,90px); }
.archive-head h1 { font-size: clamp(34px,5vw,58px); }
.archive-head p { color: var(--muted); max-width: 56ch; margin: 16px auto 0; }

/* Pagination */
.pager { display: flex; justify-content: center; gap: 14px; margin-top: 54px; }
.pager a, .pager span { font-family: var(--mono); font-size: 14px; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--muted); transition: all .2s; }
.pager a:hover { color: var(--ember); border-color: var(--ember); }

/* Error */
.errpage { min-height: 66vh; display: grid; place-items: center; text-align: center; }
.errpage .code { font-family: var(--display); font-size: clamp(90px, 18vw, 190px); line-height: 1;
  background: linear-gradient(180deg, var(--ember-3), var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step { padding-right: 24px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-head.open .nav-links {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-block: 1px solid var(--line); padding: 8px var(--gutter) 18px;
  }
  .site-head.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0 !important; padding: 30px 0 8px; }
  .foot-top { flex-direction: column; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .subscribe input { min-width: 0; width: 100%; }
}

/* ---------- accessibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--ember-2); outline-offset: 3px; border-radius: 6px;
}
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ember); color: #150a03;
  padding: 12px 20px; border-radius: 0 0 10px 0; font-weight: 600; }
.skip:focus { left: 0; }

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