/* ==========================================================================
   TechWinder — shared stylesheet
   ========================================================================== */

:root {
  --acc: #C6F24E;
  --acc-hover: #E4FF8F;
  --acc-btn-hover: #DCFF7A;
  --ink: #F3F2F2;
  --bg: #121110;
  --surf: #1A1918;
  --div: rgba(243, 242, 242, 0.22);
  --muted: rgba(243, 242, 242, 0.62);
  --muted-2: rgba(243, 242, 242, 0.58);
  --font: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc-hover); }

::selection { background: var(--acc); color: var(--bg); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

h1, h2, h3, h4, p { margin: 0; }

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--acc);
  animation: tw-blink 2.4s steps(1, end) infinite;
}

@keyframes tw-blink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.15; }
}

@keyframes tw-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Scroll-reveal: JS toggles .is-visible on elements carrying [data-reveal] */
/* Only hidden when JS is running (html.js), so content is never invisible without it. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--div);
  background: rgba(18, 17, 16, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px clamp(16px, 3vw, 40px);
  border-right: 2px solid var(--div);
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--acc);
  color: var(--bg);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.04em;
}

.brand-name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.brand-name .accent,
.accent { color: var(--acc); }

.navrow {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  padding: 0 clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-link {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-link:hover { color: var(--acc); }
.nav-link.is-active {
  font-weight: 800;
  color: var(--acc);
}

.clock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.header-cta {
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 2.4vw, 34px);
  border-left: 2px solid var(--div);
  background: var(--acc);
  color: var(--bg);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.header-cta:hover { background: var(--acc-btn-hover); color: var(--bg); }

@media (max-width: 900px) {
  .site-header { position: static; flex-wrap: wrap; }
  .brand { flex: 1 1 100%; border-right: 0; border-bottom: 2px solid var(--div); }
  .navrow { flex: 1 1 auto; padding-top: 12px; padding-bottom: 12px; margin-left: 0; }
  .header-cta { flex: 1 1 100%; border-left: 0; border-top: 2px solid var(--div); padding: 15px clamp(16px, 3vw, 40px); }
}

@media (max-width: 620px) {
  .clock { display: none; }
}

/* ==========================================================================
   Buttons / links
   ========================================================================== */

