/* Wai Tech — corporate homepage */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --accent: #C75534;
  --accent-soft: #E27A58;
  --accent-ink: #8A3620;
  --nav-link: #fafafa;
  --ink: #0B0B0C;
  --ink-2: #2A2A2C;
  --ink-3: #55565A;
  --ink-4: #8A8C92;
  --line: #E8E4DD;
  --line-strong: #CFC8BC;
  --bg: #F7F5F2;
  --bg-2: #EFEBE3;
  --bg-3: #FFFFFF;
  --radius: 14px;
  --radius-lg: 22px;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1360px;
  /* Proxima Nova — when available via Adobe Fonts — falls back to Montserrat (close metrics) */
  --font-display: "proxima-nova", "Proxima Nova", "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body: "proxima-nova", "Proxima Nova", "Montserrat", system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --density: 1;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(36px, 4.8vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.02;
}
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.015em; line-height: 1.1; }

h1 em, h2 em {
  font-style: italic;
  color: var(--accent);
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
}

p { text-wrap: pretty; }

/* ——————— NAV ——————— */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 280ms ease, backdrop-filter 280ms ease, padding 280ms ease, border-color 280ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(247, 245, 242, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  padding: 10px 0;
}
.nav.is-scrolled a {
  color: var(--ink);
}
/* Default (transparent) nav sits over a dark hero, so logo/text go white. */
.nav { --nav-fg: #fff; }
.nav .brand-logo { filter: brightness(0) invert(1); }
.nav .nav-cta { background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); }
.nav .nav-cta:hover { background: var(--accent); border-color: var(--accent); }

/* When scrolled, the nav becomes a light bar — revert to dark logo/text. */
.nav.is-scrolled .brand-logo { filter: none; }
.nav.is-scrolled .nav-cta { background: var(--ink); color: #F7F5F2; border-color: transparent; backdrop-filter: none; }
.nav.is-scrolled .nav-cta:hover { background: var(--accent); border-color: var(--accent); }

/* Pages that opt into a permanent light nav (e.g., blog, blog-details).
   Wins over .nav:not(.is-scrolled) overrides via higher specificity. */
body.nav-light .nav {
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  padding: 10px 0;
}
body.nav-light .nav .brand-logo { filter: none; }
body.nav-light .nav .nav-links { color: var(--ink-2); }
body.nav-light .nav .nav-cta {
  background: var(--ink);
  color: #F7F5F2;
  border: 1px solid transparent;
  backdrop-filter: none;
}
body.nav-light .nav .nav-cta:hover { background: var(--accent); border-color: var(--accent); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 32px; width: auto; transition: filter 200ms ease; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a { position: relative; padding: 6px 2px; transition: color 150ms ease; color: var(--nav-link); }
.nav-links a:hover { color: var(--accent); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 2px; right: 2px; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #F7F5F2;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease;
}
.nav-cta:hover { background: var(--accent); }
.nav-cta .arrow { transition: transform 200ms ease; }
.nav-cta:hover .arrow { transform: translateX(3px); }

/* ——————— HERO ——————— */
.hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: 0;
  overflow: hidden;
  background: var(--ink);
  color: #F7F5F2;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: heroKen 28s ease-in-out infinite alternate;
}
@keyframes heroKen {
  from { transform: scale(1.02) translateY(0); }
  to   { transform: scale(1.08) translateY(-2%); }
}
.hero-img-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.25) 35%, rgba(11,11,12,0.75) 90%),
    linear-gradient(90deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.1) 60%);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* When hero is in "canvas" mode, hide the photo */
.hero[data-hero="canvas"] .hero-img { display: none; }
.hero[data-hero="canvas"] .hero-img-scrim { background: radial-gradient(1200px 600px at 20% 20%, rgba(199,85,52,0.18), transparent 60%), radial-gradient(900px 500px at 90% 80%, rgba(199,85,52,0.08), transparent 60%); }
.hero[data-hero="off"] .hero-canvas { display: none; }
.hero[data-hero="off"] .hero-img { display: none; }
.hero[data-hero="off"] .hero-img-scrim { background: none; }
.hero[data-hero="off"] { background: var(--bg); color: var(--ink); }
.hero[data-hero="off"] .hero-badge { background: rgba(0,0,0,0.04); border-color: var(--line); color: var(--ink-2); }
.hero[data-hero="off"] .hero-lede { color: var(--ink-2); }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 32px;
  padding-bottom: 120px;
  min-height: calc(85vh - 160px);
  align-content: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  align-self: start;
  justify-self: start;
  color: rgba(255,255,255,0.9);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero h1 {
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  max-width: 16ch;
}

