/* v4 — "הדף הוא אוטומציה"
   Palette: warm paper bg + single terracotta accent + warm-slate ink.
   Radius rule: interactive = pill, surfaces = 14px. Type: Heebo + IBM Plex Mono (labels only). */

:root {
  --bg: #f7f3ec;
  --bg-deep: #efe9de;
  --ink: #26221c;
  --ink-soft: #57503f;
  --muted: #6f6553;  /* ≥4.5:1 on --bg (WCAG AA for small text) */
  --accent: #c2502c;
  --accent-deep: #a03e20;
  --accent-soft: rgba(194, 80, 44, .09);
  --line: #e2dacb;
  --card: #fffdf8;
  --good: #1f8a4c;
  --radius: 14px;
  --shadow: 0 2px 6px rgba(87, 64, 30, .05), 0 18px 44px rgba(87, 64, 30, .09);
}

* { box-sizing: border-box; margin: 0; }
/* overflow-x:hidden on the scroll root kills any phantom horizontal scroll
   (real-device zoom-out symptom) without breaking the sticky nav — html is
   the scroll root, not an ancestor-with-overflow between nav and root. */
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Heebo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: clip;
  max-width: 100%;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.mono, .post-date, .q-date { font-family: 'IBM Plex Mono', monospace; }

/* keyboard accessibility */
:focus-visible { outline: 2.5px solid var(--accent-deep); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; }
.skip-link {
  position: absolute; top: -48px; right: 16px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 0 0 10px 10px;
  font-weight: 700; transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ---------- buttons (pill, one accent) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 13px 26px;
  font-weight: 700; font-size: 16px; line-height: 1;
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s, background .18s, color .18s;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(194,80,44,.28); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { color: var(--ink-soft); padding: 13px 18px; }
.btn-ghost:hover { color: var(--accent); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-lg { padding: 17px 34px; font-size: 18px; }
.btn-nav { padding: 10px 20px; font-size: 15px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  height: 68px; padding: 0 clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand-logo { width: 38px; height: 38px; display: block; }
.brand-logo.sm { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 22px; margin-inline-start: 8px; flex: 1; }
.nav-links a { font-weight: 500; color: var(--ink-soft); position: relative; }
.nav-links a::after {
  content: ""; position: absolute; right: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--accent); transition: width .22s cubic-bezier(.16,1,.3,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span {
  display: block; width: 22px; height: 2.5px; background: var(--ink);
  border-radius: 2px; margin: 4.5px 0; transition: transform .2s, opacity .2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 7fr 5fr; align-items: center;
  gap: clamp(24px, 5vw, 72px);
  max-width: 1240px; margin: 0 auto;
  padding: clamp(36px, 6vh, 72px) clamp(16px, 4vw, 48px) clamp(44px, 7vh, 80px);
}
.hero-title {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 900; line-height: 1.12; letter-spacing: -0.5px;
}
.hero-title .accent { font-style: normal; color: var(--accent); }
.hero-sub {
  margin-top: 22px; max-width: 34ch;
  font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); font-weight: 400;
}
.hero-ctas { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* hero: Shay's cutout standing on a soft color disc */
.hero-figure {
  position: relative; margin: 0; align-self: end;
  max-width: 400px; justify-self: center; width: 100%;
}
.hero-figure::before {
  content: ""; position: absolute; bottom: -6px; left: 50%;
  width: 102%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, var(--accent-soft), var(--bg-deep) 75%);
}
.hero-cutout {
  position: relative; width: 100%; height: auto; display: block;
  filter: drop-shadow(0 18px 30px rgba(87, 64, 30, .25));
}

/* live board: warm dark terminal window beside the services bento */
.services-board { display: flex; }
.services-board .live-board {
  background: #221d17; border-color: #3b342a;
  padding: 0 0 6px; overflow: hidden;
  display: flex; flex-direction: column; width: 100%;
}
.term-head {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.term-dots { display: inline-flex; gap: 6px; direction: ltr; }
.term-dots i { width: 11px; height: 11px; border-radius: 50%; }
.term-dots i:nth-child(1) { background: #ff5f57; }
.term-dots i:nth-child(2) { background: #febc2e; }
.term-dots i:nth-child(3) { background: #28c840; }
.term-title {
  display: inline-flex; align-items: center; gap: 9px;
  color: #f1ebdd; font-weight: 800; font-size: 14px; margin-inline-start: auto;
}
.services-board .live-list { padding: 10px 10px 2px; gap: 3px; flex: 1; align-content: space-evenly; }
.services-board .live-row {
  background: transparent; border-color: transparent;
  color: #e8e1d4; padding: 8px 10px; font-size: 13.5px;
}
.services-board .live-name { color: #f1ebdd; }
.services-board .live-sub { color: #9a9080; }
.services-board .live-row.active {
  border-color: rgba(194, 80, 44, .55); background: rgba(194, 80, 44, .1);
  box-shadow: none;
}
.services-board .live-row:has(.live-link):hover { border-color: rgba(194, 80, 44, .55); }
.services-board .live-row:has(.live-link) .live-sub { color: #e8956f; }
.live-more {
  list-style: none; color: #9a9080; font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; padding: 6px 12px 4px;
  text-align: left;  /* end of line, like a prompt waiting at the terminal's edge */
}
.term-cursor { display: inline-block; margin-inline-start: 5px; animation: term-blink 1.1s steps(1) infinite; color: #28c840; }
@keyframes term-blink { 50% { opacity: 0; } }
.flow-card {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  padding: 18px 18px 10px;
}
.board-head {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 15px; margin-bottom: 12px;
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #21a35e;
  box-shadow: 0 0 0 0 rgba(33,163,94,.45);
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(33,163,94,.45); }
  70% { box-shadow: 0 0 0 9px rgba(33,163,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(33,163,94,0); }
}
.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.live-row {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font-size: 14px;
  transition: border-color .4s, box-shadow .4s, transform .4s;
}
.live-row.active {
  border-color: var(--accent);
  box-shadow: 0 3px 14px rgba(194,80,44,.13);
  transform: translateX(-3px);
}
.live-row .live-link {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px;
  grid-column: 1 / -1; margin: -9px -12px; padding: 9px 12px; border-radius: 10px;
}
.live-row:has(.live-link):hover { border-color: var(--accent); }
.live-icon { font-size: 17px; text-align: center; }
.live-name { font-weight: 700; }
.live-sub { color: var(--muted); font-size: 12px; white-space: nowrap; }
.live-row:has(.live-link) .live-sub { color: var(--accent-deep); font-weight: 700; }
.flow-caption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- tools marquee ---------- */
.tools { border-block: 1px solid var(--line); background: var(--bg-deep); overflow: hidden; max-width: 100%; }
.marquee { padding: 14px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
/* 4 identical groups, shift by exactly one group (25%) per loop = seamless,
   and total track width stays wider than any viewport */
.marquee-track { display: flex; width: max-content; animation: scroll-x 26s linear infinite; }
.marquee-group { display: flex; gap: 48px; padding-inline-end: 48px; }
.tool { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; color: var(--ink-soft); white-space: nowrap; }
.tool img { opacity: .85; }
@keyframes scroll-x { to { transform: translateX(-25%); } }

/* ---------- sections shared ---------- */
section { position: relative; }
.section-title {
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.4px;
  margin-bottom: clamp(24px, 4vh, 44px);
}
.services, .about, .writing, .reviews {
  max-width: 1140px; margin: 0 auto;
  padding: clamp(56px, 9vh, 110px) clamp(16px, 4vw, 48px);
}

/* ---------- services: photo beside a calm 2x2 grid ---------- */
/* stretch: the terminal matches the bento height, rows spread evenly */
.services-grid { display: grid; grid-template-columns: 1fr 400px; gap: clamp(24px, 4vw, 52px); align-items: stretch; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bento-cell {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 32px); position: relative; overflow: hidden;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s;
}
.bento-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bento-cell::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 65%);
  pointer-events: none;
}
.bento-cell:hover::before { opacity: 1; }
.cell-1 { background: linear-gradient(135deg, #fff8f3, var(--card)); border-color: #ecd9c8; }
.cell-1::after {
  content: ""; position: absolute; bottom: -34px; left: -26px; width: 170px; height: 170px;
  background: url('/theme-static/v4/icons/whatsapp.svg') no-repeat center / contain;
  opacity: .06; pointer-events: none;
}
.cell-4 { background: var(--bg-deep); }
.bento-icon { font-size: 30px; line-height: 1; display: inline-block; margin-bottom: 14px; }
.bento-cell h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.bento-cell p { color: var(--ink-soft); font-size: 15.5px; max-width: 52ch; white-space: pre-line; }

/* built apps cards (inside services) */
.built-h { font-size: 19px; font-weight: 800; margin: 30px 0 14px; }
.built-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.built-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.built-name { font-weight: 800; font-size: 17px; display: block; margin-bottom: 6px; }
.built-card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 14px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.built-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- stay updated: compact channel + groups band ---------- */
.community { max-width: 1140px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) clamp(40px, 6vh, 70px); }
.community-band {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px;
}
.community-title { font-weight: 800; font-size: 18px; display: block; }
.community-sub { color: var(--ink-soft); font-size: 14.5px; }
.community-text { display: grid; gap: 3px; }
.community-actions { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.community-groups { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.community-groups a { color: var(--accent-deep); font-weight: 700; white-space: nowrap; }
.community-groups a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .community-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .community-actions .btn { justify-content: center; }
  .community-groups { justify-content: center; }
}

/* ---------- about ---------- */
.about { background: transparent; }
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.about-photo {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}
.about-inner { max-width: 680px; }
.about-lead { font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; line-height: 1.6; }
.about-line { margin-top: 18px; color: var(--ink-soft); }

/* ---------- writing ---------- */
.writing-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.writing-sub { color: var(--ink-soft); margin: -16px 0 18px; max-width: 60ch; }
.writing-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tag-lg { font-size: 14px; padding: 6px 16px; transition: background .15s, color .15s; }
.tag-lg:hover { background: var(--accent); color: #fff; }
.link-more { font-weight: 700; color: var(--accent-deep); white-space: nowrap; }
.link-more:hover { color: var(--accent); }
.post-row {
  display: grid; grid-template-columns: 110px 1fr auto 28px; align-items: center; gap: 18px;
  padding: 20px 6px; border-bottom: 1px solid var(--line);
  transition: background .15s, padding .2s cubic-bezier(.16,1,.3,1);
}
.post-row:first-of-type { border-top: 1px solid var(--line); }
.post-row:hover { background: var(--card); padding-inline-start: 14px; }
.post-date { font-size: 13px; color: var(--muted); }
.post-title { font-size: clamp(17px, 1.8vw, 21px); font-weight: 700; }
.post-tags { display: flex; gap: 8px; }
.tag { font-size: 12.5px; background: var(--accent-soft); color: var(--accent-deep); border-radius: 999px; padding: 3px 11px; font-weight: 600; white-space: nowrap; }
.post-arrow { color: var(--accent); font-size: 20px; transition: transform .2s; }
.post-row:hover .post-arrow { transform: translateX(-5px); }

/* ---------- reviews ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.quote {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.q-2 { margin-top: 26px; }
.q-3 { margin-top: 52px; }
.stars { color: var(--accent); letter-spacing: 3px; font-size: 15px; margin-bottom: 12px; }
.quote p { font-size: 16px; line-height: 1.6; }
.quote footer { margin-top: 14px; font-weight: 700; font-size: 14.5px; }
.q-date { color: var(--muted); font-weight: 400; font-size: 12.5px; margin-inline-start: 8px; }
.sample-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.reviews-cta { margin-top: 30px; }

/* ---------- final cta ---------- */
.final-cta {
  max-width: 1140px; margin: 0 auto clamp(56px, 9vh, 110px);
  padding: clamp(44px, 6vw, 72px) clamp(24px, 4vw, 64px);
  background: var(--ink); color: var(--bg); border-radius: 22px;
  text-align: center;
}
.final-cta h2 { font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.4px; }
.final-cta p { margin: 14px auto 30px; max-width: 46ch; color: #cfc8b8; }

/* ---------- footer: 3 columns, stacks cleanly on mobile ---------- */
.footer { border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14.5px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px; max-width: 1240px; margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 48px) 44px;
}
.footer-col { display: grid; gap: 9px; align-content: start; justify-items: start; }
.footer-h { font-weight: 800; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.footer-col a { color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent); }
.footer-logo-row { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.footer-tag { font-size: 13.5px; color: var(--muted); max-width: 30ch; }

/* ---------- inner pages (articles) ---------- */
.inner-main { min-height: 60vh; }
.inner-page { max-width: 880px; margin: 0 auto; padding: clamp(36px, 6vh, 64px) clamp(16px, 4vw, 48px); }
.muted-line { color: var(--muted); padding: 30px 0; }
.tag-active { background: var(--accent); color: #fff; }
.crumbs { margin-bottom: 18px; }
.crumbs a { color: var(--accent-deep); font-weight: 700; font-size: 14.5px; }
.crumbs a:hover { color: var(--accent); }
.article-title { font-size: clamp(30px, 4.2vw, 46px); font-weight: 900; letter-spacing: -0.5px; line-height: 1.15; }
.article-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px; margin: 14px 0 26px;
}
.article-meta .post-tags { display: inline-flex; gap: 8px; margin-inline-start: 6px; }
.article-cover { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 26px; }
.article-share {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  font-weight: 600; color: var(--ink-soft);
}
.more-section { padding-top: 0; }
.section-title.sm { font-size: 24px; margin-bottom: 16px; }
.err-page { text-align: center; padding-block: 90px; }
.err-page p { color: var(--ink-soft); margin-bottom: 26px; }

/* article body */
.prose { font-size: 17.5px; line-height: 1.75; }
.prose h1, .prose h2, .prose h3 { font-weight: 800; letter-spacing: -0.3px; margin: 1.6em 0 .5em; line-height: 1.25; }
.prose h1 { font-size: 28px; } .prose h2 { font-size: 24px; } .prose h3 { font-size: 19px; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--accent-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.prose blockquote {
  border-inline-start: 3px solid var(--accent); background: var(--card);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 1.2em 0; color: var(--ink-soft);
}
.prose code {
  font-family: 'IBM Plex Mono', monospace; font-size: .88em;
  background: var(--bg-deep); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; direction: ltr; unicode-bidi: embed;
}
.prose pre {
  background: #221d17; color: #e8e1d4; direction: ltr; text-align: left;
  border-radius: 12px; padding: 18px 20px; overflow-x: auto; margin: 1.2em 0;
  font-size: 14px; line-height: 1.6;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: right; }
.prose th { background: var(--card); font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* videos from the channel: light thumbnail cards, zero iframes */
.videos { padding-top: 0; }
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.video-card { display: grid; gap: 10px; }
.video-thumb {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--bg-deep);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 22px;
  background: rgba(38, 34, 28, .18); transition: background .2s;
}
.video-card:hover .video-play { background: rgba(38, 34, 28, .32); }
.video-title { font-weight: 700; font-size: 14.5px; line-height: 1.45; }

/* ---------- reviews: cards with avatar + write-review form ---------- */
.reviews-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.reviews-head .section-title { margin-bottom: 0; }
.reviews-summary { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; }
.rs-num { font-weight: 900; font-size: 22px; color: var(--ink); }
.rs-stars { letter-spacing: 1px; }
.rs-stars .on { color: var(--accent); } .rs-stars .off { color: var(--line); }
.rs-count { color: var(--muted); }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.quote {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 10px;
}
.q-hidden { display: none; }
.q-top { display: flex; align-items: center; gap: 12px; }
.q-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.q-initial { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px; }
.q-id { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.q-name { font-weight: 800; font-size: 15.5px; }
.q-id .stars { color: var(--accent); letter-spacing: 1.5px; font-size: 13px; }
.q-source { opacity: .9; flex-shrink: 0; align-self: flex-start; }
.quote p { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.q-date { color: var(--muted); font-size: 12.5px; margin-top: auto; }
.reviews-more { margin: 22px auto 0; display: block; }
.sample-note { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.reviews-cta { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }



/* ---------- comments (Google sign-in) ---------- */
.comments { padding-top: 0; max-width: 760px; }
.cm-count { color: var(--muted); font-weight: 600; font-size: .8em; }
.cm-list { display: grid; gap: 18px; margin-bottom: 28px; }
.cm-item { display: flex; gap: 12px; }
.cm-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cm-initial { display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--accent); }
.cm-body { flex: 1; }
.cm-name { font-weight: 800; font-size: 15px; }
.cm-date { color: var(--muted); font-weight: 400; font-size: 12.5px; margin-inline-start: 8px; }
.cm-body p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; white-space: pre-wrap; }
.cm-empty { color: var(--muted); }
.cm-compose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.cm-prompt { margin: 0 0 14px; font-weight: 700; color: var(--ink-soft); }
.cm-form { display: grid; gap: 12px; }
.cm-as { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.cm-as img { width: 30px; height: 30px; border-radius: 50%; }
.cm-form textarea {
  font-family: inherit; font-size: 15px; padding: 11px 14px; resize: vertical;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink);
}
.cm-form textarea:focus { outline: none; border-color: var(--accent); }
.cm-actions { display: flex; align-items: center; gap: 14px; }
.cm-msg { font-size: 14px; font-weight: 600; }
.cm-msg.ok { color: var(--good); } .cm-msg.err { color: var(--accent); }

/* ---------- reveal-on-scroll (classes applied by JS only) ---------- */
.reveal-init {
  opacity: 0; transform: translateY(26px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1);
}
.reveal-init.reveal-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 280px; margin: 0 auto; }
  .services-grid { grid-template-columns: 1fr; }
  .built-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 260px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-flow { max-width: 460px; margin: 0 auto; width: 100%; }
  .quotes { grid-template-columns: 1fr; }
  .q-2, .q-3 { margin-top: 0; }
  .bento { grid-template-columns: 1fr; }
  .cell-4 { grid-column: auto; }
}
@media (max-width: 760px) {
  /* live board: icon+name on top line, detail on its own line below */
  .live-row, .live-row .live-link { grid-template-columns: 26px 1fr; }
  .live-row .live-sub { grid-column: 2; white-space: normal; font-size: 12px; }
  .nav { gap: 12px; }
  .nav .btn-nav { margin-inline-start: auto; padding: 12px 18px; }  /* ≥44px tap target */
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; right: 0; left: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 6px 0;
    box-shadow: 0 14px 30px rgba(87,64,30,.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 22px; font-size: 16px; }
  .nav-links a::after { display: none; }
  .tag-lg { padding: 10px 18px; }  /* comfortable tap target */
  .ba-grid { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(-90deg); justify-self: center; }
  .post-row { grid-template-columns: 1fr 28px; grid-template-rows: auto auto; }
  .post-date { order: 2; }
  .post-tags { display: none; }
  .post-arrow { grid-row: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .hero-title { font-size: 34px; }
  .btn-lg { padding: 15px 26px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .term-cursor { animation: none; }
  html { scroll-behavior: auto; }
  .ba-after .ba-item { opacity: 1; }
}