.btn {
  display: flex;
  align-items: center;
  min-width: 190px;
  padding: 18px 22px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.btn-primary { background: var(--acc); color: var(--bg); }
.btn-primary:hover { background: var(--acc-btn-hover); color: var(--bg); }

.btn-outline { border: 2px solid var(--div); color: var(--ink); }
.btn-outline:hover { border-color: var(--acc); color: var(--acc); }

.btn-outline-dark { border: 2px solid var(--bg); color: var(--bg); }
.btn-outline-dark:hover { background: rgba(18, 17, 16, 0.08); color: var(--bg); }

.btn-dark { background: var(--bg); color: var(--acc); }
.btn-dark:hover { background: #2D2B2B; color: var(--acc); }

.cta-row { display: flex; flex-wrap: wrap; gap: 2px; }

@media (max-width: 620px) {
  .cta-row > a { flex: 1 1 100%; min-width: 0; }
}

/* ==========================================================================
   Section shell
   ========================================================================== */

.section {
  border-bottom: 2px solid var(--div);
  padding: clamp(56px, 8vw, 110px) clamp(20px, 3vw, 40px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(28px, 4vw, 52px);
}

.section-title {
  font-size: clamp(28px, 5.4vw, 80px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-sub {
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.eyebrow-rule { width: clamp(28px, 4vw, 64px); height: 2px; background: var(--acc); }

.eyebrow-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--acc);
}

/* ==========================================================================
   Home — hero
   ========================================================================== */

.hero {
  border-bottom: 2px solid var(--div);
  padding: clamp(56px, 9vw, 120px) clamp(20px, 3vw, 40px) 0;
}

.hero-title {
  max-width: 20ch;
  font-size: clamp(33px, 8.4vw, 132px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(40px, 6vw, 80px);
}

.hero-copy { margin: 0 0 32px; max-width: 46ch; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.55; color: var(--muted); }

.feature-list { display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--div); }

.feature-item {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 2px solid var(--div);
}
.feature-item:last-child { border-bottom: 0; }

.feature-num {
  min-width: 44px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--acc);
  font-variant-numeric: tabular-nums;
}

.feature-label { font-size: clamp(15px, 1.5vw, 20px); font-weight: 600; letter-spacing: -0.02em; }

/* ==========================================================================
   Home — product showcase
   ========================================================================== */

.showcase {
  margin: 0 calc(-1 * clamp(20px, 3vw, 40px));
  border-top: 2px solid var(--div);
  background-color: var(--surf);
  background-image: repeating-linear-gradient(135deg, rgba(243,242,242,0.05) 0 2px, transparent 2px 14px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}

.showcase-info {
  padding: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  border-right: 2px solid var(--div);
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc);
}

.showcase-info h2, .showcase-info h3 { margin: 0 0 14px; font-size: clamp(22px, 2.8vw, 40px); line-height: 1.02; font-weight: 900; letter-spacing: -0.035em; max-width: 16ch; }
.showcase-info p { max-width: 40ch; font-size: 14.5px; line-height: 1.55; color: rgba(243,242,242,0.62); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-top: 2px solid var(--div); }
.stat { padding: 16px 0; }
.stat-num { font-size: clamp(22px, 2.4vw, 34px); font-weight: 900; letter-spacing: -0.04em; color: var(--acc); }
.stat-label { font-size: 12px; letter-spacing: 0.06em; color: rgba(243,242,242,0.62); text-transform: uppercase; }

.showcase-demo { padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); display: grid; justify-items: stretch; }

.chat-card {
  width: 100%;
  max-width: 440px;
  height: clamp(540px, 74vh, 660px);
  justify-self: start;
  border: 2px solid var(--div);
  background: var(--bg);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

@media (max-width: 620px) {
  .chat-card { max-width: none; }
}

.chat-head { background: var(--acc); color: var(--bg); padding: 18px 20px; display: grid; gap: 14px; }
.chat-head-top { display: flex; align-items: center; gap: 14px; }
.chat-avatar { width: 42px; height: 42px; background: var(--bg); color: var(--acc); display: grid; place-items: center; font-size: 13px; font-weight: 900; letter-spacing: -0.03em; flex: none; }
.chat-head-meta { display: grid; gap: 3px; flex: 1; }
.chat-title { font-size: 16px; font-weight: 900; letter-spacing: -0.02em; }
.chat-status { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: rgba(18,17,16,0.72); }
.chat-status .dot { background: var(--bg); }
.chat-status.is-offline .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--bg); }
.chat-close { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--bg); background: none; color: var(--bg); font-family: var(--font); font-size: 15px; font-weight: 800; line-height: 1; padding: 0; cursor: pointer; flex: none; }
.chat-close:hover { background: var(--bg); color: var(--acc); }
.chat-close:focus-visible { outline-color: var(--bg); }
.chat-head-note { border-top: 2px solid rgba(18,17,16,0.35); padding-top: 12px; font-size: 13px; font-weight: 600; color: rgba(18,17,16,0.78); }

.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; background: #161514; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--div) transparent; }
.chat-msg { display: grid; gap: 12px; justify-items: start; }
.chat-msg.is-user { justify-items: end; }
.chat-bubble { border: 2px solid var(--div); padding: 14px 16px; font-size: 14.5px; line-height: 1.45; color: var(--ink); max-width: 32ch; overflow-wrap: anywhere; }
.chat-bubble a { text-decoration: underline; text-underline-offset: 2px; }
.chat-msg.is-user .chat-bubble { background: var(--acc); border-color: var(--acc); color: var(--bg); font-weight: 600; }
.chat-msg.is-user .chat-bubble a { color: var(--bg); }
.chat-msg.is-user .chat-timestamp { flex-direction: row-reverse; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 13px; border: 2px solid var(--div); background: none; font-family: var(--font); font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--acc); color: var(--acc); }

@media (max-width: 480px) {
  .chip { font-size: 11.5px; padding: 8px 10px; }
}