.hero-lede {
  max-width: 56ch;
  font-size: clamp(17px, 1.3vw, 19px);
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  font-weight: 400;
}
.hero-lede strong { color: #fff; font-weight: 700; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.25); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }
#aeo .btn-ghost, #arc .btn-ghost, .hero[data-hero="off"] .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); backdrop-filter: none; }
#aeo .btn-ghost:hover, #arc .btn-ghost:hover, .hero[data-hero="off"] .btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn .arrow { transition: transform 220ms ease; }
.btn:hover .arrow { transform: translateX(4px); }

.hero-meta-strip {
  position: relative;
  z-index: 2;
  background: rgba(11,11,12,0.65);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 28px 0;
}
.hero[data-hero="off"] .hero-meta-strip { background: var(--bg-2); border-color: var(--line); }
.hero[data-hero="off"] .hero-meta .stat-l { color: var(--ink-3); }
.hero[data-hero="off"] .hero-meta .stat-n { color: var(--ink); }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.hero-meta .stat-n {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}
.hero-meta .stat-l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

.marquee {
  position: relative;
  z-index: 2;
  padding: 20px 0;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 16px; }
.marquee-track span::after {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ——————— SECTION HEADERS ——————— */
/* section { padding: calc(120px * var(--density)) 0; } */
.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 72px;
  max-width: 960px;
}
.sec-head h2 { margin-top: 20px; }
.sec-head p {
  color: var(--ink-3);
  font-size: clamp(16px, 1.2vw, 18px);
  max-width: 60ch;
  margin: 0;
  font-weight: 400;
}
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
}

/* ——————— SERVICES ——————— */
#services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 700px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px){ .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service {
  position: relative;
  padding: 40px 32px 32px;
  background: var(--bg-3);
  min-height: 340px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: background 320ms ease;
}
.service:hover { background: #FDFBF7; }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background 300ms ease, border-color 300ms ease, transform 500ms cubic-bezier(.2,.7,.2,1);
  color: var(--ink);
}
.service:hover .service-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(-8deg) scale(1.06);
}
.service-icon svg { width: 24px; height: 24px; stroke: currentColor; }
.service h3 {
  font-size: 26px;
  margin-top: 72px;
  font-weight: 700;
  transition: transform 380ms cubic-bezier(.2,.7,.2,1);
}
.service:hover h3 { transform: translateY(-6px); color: var(--accent); }
.service p {
  color: var(--ink-3);
  font-size: 15px;
  margin: 12px 0 0;
  max-width: 42ch;
}
.service-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 320ms ease 80ms, transform 320ms ease 80ms;
}
.service:hover .service-tags { opacity: 1; transform: translateY(0); }
.service-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  background: var(--bg);
}
.service-arrow {
  position: absolute;
  top: 32px; right: 32px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition: background 260ms ease, border-color 260ms ease, transform 260ms ease, color 260ms ease;
}
.service:hover .service-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(-45deg);
}
.service-arrow svg { width: 14px; height: 14px; stroke: currentColor; }

.service-accent {
  position: absolute;
  inset: auto -40% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(199,85,52,0.18), transparent 65%);
  opacity: 0;
  transition: opacity 420ms ease;
  pointer-events: none;
}
.service:hover .service-accent { opacity: 1; }

/* ——————— ARC ——————— */
#arc { background: var(--bg); }

.arc-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.arc-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.arc-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,11,12,0.72) 0%, rgba(11,11,12,0.35) 55%, rgba(11,11,12,0.15) 100%);
}
.arc-hero-inner {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  max-width: 700px;
}
.arc-logo { height: 56px; width: auto; margin-bottom: 36px; filter: brightness(0) invert(1); }
.arc-hero h2 {
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-weight: 700;
  margin-bottom: 20px;
}
.arc-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  max-width: 60ch;
  margin: 0;
}

.arc-grid {
  padding-top: calc(100px * var(--density));
  padding-bottom: calc(100px * var(--density));
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1000px) { .arc-grid { grid-template-columns: 440px 1fr; gap: 80px; } }

