:root {
  --ink: #080808;
  --muted: #5e5a65;
  --purple: #af62e7;
  --purple-dark: #7412f4;
  --lavender: #f4e6ff;
  --line: #ead9f5;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Mulish", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header {
  position: fixed;
  top: clamp(16px, 4vw, 54px);
  left: 50%;
  z-index: 20;
  width: min(78vw, 1120px);
  min-height: 72px;
  display: grid;
  grid-template-columns: 180px 1fr 56px 210px;
  align-items: center;
  padding: 8px clamp(20px, 3.5vw, 50px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 60px rgba(87, 26, 146, 0.08);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: 64px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.brand-logo-dark { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 78px);
  font-size: clamp(0.9rem, 1.05vw, 1.18rem);
  font-weight: 500;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--purple-dark);
}

.contact-button {
  justify-self: end;
  width: 150px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--purple-dark), var(--purple));
  border-radius: 999px;
  font-size: clamp(0.9rem, 1.05vw, 1.1rem);
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(125, 29, 242, 0.15);
  transform: translateX(-24px);
}

.hero {
  width: min(1280px, calc(100% - 70px));
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  align-items: center;
  gap: clamp(48px, 7vw, 108px);
  margin: clamp(150px, 12vw, 190px) auto 0;
  text-align: left;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.9rem, 5vw, 4.55rem);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 950;
}

.hero h1 span { color: var(--purple); }

.hero-copy {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.blog-hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-orbit {
  position: absolute;
  width: min(520px, 42vw);
  aspect-ratio: 1;
  border: 1px solid rgba(175, 98, 231, 0.3);
  border-radius: 50%;
  background: radial-gradient(circle, #f7edff 0 38%, transparent 39% 100%);
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(116, 18, 244, 0.24);
  border-radius: inherit;
  content: "";
}

.hero-orbit::after { inset: 24%; border-style: solid; }

.blog-hero-visual img {
  position: relative;
  z-index: 2;
  width: min(300px, 28vw);
  height: auto;
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 30px 46px rgba(38, 5, 62, 0.22));
}

.hero-visual-label {
  position: absolute;
  z-index: 3;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 38px rgba(70, 22, 108, 0.12);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.hero-visual-label-top { top: 18%; right: 0; }
.hero-visual-label-bottom { bottom: 18%; left: 0; }

.archive {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 58px 0 140px;
}

.archive-heading {
  margin-bottom: 65px;
}

.archive-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 950;
}

.timeline {
  position: relative;
}

.year-row {
  position: relative;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 50px;
}

.year-marker {
  position: relative;
  padding-left: 40px;
}

.year-marker::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 24px;
  bottom: -120px;
  width: 1px;
  background: var(--line);
}

.last-year .year-marker::after {
  display: none;
}

.dot {
  position: absolute;
  left: 0;
  top: 10px;
  z-index: 1;
  width: 15px;
  height: 15px;
  background: var(--white);
  border: 3px solid #bcb4c2;
  border-radius: 50%;
  transition:
    background-color 350ms ease,
    border-color 350ms ease,
    box-shadow 350ms ease,
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.current-year .dot,
.year-row.is-visible .dot {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 0 7px var(--lavender);
  transform: scale(1.08);
}

.year-marker h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.1rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
  transition: color 350ms ease;
}

.year-row.is-visible .year-marker h3 {
  color: var(--purple-dark);
}

/* Scroll reveal states are only enabled once JavaScript is ready. */
.reveal-ready .year-marker,
.reveal-ready .post-card,
.reveal-ready .year-status {
  opacity: 0;
  transform: translateY(42px);
}