.chat-timestamp { display: flex; align-items: center; gap: 10px; font-size: 12px; font-variant-numeric: tabular-nums; color: rgba(243,242,242,0.62); }
.chat-timestamp .chat-avatar-sm { width: 22px; height: 22px; background: var(--acc); color: var(--bg); display: grid; place-items: center; font-size: 9px; font-weight: 900; }

.chat-typing { display: inline-flex; gap: 5px; padding: 16px; border: 2px solid var(--div); }
.chat-typing span { width: 6px; height: 6px; background: var(--acc); animation: chat-blink 1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chat-typing span { animation: none; opacity: 0.7; } }

/* Lead form and appointment booking take over the message area inside the card */
.chat-panel { padding: 20px; background: #161514; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 14px; align-content: start; }
.chat-panel[hidden] { display: none; }
.chat-card.has-panel { grid-template-rows: auto minmax(0, 1fr); }
.chat-card.has-panel .chat-body,
.chat-card.has-panel .chat-footer { display: none; }

.chat-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--div); }
.chat-panel-title { margin: 0; font-size: 17px; font-weight: 900; letter-spacing: -0.02em; }
.chat-panel-meta { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.chat-back { padding: 6px 10px; border: 2px solid var(--div); background: none; color: var(--ink); font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; flex: none; }
.chat-back:hover { border-color: var(--acc); color: var(--acc); }

.chat-field { display: grid; gap: 6px; min-width: 0; }
.chat-field label { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chat-field input { width: 100%; padding: 11px 13px; border: 2px solid var(--div); border-radius: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; color-scheme: dark; }
.chat-field input:focus { outline: none; border-color: var(--acc); }
.chat-field input[aria-invalid="true"] { border-color: #FF9A8A; }
.chat-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chat-field-row.is-phone { grid-template-columns: 84px 1fr; }
.chat-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.chat-note.is-error { color: #FF9A8A; }

.chat-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.chat-slot { padding: 9px 6px; border: 2px solid var(--div); background: none; color: var(--ink); font-family: var(--font); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.chat-slot:hover { border-color: var(--acc); color: var(--acc); }
.chat-slot[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--bg); }

.chat-submit { padding: 13px 15px; border: 2px solid var(--acc); background: var(--acc); color: var(--bg); font-family: var(--font); font-size: 13.5px; font-weight: 800; letter-spacing: 0.03em; cursor: pointer; }
.chat-submit:hover { background: var(--acc-btn-hover); border-color: var(--acc-btn-hover); }
.chat-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-summary { display: grid; border: 2px solid var(--div); }
.chat-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 13px; font-size: 13px; }
.chat-summary div + div { border-top: 2px solid var(--div); }
.chat-summary strong { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.chat-footer { border-top: 2px solid var(--div); padding: 16px 20px; display: grid; gap: 10px; background: var(--bg); margin: 0; }
.chat-appointment { display: flex; align-items: center; padding: 13px 15px; border: 2px solid var(--acc); background: none; color: var(--acc); font-family: var(--font); font-size: 13.5px; font-weight: 800; letter-spacing: 0.03em; cursor: pointer; }
.chat-appointment:hover { background: var(--acc); color: var(--bg); }
.chat-appointment[hidden] { display: none; }
.chat-input-row { display: flex; gap: 2px; }
.chat-input { flex: 1; min-width: 0; padding: 13px 15px; border: 2px solid var(--div); border-radius: 0; background: none; font-family: var(--font); font-size: 13.5px; color: var(--ink); }
.chat-input::placeholder { color: rgba(243,242,242,0.62); }
.chat-input:focus { outline: none; border-color: var(--acc); }
.chat-send { width: 50px; display: grid; place-items: center; border: 0; background: var(--acc); color: var(--bg); font-size: 15px; font-weight: 900; cursor: pointer; }
.chat-send:hover { background: var(--acc-btn-hover); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

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

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee { overflow: hidden; border-bottom: 2px solid var(--div); background: var(--acc); color: var(--bg); }
.marquee-track { display: flex; width: max-content; animation: tw-marquee 34s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 56px; padding: 14px 28px; font-size: 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

/* ==========================================================================
   Services
   ========================================================================== */

.service-row {
  border-top: 2px solid var(--div);
  display: grid;
  grid-template-columns: 1fr;
  padding: clamp(24px, 3vw, 40px) 0;
  gap: clamp(20px, 3vw, 48px);
}
.service-row:hover { background: rgba(198, 242, 78, 0.05); }
.service-row:last-child { border-bottom: 2px solid var(--div); }

.service-row-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}

.service-heading { display: flex; gap: 20px; }
.service-num { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: var(--acc); font-variant-numeric: tabular-nums; }
.service-title { font-size: clamp(23px, 3.4vw, 46px); line-height: 1; font-weight: 800; letter-spacing: -0.035em; }

.service-tags { display: grid; gap: 10px; }
.service-tags span { font-size: 15px; color: rgba(243,242,242,0.72); }

/* ==========================================================================
   Pipeline
   ========================================================================== */

.pipeline-intro { max-width: 60ch; padding-bottom: clamp(32px, 4vw, 60px); }
.pipeline-intro p { font-size: clamp(15px, 1.3vw, 19px); line-height: 1.55; color: rgba(243,242,242,0.62); }

.pipeline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 2px solid var(--div); border-left: 2px solid var(--div); }

.pipeline-cell {
  padding: clamp(22px, 2.6vw, 34px);
  border-right: 2px solid var(--div);
  border-bottom: 2px solid var(--div);
  min-height: clamp(200px, 20vw, 280px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.pipeline-cell:hover { background: rgba(198, 242, 78, 0.06); }

@media (max-width: 620px) {
  .pipeline-cell { min-height: 0; gap: 16px; }
}

.pipeline-num { font-size: clamp(40px, 4.4vw, 64px); font-weight: 900; line-height: 1; letter-spacing: -0.05em; color: var(--acc); }
.pipeline-cell h3 { margin: 0 0 10px; font-size: clamp(18px, 1.7vw, 23px); font-weight: 800; letter-spacing: -0.03em; }
.pipeline-cell p { font-size: 14px; line-height: 1.5; color: rgba(243,242,242,0.6); }

/* ==========================================================================
   Booking
   ========================================================================== */

.booking { border-bottom: 2px solid var(--div); background: var(--acc); color: var(--bg); }
.booking-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.booking-info { padding: clamp(44px, 6vw, 88px) clamp(20px, 3vw, 40px); }
.booking-info h2 { margin: 0 0 22px; max-width: 16ch; font-size: clamp(28px, 4.6vw, 66px); line-height: 0.96; font-weight: 900; letter-spacing: -0.04em; }
.booking-info p { margin: 0 0 34px; max-width: 44ch; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.5; color: rgba(18,17,16,0.72); }

.booking-panel { border-left: 2px solid var(--bg); background: var(--bg); color: var(--ink); padding: clamp(28px, 3.6vw, 48px) clamp(20px, 3vw, 40px); }
.booking-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 2px solid var(--div); }
.booking-panel-head .title { font-size: clamp(17px, 1.7vw, 22px); font-weight: 800; letter-spacing: -0.02em; }
.booking-panel-head .duration { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--acc); text-transform: uppercase; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin: 24px 0 20px; }
.cal-cell { display: grid; gap: 8px; justify-items: center; padding: 12px 0; border: 2px solid var(--div); }
.cal-cell .day { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: rgba(243,242,242,0.45); }
.cal-cell .date { font-size: 17px; font-weight: 800; }

@media (max-width: 620px) {
  .cal-cell { padding: 9px 2px; gap: 5px; }
  .cal-cell .day { font-size: 9px; letter-spacing: 0.04em; }
  .cal-cell .date { font-size: 14px; }
  .cal-grid { gap: 1px; }
}

.slots-label { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.04em; color: rgba(243,242,242,0.55); }
.slots-label strong { color: var(--ink); font-weight: 800; }

.slots { display: grid; gap: 2px; }
.slot { display: flex; align-items: center; padding: 16px 18px; border: 2px solid var(--div); color: var(--ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--acc); color: var(--acc); }

/* ==========================================================================
   Blog cards (home teaser + blog listing)
   ========================================================================== */

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 2px solid var(--div); border-left: 2px solid var(--div); }

.blog-card { border-right: 2px solid var(--div); border-bottom: 2px solid var(--div); display: grid; grid-template-rows: auto 1fr; color: var(--ink); }
.blog-card:hover { background: rgba(198, 242, 78, 0.05); }

.blog-thumb {
  height: clamp(160px, 15vw, 220px);
  background-color: var(--surf);
  background-image: repeating-linear-gradient(135deg, rgba(243,242,242,0.06) 0 2px, transparent 2px 12px);
  display: grid;
  place-items: center;
  border-bottom: 2px solid var(--div);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(243,242,242,0.58);
  text-transform: uppercase;
  text-align: center;
  padding: 8px;
}

.blog-card-body { padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 12px; align-content: start; }
.blog-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--acc); text-transform: uppercase; }
.blog-card-title { font-size: clamp(19px, 1.8vw, 25px); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.blog-card-title a { color: var(--ink); }
.blog-card-title a:hover { color: var(--acc); }
.blog-excerpt { font-size: 14px; line-height: 1.55; color: rgba(243,242,242,0.58); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { padding: clamp(48px, 6vw, 88px) clamp(20px, 3vw, 40px) clamp(24px, 3vw, 40px); }

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(28px, 4vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }

.footer-brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-brand-name { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; letter-spacing: -0.04em; }
.footer-tagline { margin: 0 0 18px; max-width: 36ch; font-size: 14px; line-height: 1.55; color: rgba(243,242,242,0.58); }
.footer-copy { margin: 0; font-size: 12.5px; color: rgba(243,242,242,0.62); }

.footer-heading { margin: 0 0 18px; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(243,242,242,0.66); }
.footer-links { display: grid; gap: 11px; }
.footer-links a { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.footer-links a:hover { color: var(--acc); }

.footer-bottom { border-top: 2px solid var(--div); padding-top: 22px; font-size: 12.5px; color: rgba(243,242,242,0.62); }

/* ==========================================================================
   Blog listing page
   ========================================================================== */

.blog-hero { border-bottom: 2px solid var(--div); padding: clamp(44px, 7vw, 96px) clamp(16px, 3vw, 40px) clamp(32px, 4vw, 56px); }
.blog-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: end; }
.blog-hero-title { font-size: clamp(40px, 9vw, 140px); line-height: 0.9; font-weight: 900; letter-spacing: -0.05em; }
.blog-hero-lead { max-width: 44ch; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.55; color: var(--muted); }

.filter-row { border-bottom: 2px solid var(--div); display: flex; flex-wrap: wrap; gap: 2px; padding: 14px clamp(16px, 3vw, 40px); }
.filter-chip { padding: 10px 16px; border: 2px solid var(--div); font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: none; font-family: var(--font); cursor: pointer; }
.filter-chip:hover { border-color: var(--acc); color: var(--acc); }
.filter-chip.is-active { background: var(--acc); color: var(--bg); border-color: var(--acc); font-weight: 800; }

.featured-post { display: block; border-bottom: 2px solid var(--div); color: var(--ink); }
.featured-post-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; }

@media (max-width: 620px) {
  .featured-post-grid, .post-row, .newsletter-grid { grid-template-columns: 1fr; }
}

.featured-post-info { padding: clamp(28px, 4vw, 72px) clamp(16px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; border-right: 2px solid var(--div); }
.featured-post-meta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-bottom: 24px; }
.featured-badge { padding: 6px 11px; background: var(--acc); color: var(--bg); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.post-date { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243,242,242,0.62); }
.featured-post-title { margin: 0 0 18px; max-width: 18ch; font-size: clamp(28px, 4.6vw, 62px); line-height: 0.98; font-weight: 900; letter-spacing: -0.04em; }
.featured-post-excerpt { max-width: 52ch; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.55; color: rgba(243,242,242,0.62); }
.read-more { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc); }

.featured-post-image {
  min-height: clamp(220px, 26vw, 420px);
  background-color: var(--surf);
  background-image: repeating-linear-gradient(135deg, rgba(243,242,242,0.05) 0 2px, transparent 2px 14px);
  display: grid;
  place-items: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(243,242,242,0.58);
  text-transform: uppercase;
}

.post-list { border-bottom: 2px solid var(--div); }
.post-row {
  display: grid;
  grid-template-columns: auto 1.4fr 1fr;
  gap: clamp(18px, 3vw, 48px);
  align-items: start;
  padding: clamp(26px, 3.4vw, 46px) clamp(16px, 3vw, 40px);
  border-bottom: 2px solid var(--div);
  color: var(--ink);
}
.post-row:hover { background: rgba(198, 242, 78, 0.05); }
.post-row:last-child { border-bottom: 0; }

.post-row-num { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--acc); font-variant-numeric: tabular-nums; min-width: 44px; }
.post-row-title { margin: 0 0 12px; font-size: clamp(21px, 2.6vw, 34px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; }
.post-row-meta { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243,242,242,0.62); }
.post-row-excerpt { font-size: 14.5px; line-height: 1.55; color: rgba(243,242,242,0.62); }