.arc-copy h3.arc-heading {
  font-size: clamp(28px, 3vw, 38px);
  margin: 20px 0;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.05;
}
.arc-copy p { color: var(--ink-2); font-size: 17px; margin: 0 0 20px; }
.arc-feats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.arc-feats li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  font-size: 15px;
  color: var(--ink-2);
  align-items: start;
}
.arc-feats li::before {
  content: '';
  width: 12px; height: 12px;
  margin-top: 7px;
  border: 2px solid var(--accent);
  border-radius: 3px;
}

.arc-demo {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-3);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 30px 60px -30px rgba(11,11,12,0.25), 0 10px 20px -10px rgba(11,11,12,0.08);
  overflow: hidden;
}
.arc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #FBFAF7;
}
.arc-dots { display: flex; gap: 6px; }
.arc-dots span { width: 10px; height: 10px; border-radius: 50%; background: #E6E1D8; }
.arc-url {
  margin-left: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  padding: 4px 10px;
  border-radius: 6px;
  background: #F2EEE6;
  flex: 1;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.arc-url::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #7FB069; }
.arc-top .status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  margin-left: auto;
}

.arc-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 520px;
}
@media (max-width: 700px) { .arc-body { grid-template-columns: 1fr; min-height: 0; } }
.arc-side {
  background: #FBFAF7;
  border-right: 1px solid var(--line);
  padding: 22px 14px;
}
@media (max-width: 700px) { .arc-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px; overflow-x: auto; } }
.arc-side-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 0 10px;
  margin-bottom: 10px;
}
.arc-tabs { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
@media (max-width: 700px) {
  .arc-tabs { display: flex; gap: 4px; }
  .arc-side-label { display: none; }
}
.arc-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  user-select: none;
  white-space: nowrap;
}
.arc-tab:hover { background: rgba(11,11,12,0.04); }
.arc-tab.is-active { background: var(--ink); color: var(--bg); }
.arc-tab .ico {
  width: 14px; height: 14px;
  display: inline-block;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}
.arc-tab.is-active .ico { opacity: 1; background: var(--accent); }

.arc-pane { padding: 28px; position: relative; min-height: 520px; }
@media (max-width: 700px) { .arc-pane { min-height: 440px; } }

.arc-view { display: none; animation: fadeUp 320ms ease both; }
.arc-view.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.arc-view-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.arc-view-head h4 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}
.arc-view-head .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
}

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.kpi { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #FDFCFA; }
.kpi .n { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.kpi .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); margin-top: 4px; }
.kpi .d { font-family: var(--font-mono); font-size: 11px; color: var(--accent); margin-top: 6px; }

.chart {
  height: 180px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FDFCFA;
  overflow: hidden;
}
.chart svg { width: 100%; height: 100%; }

.news-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.news-item:first-of-type { border-top: 0; }
.news-date { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }
.news-title { font-size: 14px; color: var(--ink); font-weight: 500; }
.news-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #F2EEE6;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.news-tag.pub { background: var(--accent); color: white; }

.room-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.room-folder {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FDFCFA;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 180ms ease, transform 180ms ease;
}
.room-folder:hover { border-color: var(--accent); transform: translateY(-2px); }
.folder-ico {
  width: 28px; height: 22px;
  border-radius: 4px 4px 6px 6px;
  background: var(--accent);
  position: relative;
}
.folder-ico::before {
  content: '';
  position: absolute;
  top: -4px; left: 0;
  width: 12px; height: 4px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}
.room-folder .t { font-size: 14px; font-weight: 600; }
.room-folder .s { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }

.insight-row { display: grid; gap: 10px; margin-bottom: 14px; }
.insight-bar {
  display: grid;
  grid-template-columns: 140px 1fr 56px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.insight-bar .name { color: var(--ink-2); font-weight: 500; }
.insight-bar .track { height: 10px; background: #F2EEE6; border-radius: 5px; overflow: hidden; }
.insight-bar .fill { height: 100%; background: var(--accent); border-radius: 5px; transition: width 700ms cubic-bezier(.2,.8,.2,1); }
.insight-bar .val { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); text-align: right; }

/* ——————— PROCESS ——————— */
#process { background: var(--bg-2); }
.steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--bg);
  padding: 36px 28px 140px;
  position: relative;
  min-height: 340px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.step h3 { font-size: 26px; margin: 14px 0 12px; font-weight: 700; letter-spacing: -0.015em; }