.reveal-ready .year-marker,
.reveal-ready .year-status {
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-ready .post-card {
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.reveal-ready .year-row.is-visible .year-marker,
.reveal-ready .year-row.is-visible .post-card,
.reveal-ready .year-row.is-visible .year-status {
  opacity: 1;
  transform: translateY(0);
}

.reveal-ready .year-row.is-visible .post-card:nth-child(1) {
  transition-delay: 140ms;
}

.reveal-ready .year-row.is-visible .post-card:nth-child(2) {
  transition-delay: 280ms;
}

.reveal-ready .year-row.is-visible .post-card:nth-child(3) {
  transition-delay: 420ms;
}

.reveal-ready .year-row.is-visible .year-status {
  transition-delay: 140ms;
}

.posts {
  display: grid;
  gap: 16px;
  padding-bottom: 95px;
}

.post-card {
  overflow: hidden;
  background: var(--lavender);
  border: 1px solid transparent;
  border-radius: 22px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  border-color: #e1c9f5;
}

.post-card.open {
  background: var(--white);
  border-color: #dec4f4;
  box-shadow: 0 18px 40px rgba(76, 37, 104, 0.09);
}

.post-trigger {
  width: 100%;
  padding: 31px 32px;
  display: grid;
  grid-template-columns: 58px 1fr 48px;
  align-items: center;
  gap: 22px;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.post-trigger:focus-visible {
  outline: 3px solid rgba(168, 102, 228, 0.45);
  outline-offset: -3px;
  border-radius: 22px;
}

.post-number {
  color: var(--purple-dark);
  font-size: 15px;
  font-weight: 700;
}

.post-heading {
  display: grid;
  gap: 7px;
}

.post-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.post-title {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.post-icon {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid #cfb4e5;
  border-radius: 50%;
}

.post-icon::before,
.post-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--purple-dark);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.post-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.post-trigger[aria-expanded="true"] .post-icon::after {
  transform: translate(-50%, -50%) rotate(0);
}

.post-content {
  overflow: hidden;
}

.post-copy {
  margin: 0 32px 0 112px;
  padding: 0 0 36px;
  color: var(--muted);
  border-top: 1px solid #eee6f4;
  font-size: 17px;
  line-height: 1.7;
}

.post-copy p:first-child {
  margin-top: 25px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
}

.post-copy p:last-child {
  max-width: 620px;
  margin-bottom: 0;
}

.article-body {
  margin: 0 32px 32px;
  overflow: hidden;
  background: #fdfbff;
  border: 1px solid #eee3f7;
  border-radius: 18px;
}

.article-header {
  padding: 58px clamp(28px, 7vw, 82px) 50px;
  background:
    radial-gradient(circle at 85% 0%, rgba(168, 102, 228, 0.2), transparent 36%),
    linear-gradient(145deg, #fbf7ff, #f1e3fc);
}

.article-kicker {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 13px;
  color: var(--purple-dark);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #dcc1f1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.article-header h4 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.article-lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: #403948;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.article-prose,
.article-sections {
  padding: 50px clamp(28px, 7vw, 82px) 0;
}

.article-prose p,
.article-section p,
.article-cta p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.article-prose p:first-child {
  margin-top: 0;
}

.article-prose p:last-child {
  margin-bottom: 0;
}

.technology-flow {
  margin: 54px clamp(28px, 7vw, 82px);
  padding: 30px;
  display: grid;
  gap: 11px;
  background: var(--ink);
  border-radius: 20px;
}

.flow-step {
  padding: 17px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  color: var(--white);
  background: #252129;
  border: 1px solid #38313e;
  border-radius: 14px;
}

.flow-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--purple);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.flow-step div {
  display: grid;
  gap: 3px;
}

.flow-step strong {
  font-size: 18px;
}

.flow-step div span {
  color: #c6becb;
  font-size: 14px;
}

.flow-arrow {
  color: var(--purple);
  font-size: 22px;
  line-height: 1;
  text-align: center;
}

.moisture-report {
  margin: 54px clamp(28px, 7vw, 82px);
  padding: 28px;
  display: grid;
  gap: 12px;
  background: #17151a;
  border-radius: 20px;
}

.report-label {
  margin-bottom: 5px;
  color: #cdb2e4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.moisture-report > div {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 20px;
  color: var(--white);
  background: #29252d;
  border: 1px solid #3b3540;
  border-radius: 14px;
}

.moisture-report small {
  grid-column: 1 / -1;
  color: #bbb3bf;
  font-size: 13px;
}

.status-dry,
.status-good {
  align-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-dry {
  color: #ffb89b;
  background: rgba(255, 119, 65, 0.15);
}

.status-good {
  color: #93e59b;
  background: rgba(73, 201, 87, 0.15);
}

.device-grid,
.risk-grid,
.comparison-grid {
  margin: 54px clamp(28px, 7vw, 82px);
  display: grid;
  gap: 14px;
}

.device-grid {
  grid-template-columns: repeat(2, 1fr);
}

.device-grid > div,
.risk-grid > div,
.comparison-grid > div {
  padding: 28px;
  background: var(--lavender);
  border: 1px solid #e7d4f5;
  border-radius: 20px;
}

.device-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  color: var(--white);
  background: var(--purple);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
}

.device-grid h5,
.risk-grid h5 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.device-grid p,
.risk-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.risk-grid {
  grid-template-columns: repeat(3, 1fr);
}

.risk-grid > div {
  background: #fff8f4;
  border-color: #f2d9cd;
}

.risk-grid > div > span {
  display: inline-block;
  margin-bottom: 35px;
  color: #c25a2f;
  font-size: 12px;
  font-weight: 700;
}

.comparison-grid {
  grid-template-columns: repeat(2, 1fr);
}

.comparison-grid > div {
  display: grid;
  gap: 12px;
  background: #f3f0f4;
  border-color: #e2dce5;
}

.comparison-grid > div > span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.comparison-grid strong {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  font-size: 14px;
}

.comparison-grid .comparison-better {
  color: var(--white);
  background: var(--purple);
  border-color: var(--purple);
}

.comparison-grid .comparison-better > span {
  color: #f0dcff;
}

.comparison-grid .comparison-better strong {
  background: rgba(255, 255, 255, 0.14);
}

.article-sections {
  display: grid;
  gap: 15px;
}

.article-section {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 24px;
  border-top: 1px solid #e8deed;
}

.section-number {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  color: var(--purple-dark);
  background: var(--lavender);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.article-section h5,
.article-cta h5 {
  margin: 7px 0 13px;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.article-section h5 span {
  color: var(--muted);
  font-weight: 400;
}

.article-section p {
  margin: 0;
}

.article-tech-detail {
  display: block;
}

.article-closing {
  padding-bottom: 10px;
}

.article-closing h5 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.article-quote {
  position: relative;
  margin: 58px clamp(28px, 7vw, 82px);
  padding: 42px;
  color: var(--white);
  background: var(--purple);
  border-radius: 22px;
}

.article-quote::before {
  content: "“";
  position: absolute;
  right: 28px;
  top: 6px;
  color: rgba(255, 255, 255, 0.23);
  font-family: Georgia, serif;
  font-size: 110px;
  line-height: 1;
}

.article-quote p {
  position: relative;
  max-width: 680px;
  margin: 0 0 24px;
  font-size: clamp(20px, 2.7vw, 28px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.5px;
}

.article-quote cite {
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.article-cta {
  margin: 0 clamp(28px, 7vw, 82px) 58px;
  padding: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  background: var(--lavender);
  border-radius: 20px;
}

.article-cta > div > span {
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.article-cta h5 {
  margin-bottom: 8px;
}

.article-cta p {
  max-width: 520px;
  margin: 0;
}

.article-cta a {
  flex: 0 0 auto;
  padding: 14px 19px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.empty-year {
  min-height: 120px;
}

.year-status {
  margin: 8px 0 0;
  color: #918a96;
  font-size: 15px;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(34px, 6vw, 92px);
  padding: clamp(64px, 7vw, 86px) max(58px, calc((100vw - 1280px) / 2));
  color: #ffffff;
  background: #000000;
}

.site-footer svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-footer h2 {
  margin: 0 0 34px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.site-footer p {
  margin: 0 0 22px;
  color: #d0d0d0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.footer-column { min-width: 0; }

.social-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.social-links a {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #d7a4ff;
  border-radius: 50%;
  color: #f4dcff;
}

.social-links svg { width: 26px; height: 26px; }

.footer-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
  color: #ffffff;
}

.footer-icon { display: block; width: 28px; height: 28px; color: #d8d8d8; }
.footer-contact-list { display: grid; gap: 14px; }

.footer-contact-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(216, 216, 216, 0.22);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
}

.footer-contact-item small { display: block; margin-bottom: 4px; color: #bdbdbd; font-size: 0.84rem; }
.footer-contact-item strong { display: block; min-width: 0; overflow-wrap: anywhere; font-size: clamp(0.95rem, 1.2vw, 1.08rem); line-height: 1.3; font-weight: 700; }
.footer-contact-item .footer-icon { width: 32px; height: 32px; }
.footer-links { display: grid; gap: 22px; color: #ffffff; font-size: 1.08rem; }

html[data-theme="dark"] .hero {
  color: #ffffff;
  background: transparent;
}

html[data-theme="dark"] .hero-orbit { background: radial-gradient(circle, #230039 0 38%, transparent 39% 100%); }
html[data-theme="dark"] .hero-visual-label { color: #ffffff; background: rgba(13, 4, 18, 0.86); border-color: #5b376b; }

html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .archive-heading h2,
html[data-theme="dark"] .year-marker h3,
html[data-theme="dark"] .post-title,
html[data-theme="dark"] .article-header h4,
html[data-theme="dark"] .article-section h5,
html[data-theme="dark"] .article-closing h5,
html[data-theme="dark"] .article-cta h5,
html[data-theme="dark"] .device-grid h5,
html[data-theme="dark"] .risk-grid h5 {
  color: #ffffff;
}

html[data-theme="dark"] .hero-copy,
html[data-theme="dark"] .post-date,
html[data-theme="dark"] .post-copy,
html[data-theme="dark"] .article-lead,
html[data-theme="dark"] .article-prose p,
html[data-theme="dark"] .article-section p,
html[data-theme="dark"] .article-cta p,
html[data-theme="dark"] .device-grid p,
html[data-theme="dark"] .risk-grid p,
html[data-theme="dark"] .year-status {
  color: #d8d1df;
}

html[data-theme="dark"] .year-marker::after {
  background: #4b3455;
}

html[data-theme="dark"] .dot {
  background: #000000;
  border-color: #765584;
}

html[data-theme="dark"] .post-card {
  color: #ffffff;
  background: #180c20;
  border-color: #3c2348;
}

html[data-theme="dark"] .post-card:hover,
html[data-theme="dark"] .post-card.open {
  background: #090909;
  border-color: #754293;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .post-copy,
html[data-theme="dark"] .article-section {
  border-color: #3e2a48;
}

html[data-theme="dark"] .post-copy p:first-child {
  color: #ffffff;
}

html[data-theme="dark"] .article-body {
  color: #ffffff;
  background: #080808;
  border-color: #3e2a48;
}

html[data-theme="dark"] .article-header {
  background:
    radial-gradient(circle at 85% 0%, rgba(175, 98, 231, 0.26), transparent 38%),
    linear-gradient(145deg, #14051d, #260934);
}

html[data-theme="dark"] .article-kicker {
  color: #d9a8ff;
  background: rgba(0, 0, 0, 0.48);
  border-color: #70418d;
}

html[data-theme="dark"] .technology-flow,
html[data-theme="dark"] .moisture-report {
  background: #120d15;
  border: 1px solid #3e2a48;
}

html[data-theme="dark"] .device-grid > div,
html[data-theme="dark"] .risk-grid > div,
html[data-theme="dark"] .comparison-grid > div,
html[data-theme="dark"] .article-cta {
  color: #ffffff;
  background: #180c20;
  border-color: #493057;
}

html[data-theme="dark"] .comparison-grid strong {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .comparison-grid .comparison-better {
  background: var(--purple-dark);
  border-color: var(--purple);
}

html[data-theme="dark"] .section-number {
  color: #e0b8ff;
  background: #280b38;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto;
    width: calc(100% - 28px);
    min-height: 58px;
    height: auto;
    padding: 7px 14px;
  }

  .brand {
    width: 46px;
  }

  .hero {
    grid-template-columns: 1fr;
    width: calc(100% - 40px);
    min-height: auto;
    margin: 130px auto 0;
    gap: 42px;
    text-align: center;
  }

  .hero h1 {
    letter-spacing: 0;
  }

  .hero-copy { margin-inline: auto; }

  .blog-hero-visual { min-height: 540px; }
  .hero-orbit { width: min(490px, 82vw); }
  .blog-hero-visual img { width: min(270px, 58vw); }

  .archive {
    width: min(100% - 32px, 1120px);
    padding: 50px 0 100px;
  }

  .archive-heading {
    margin-bottom: 50px;
  }

  .year-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 34px;
  }

  .year-marker {
    padding-left: 0;
  }

  .year-marker::after {
    left: -27px;
    top: 21px;
    bottom: -145px;
  }

  .dot {
    left: -34px;
    top: 8px;
  }

  .year-marker h3 {
    font-size: 29px;
  }

  .posts {
    padding-bottom: 65px;
  }

  .post-trigger {
    padding: 24px 20px;
    grid-template-columns: 1fr 42px;
    gap: 15px;
  }

  .post-number {
    display: none;
  }

  .post-icon {
    width: 42px;
    height: 42px;
  }

  .post-copy {
    margin: 0 20px;
    padding-bottom: 28px;
  }

  .article-body {
    margin: 0 12px 12px;
  }

  .article-header {
    padding: 38px 22px 34px;
  }

  .article-header h4 {
    letter-spacing: 0;
  }

  .article-prose,
  .article-sections {
    padding: 34px 22px 0;
  }

  .technology-flow,
  .moisture-report,
  .device-grid,
  .risk-grid,
  .comparison-grid,
  .article-quote,
  .article-cta {
    margin-left: 22px;
    margin-right: 22px;
  }

  .technology-flow {
    margin-top: 38px;
    margin-bottom: 38px;
    padding: 16px;
  }

  .moisture-report,
  .device-grid,
  .risk-grid,
  .comparison-grid {
    margin-top: 38px;
    margin-bottom: 38px;
  }

  .moisture-report {
    padding: 16px;
  }

  .device-grid,
  .risk-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .article-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }


  .article-quote {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 30px 24px;
  }

  .article-cta {
    margin-bottom: 22px;
    padding: 28px 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .empty-year {
    min-height: 110px;
    grid-template-columns: 1fr 1fr;
  }

  .year-status {
    align-self: center;
    margin: 0;
  }

  .site-footer {
    padding: 60px 24px;
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .hero {
    width: calc(100% - 32px);
    margin-top: 110px;
  }

  .hero h1 { font-size: 2.4rem; }
  .blog-hero-visual { min-height: 440px; }
  .blog-hero-visual img { width: min(220px, 58vw); max-height: 410px; }
  .hero-visual-label { padding: 10px 13px; font-size: 0.64rem; }
  .hero-visual-label-top { top: 10%; }
  .hero-visual-label-bottom { bottom: 10%; }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .reveal-ready .year-marker,
  .reveal-ready .post-card,
  .reveal-ready .year-status {
    opacity: 1;
    transform: none;
  }
}