.newsletter { border-bottom: 2px solid var(--div); background: var(--acc); color: var(--bg); padding: clamp(40px, 5.5vw, 84px) clamp(16px, 3vw, 40px); }
.newsletter-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.newsletter-title { margin: 0 0 16px; max-width: 17ch; font-size: clamp(26px, 4.2vw, 58px); line-height: 0.98; font-weight: 900; letter-spacing: -0.04em; }
.newsletter-copy { margin: 0; max-width: 46ch; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.5; color: rgba(18,17,16,0.72); }
.newsletter-form { display: flex; gap: 2px; flex-wrap: wrap; }
.newsletter-input { flex: 1 1 200px; display: flex; align-items: center; padding: 16px 18px; border: 2px solid var(--bg); font-size: 14px; color: rgba(18,17,16,0.55); background: none; font-family: var(--font); }
.newsletter-submit { display: flex; align-items: center; padding: 16px 22px; background: var(--bg); color: var(--acc); font-size: 14px; font-weight: 800; letter-spacing: 0.03em; border: none; font-family: var(--font); cursor: pointer; }
.newsletter-submit:hover { background: #2D2B2B; }

/* ==========================================================================
   Blog detail page
   ========================================================================== */

.progress-track { height: 3px; background: rgba(243,242,242,0.12); position: fixed; top: 0; left: 0; right: 0; z-index: 60; }
.progress-bar { height: 3px; width: 0%; background: var(--acc); transition: width .12s linear; }

.article-header { border-bottom: 2px solid var(--div); padding: clamp(36px, 6vw, 88px) clamp(16px, 3vw, 40px) clamp(28px, 4vw, 56px); }
.article-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: clamp(22px, 3vw, 36px); }
.back-link { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.breadcrumb-sep { width: 2px; height: 14px; background: var(--div); }
.breadcrumb-meta { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243,242,242,0.62); }