.step p { color: var(--ink-3); font-size: 14px; margin: 0; max-width: 32ch; }
.step-art {
  position: absolute;
  bottom: 24px;
  left: 28px;
  right: 28px;
  height: 80px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 6px, rgba(199,85,52,0.06) 6px 12px),
    var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ——————— AEO ——————— */
#aeo { background: var(--bg); padding-top: calc(100px * var(--density)); padding-bottom: calc(100px * var(--density)); }
.aeo { display: grid; gap: 64px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .aeo { grid-template-columns: 1.1fr 1fr; gap: 96px; } }
.aeo h2 { margin: 20px 0 20px; }
.aeo p { color: var(--ink-2); font-size: 17px; margin: 0 0 16px; }
.aeo .question {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg-3);
  margin-bottom: 14px;
  display: grid;
  gap: 12px;
}
.aeo .q-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.aeo .q-head .badge { padding: 3px 8px; background: var(--ink); color: var(--bg); border-radius: 4px; }
.aeo .q-text { font-size: 17px; color: var(--ink); font-weight: 600; }
.aeo .q-ans {
  padding: 14px;
  background: #FBFAF7;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.aeo .q-cursor::after {
  content: '';
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-top;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ——————— CTA ——————— */
#cta {
  background: var(--ink);
  color: var(--bg);
  padding: calc(140px * var(--density)) 0;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(199,85,52,0.35), transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-inner h2 {
  font-size: clamp(42px, 7vw, 100px);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1;
  max-width: 16ch;
  margin: 20px auto 28px;
}
.cta-inner p { color: var(--ink-4); max-width: 52ch; margin: 0 auto 36px; font-size: 17px; }
.cta-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.cta-form input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 12px 18px;
  color: var(--bg);
  font: inherit;
  font-size: 15px;
  outline: none;
}
.cta-form input::placeholder { color: var(--ink-4); }
.cta-form button {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease;
}
.cta-form button:hover { background: var(--accent-soft); }
.cta-inner a { color: var(--bg); text-decoration: underline; text-decoration-color: var(--accent); }

/* ——————— FOOTER ——————— */
footer {
  background: var(--ink);
  color: var(--ink-4);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.foot-logo { height: 36px; margin-bottom: 18px; }
.foot { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .foot { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 16px;
  font-weight: 500;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--line-strong); font-size: 14px; }
.foot ul a:hover { color: var(--accent); }
.foot .about { max-width: 32ch; font-size: 14px; }
.foot-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  flex-wrap: wrap;
}


@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding-top: 120px; }
  .step { padding: 32px 24px 140px; }
}

/* ——————— BLOG — shared primitives ——————— */
.page-blog,
.page-post { background: var(--bg); }
/* Blog pages don't have a dark hero behind the nav, so keep it light from the start. */
.page-blog #nav,
.page-post #nav {
  background: rgba(247, 245, 242, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  padding: 10px 0;
}
.page-blog #nav:not(.is-scrolled) .brand-logo,
.page-post #nav:not(.is-scrolled) .brand-logo { filter: none; }
.page-blog #nav:not(.is-scrolled) .nav-links,
.page-post #nav:not(.is-scrolled) .nav-links { color: var(--ink-2); }
.page-blog #nav:not(.is-scrolled) .nav-cta,
.page-post #nav:not(.is-scrolled) .nav-cta { background: var(--ink); color: #F7F5F2; border-color: transparent; backdrop-filter: none; }
.page-blog #nav:not(.is-scrolled) .nav-cta:hover,
.page-post #nav:not(.is-scrolled) .nav-cta:hover { background: var(--accent); }

.link-accent { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 150ms ease; }
.link-accent:hover { border-bottom-color: var(--accent); }

/* Card meta row — shared by featured, card, hero. */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.post-meta > * + *::before {
  content: '·';
  margin-right: 8px;
  color: var(--line-strong);
}
.post-meta .post-cat,
.post-hero-meta .post-cat {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.post-cat {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* Author block — compact (card) + large (hero). */
.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 13px;
}
.post-avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.post-author-name { font-weight: 600; color: var(--ink); }
.post-author-role { font-size: 12px; color: var(--ink-3); }
.post-author-lg { margin-top: 32px; gap: 14px; }
.post-author-lg .post-avatar { width: 44px; height: 44px; font-size: 12px; }

/* Media "tone" fallbacks — used when a post has no hero image. */
.tone-accent {
  background:
    radial-gradient(1200px 400px at 20% 20%, rgba(255,255,255,0.25), transparent 55%),
    linear-gradient(135deg, var(--accent) 0%, var(--accent-ink) 100%);
  color: #fff;
}
.tone-ink {
  background:
    radial-gradient(900px 320px at 80% 0%, rgba(199,85,52,0.25), transparent 55%),
    linear-gradient(135deg, var(--ink) 0%, #1a1a1d 100%);
  color: #fff;
}
.tone-bg {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  color: var(--ink);
}
.post-media-mark {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.9;
}
.tone-bg .post-media-mark { border-color: var(--line-strong); color: var(--ink-3); }

/* ——————— BLOG HERO (list page) ——————— */
.blog-hero {
  padding: 140px 0 64px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.blog-hero h1 {
  font-size: clamp(44px, 6vw, 88px);
  letter-spacing: -0.03em;
  line-height: 1;
  max-width: 18ch;
  margin: 20px 0 24px;
}
.blog-hero h1 em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); font-weight: 400; }
.blog-lead {
  max-width: 58ch;
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--ink-3);
  margin: 0 0 36px;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--ink-3);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink-2); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ——————— FEATURED POST ——————— */
.blog-featured { padding: calc(72px * var(--density)) 0 calc(40px * var(--density)); background: var(--bg); }
.post-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 400ms cubic-bezier(.2,.7,.2,1), border-color 240ms ease, box-shadow 240ms ease;
}
.post-featured:hover { border-color: var(--line-strong); box-shadow: 0 20px 40px -30px rgba(11,11,12,0.2); }
@media (min-width: 900px) { .post-featured { grid-template-columns: 1.1fr 1fr; gap: 0; } }

.post-featured-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  min-height: 280px;
}
.post-featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(.2,.7,.2,1);
}
.post-featured:hover .post-featured-media img { transform: scale(1.04); }
.post-featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11,11,12,0.75);
  color: var(--bg);
  backdrop-filter: blur(8px);
}

.post-featured-body { padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.post-featured-body h2 {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.post-featured-body h2 a { color: var(--ink); transition: color 180ms ease; }
.post-featured-body h2 a:hover { color: var(--accent); }
.post-featured-body .post-excerpt {
  font-size: 16px;
  color: var(--ink-3);
  max-width: 52ch;
  margin: 0;
}
.post-read-more {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color 180ms ease, border-color 180ms ease;
}
.post-read-more .arrow { transition: transform 220ms ease; }
.post-read-more:hover { color: var(--accent); border-color: var(--accent); }
.post-read-more:hover .arrow { transform: translateX(4px); }

/* ——————— POST GRID ——————— */
.blog-grid { padding: calc(80px * var(--density)) 0 calc(120px * var(--density)); }
.sec-head-grid { margin-bottom: 48px; }

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 700px)  { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 28px; } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), border-color 200ms ease, box-shadow 240ms ease;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 16px 32px -24px rgba(11,11,12,0.2); }
.post-card[hidden] { display: none !important; }

.post-card-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.post-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.post-card:hover .post-card-media img { transform: scale(1.05); }

.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card-body h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; margin: 4px 0 0; }
.post-card-body h3 a { color: var(--ink); transition: color 180ms ease; }
.post-card-body h3 a:hover { color: var(--accent); }
.post-card-body .post-excerpt { font-size: 14px; color: var(--ink-3); margin: 0; }
.post-card-body .post-author { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; }
.post-card-body .post-author .post-avatar { width: 28px; height: 28px; font-size: 10px; }

/* ——————— PAGINATION ——————— */
.blog-pagination {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg-3);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.pg-btn:hover { border-color: var(--ink); color: var(--ink); }
.pg-btn.is-disabled { opacity: 0.4; pointer-events: none; }
.pg-pages { display: flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 13px; }
.pg-num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink-3);
  transition: background 160ms ease, color 160ms ease;
}
.pg-num:hover { background: var(--bg-2); color: var(--ink); }
.pg-num.is-active { background: var(--ink); color: var(--bg); }
.pg-dots { color: var(--ink-4); padding: 0 4px; }