.article-title { margin: 0 0 26px; max-width: 20ch; font-size: clamp(30px, 6.4vw, 92px); line-height: 0.94; font-weight: 900; letter-spacing: -0.045em; text-wrap: balance; }
.article-lead { margin: 0 0 32px; max-width: 60ch; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.5; color: rgba(243,242,242,0.7); }

.author-row { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 2px solid var(--div); }
.author-avatar { display: grid; place-items: center; width: 40px; height: 40px; background: var(--acc); color: var(--bg); font-weight: 900; font-size: 13px; }
.author-meta { display: grid; gap: 3px; }
.author-name { font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; }
.author-role { font-size: 12.5px; color: rgba(243,242,242,0.62); }

.article-hero-image {
  height: clamp(200px, 32vw, 480px);
  border-bottom: 2px solid var(--div);
  background-color: var(--surf);
  background-image: repeating-linear-gradient(135deg, rgba(243,242,242,0.05) 0 2px, transparent 2px 14px);
  display: grid;
  place-items: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(243,242,242,0.58);
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}

.article-layout { display: grid; grid-template-columns: 280px 1fr; border-bottom: 2px solid var(--div); }

@media (max-width: 620px) {
  .article-layout { grid-template-columns: 1fr; }
}

.article-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  border-right: 2px solid var(--div);
  padding: clamp(24px, 3vw, 44px) clamp(16px, 3vw, 32px);
}