/* ——————— POST HERO (detail page) ——————— */
.post-hero {
  padding: 120px 0 0;
  background: var(--bg);
}
.post-hero .wrap { max-width: 880px; text-align: left; }
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 40px;
  transition: color 160ms ease, transform 200ms ease;
}
.post-back:hover { color: var(--accent); transform: translateX(-2px); }

.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 24px;
}
.post-hero-meta > * + *::before { content: '·'; margin-right: 8px; color: var(--line-strong); }

.post-hero h1 {
  font-size: clamp(36px, 5.4vw, 68px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 24ch;
  margin: 0 0 24px;
}
.post-lede {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(20px, 1.6vw, 26px);
  color: var(--ink-2);
  line-height: 1.4;
  max-width: 58ch;
  margin: 0 0 28px;
  font-weight: 400;
}

.post-hero-media {
  position: relative;
  margin: 56px 0 0;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 320px;
}
.post-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ——————— POST BODY ——————— */
.post-body { background: var(--bg); padding: calc(64px * var(--density)) 0 calc(80px * var(--density)); }
.post-body-inner { max-width: 720px; }
.post-content { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.post-content > * + * { margin-top: 1.1em; }
.post-content p { margin: 0; }
.post-content h2 {
  margin-top: 1.8em;
  font-size: clamp(26px, 2.2vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  font-weight: 700;
}
.post-content h3 {
  margin-top: 1.6em;
  font-size: clamp(20px, 1.6vw, 24px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 700;
}
.post-content a { color: var(--accent); border-bottom: 1px solid var(--accent); transition: background 160ms ease; }
.post-content a:hover { background: rgba(199,85,52,0.08); }
.post-content strong { color: var(--ink); font-weight: 700; }
.post-content em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--ink); }
.post-content ul, .post-content ol { padding-left: 1.4em; margin: 0; }
.post-content li + li { margin-top: 0.5em; }
.post-content li::marker { color: var(--accent); }
.post-content blockquote {
  margin: 1.4em 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg-3);
  border-radius: 0 10px 10px 0;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
}
.post-content pre {
  background: var(--ink);
  color: #F7F5F2;
  padding: 20px 24px;
  border-radius: 12px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.post-content code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-2); padding: 2px 6px; border-radius: 4px; color: var(--ink); }
.post-content pre code { background: transparent; padding: 0; color: inherit; }
.post-content img, .post-content figure { border-radius: 12px; overflow: hidden; }
.post-content .post-drop::first-letter {
  font-family: 'Instrument Serif', serif;
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.1em 0 0;
  color: var(--accent);
  font-weight: 400;
}

/* Tags + share */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.post-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  background: var(--bg-3);
  letter-spacing: 0.04em;
}
.post-tag::before { content: '#'; color: var(--ink-4); margin-right: 2px; }

.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  font-size: 13px;
}
.post-share-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.post-share a {
  color: var(--ink-2);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 160ms ease, border-color 160ms ease;
}
.post-share a:hover { color: var(--accent); border-color: var(--accent); }

.post-author-bio {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  padding: 24px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.post-author-bio .post-avatar { width: 44px; height: 44px; font-size: 12px; }
.post-author-bio p { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.post-author-bio a { color: var(--ink); border-bottom: 1px solid var(--line-strong); transition: color 160ms ease, border-color 160ms ease; }
.post-author-bio a:hover { color: var(--accent); border-color: var(--accent); }

/* Related posts section on the details page. */
.post-related { padding-top: calc(72px * var(--density)); padding-bottom: calc(96px * var(--density)); background: var(--bg-2); border-top: 1px solid var(--line); }

/* Newsletter CTA (lighter variant of #cta). */
.cta-newsletter { background: var(--ink); color: var(--bg); padding: calc(120px * var(--density)) 0; }
.cta-newsletter h2 em { color: var(--accent); }

/* ——————— BLOG responsive ——————— */
@media (max-width: 720px) {
  .blog-hero { padding: 110px 0 40px; }
  .post-hero { padding-top: 100px; }
  .post-hero-media { aspect-ratio: 16 / 10; margin-top: 40px; }
  .post-featured-body { padding: 28px 24px 32px; }
  .blog-pagination { justify-content: center; }
  .blog-pagination .pg-btn span { display: none; }
}