@media (max-width: 900px) {
  .article-toc { position: static; border-right: 0; border-bottom: 2px solid var(--div); }
}

.toc-list { display: grid; gap: 12px; }
.toc-list a { display: flex; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.toc-list a:hover { color: var(--acc); }
.toc-list a span { color: var(--acc); font-weight: 800; }

.share-block { margin-top: 28px; padding-top: 22px; border-top: 2px solid var(--div); display: grid; gap: 10px; }
.share-row { display: flex; gap: 2px; flex-wrap: wrap; }
.share-btn { padding: 9px 13px; border: 2px solid var(--div); font-size: 12px; font-weight: 700; color: var(--ink); background: none; font-family: var(--font); cursor: pointer; }
.share-btn:hover { border-color: var(--acc); color: var(--acc); }

.article-body { padding: clamp(28px, 4vw, 72px) clamp(16px, 3vw, 40px); max-width: 78ch; }
.article-body h2 { margin: 0 0 18px; font-size: clamp(24px, 3.2vw, 42px); line-height: 1.02; font-weight: 900; letter-spacing: -0.04em; }
.article-body p { margin: 0 0 20px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.68; color: rgba(243,242,242,0.78); }

.pull-quote { margin: 0 0 36px; border-top: 2px solid var(--acc); border-bottom: 2px solid var(--acc); padding: 26px 0; }
.pull-quote p { margin: 0; font-size: clamp(19px, 2.2vw, 30px); line-height: 1.22; font-weight: 800; letter-spacing: -0.03em; color: var(--acc); max-width: 26ch; }

.module-list { display: grid; gap: 2px; margin: 0 0 34px; }
.module-item { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 16px 0; border-top: 2px solid var(--div); }
.module-item:last-child { border-bottom: 2px solid var(--div); }
.module-num { font-size: 12px; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; }
.module-text { font-size: 15.5px; line-height: 1.5; color: rgba(243,242,242,0.78); }
.module-text strong { color: var(--ink); }

.article-cta { border: 2px solid var(--div); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.article-cta h3 { margin: 0; font-size: clamp(19px, 2.2vw, 28px); line-height: 1.06; font-weight: 900; letter-spacing: -0.03em; max-width: 22ch; }
.article-cta p { margin: 0; max-width: 48ch; font-size: 15px; line-height: 1.55; color: rgba(243,242,242,0.66); }
.article-cta .btn { width: fit-content; }

.related-section { border-bottom: 2px solid var(--div); padding: clamp(40px, 6vw, 88px) clamp(16px, 3vw, 40px); }
.related-heading { margin: 0 0 clamp(24px, 3vw, 44px); font-size: clamp(26px, 4.4vw, 58px); line-height: 0.98; font-weight: 900; letter-spacing: -0.04em; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 2px solid var(--div); border-left: 2px solid var(--div); }
.related-card { border-right: 2px solid var(--div); border-bottom: 2px solid var(--div); padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 12px; align-content: start; color: var(--ink); }
.related-card:hover { background: rgba(198, 242, 78, 0.05); }
.related-card h3 { margin: 0; font-size: clamp(19px, 1.8vw, 25px); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.related-card .related-meta { font-size: 12.5px; color: rgba(243,242,242,0.62); }

/* Rich-text body content authored via the CMS editor */
.article-body h3 { margin: 28px 0 14px; font-size: clamp(19px, 2.2vw, 28px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 1.3em; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.68; color: rgba(243,242,242,0.78); }
.article-body li { margin-bottom: 8px; }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-body strong { color: var(--ink); }
.article-body img { display: block; width: 100%; height: auto; margin: 8px 0 32px; }
.article-body blockquote {
  margin: 0 0 36px; border-top: 2px solid var(--acc); border-bottom: 2px solid var(--acc);
  padding: 26px 0; font-size: clamp(19px, 2.2vw, 30px); line-height: 1.22; font-weight: 800;
  letter-spacing: -0.03em; color: var(--acc); max-width: 26ch;
}
.article-body blockquote p { margin: 0; font: inherit; color: inherit; }
.article-body p:last-child { margin-bottom: 0; }
