/* ---------------------------------------------------------------- responsive-fix.css v2
   Responsive system for BytArch Studio (loaded LAST, wins over system/layout).
   Breakpoints:
     <640      phone   — single column
     640–1023  tablet  — 2-up cards, splits stack
     1024–1439 laptop  — full 12-col desktop grid
     1440+     desktop — wider container, larger type, taller visuals
     1920+     wide    — max container, display-scale type
   The fixed-height "one section per screen" system is disabled: sections
   grow with content so nothing overlaps.
   ---------------------------------------------------------------- */

/* ================================================================
   1. KILL THE FIXED-HEIGHT SYSTEM (keep grids as grids!)
   ================================================================ */
:link { text-underline-offset: 3px; }
main > :is(section, .section),
footer.closing {
  height: auto !important;
  min-height: 0 !important;
  padding-block: clamp(56px, 8vw, 120px) !important;
}
main > :is(.hero, .section--hero) {
  height: auto !important;
  min-height: calc(100svh - var(--nav, 72px)) !important;
  padding: calc(var(--nav, 72px) + clamp(24px, 4vw, 48px)) 0 clamp(36px, 5vw, 64px) !important;
}

/* Only non-grid wraps become plain block. A .wrap.grid MUST stay a grid,
   otherwise split sections (services, why-us, FAQ, footer columns) collapse
   to a single stacked column on desktop = "phone layout on a PC". */
main > :is(section, .section) > :is(.wrap, .container):not(.grid) {
  height: auto !important;
  display: block;
  flex: none !important;
  min-height: 0 !important;
}
main > :is(section, .section) > :is(.wrap, .container).grid {
  height: auto !important;
  min-height: 0 !important;
  align-content: start;
}
footer.closing > .wrap {
  height: auto !important;
  min-height: 0 !important;
  /* keep system's display:grid rows (CTA + links) intact */
}

/* Section head spacing stays sane */
.section-head { margin-bottom: var(--s-6) !important; }

/* ================================================================
   1b. HEADER — hide "Chat on WhatsApp" on phones/tablets so the logo,
   menu button and nav stay balanced (it's reachable inside the menu).
   Hamburger gets its own zone at the far right, separate from the logo.
   ================================================================ */
/* Tighten nav on small laptops so long labels never wrap or crowd the CTA */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__bar { gap: 16px; }
  .nav__links { gap: 2px; }
  .nav__link { padding: 0 8px; font-size: 14px; white-space: nowrap; }
  .nav__logo { font-size: 20px; }
  .nav__actions .btn { padding-inline: 14px; font-size: 14px; white-space: nowrap; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .nav__links { gap: 4px; }
  .nav__link { padding: 0 10px; font-size: 15px; }
}
@media (max-width: 1023px) {
  .nav__actions .nav-wa { display: none !important; }
  /* keep actions hidden in the bar, but still show the bottom CTA when menu is open */
  .nav:not(.is-open) .nav__actions { display: none !important; }
  .nav.is-open .nav__actions { display: grid !important; }
  /* own part for hamburger: clean 2-col bar — logo left, toggle right */
  .nav__bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
  }
  .nav__logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    min-width: 0;
  }
  .nav__toggle {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: inline-grid !important;
    place-items: center !important;
    margin-left: 0 !important;
    justify-self: end !important;
    width: 44px !important;
    height: 44px !important;
    flex: none !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  /* toggle occupies its own edge zone: separator + breathing room from logo */
  .nav__toggle::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: var(--line, rgba(26,23,16,.14));
  }
  .nav__toggle { position: relative; }
}
@media (max-width: 639px) {
  .nav__bar { gap: 12px !important; padding-inline: 4px; }
  .nav__toggle { width: 44px; height: 44px; }
  .nav__toggle::before { left: -12px; }
}

/* ================================================================
   2. CONTAINER, GUTTERS & TYPE — scaled per breakpoint
   (system.css caps everything at the 1440px size, so without this
   a 1920px monitor gets a 1280px page with huge empty margins)
   ================================================================ */
/* Laptop 1024–1439: roomier than the old 80px/1280 defaults */
@media (min-width: 1024px) {
  :root {
    --container: 1180px;
    --gut: 48px;
    --gutter: 24px;
    --card-gap: 24px;
  }
  .hero h1, .hero__text h1 { font-size: clamp(44px, 2.3vw + 21px, 55px); letter-spacing: -0.02em; }
}
@media (min-width: 1440px) {
  .hero h1, .hero__text h1 { font-size: clamp(54px, 2.7vw + 22px, 84px); }
}
@media (min-width: 1920px) {
  .hero h1, .hero__text h1 { font-size: clamp(64px, 2.9vw + 24px, 100px); }
}
/* Keep hero claims tidy on wide screens */
@media (min-width: 1440px) {
  .hero .hero__lead { font-size: 21px; }
}
@media (min-width: 1920px) {
  .hero .hero__lead { font-size: 23px; }
}

/* Desktop 1440+ */
@media (min-width: 1440px) {
  :root {
    --container: 1360px;
    --gut: 80px;
    --gutter: 28px;
    --card-gap: 28px;
    --card-pad: 32px;
    --nav: 80px;
    --t-h1: clamp(56px, 2.8vw + 28px, 88px);
    --t-h2: clamp(40px, 1.8vw + 26px, 56px);
    --t-h3: 32px;
    --t-lead: 22px;
    --ly-h1: clamp(60px, 3.1vw + 32px, 96px);
    --ly-h1-xl: clamp(68px, 3.5vw + 36px, 108px);
    --ly-lead: 22px;
    --head-gap: 56px;
  }
  .nav__logo { font-size: 26px; }
  .btn { height: 48px; font-size: 17px; }
  .hero h1, .hero__text h1 { font-size: var(--ly-h1); }
}

/* Wide 1920+ (full HD / ultrawide monitors) */
@media (min-width: 1920px) {
  :root {
    --container: 1560px;
    --gut: 120px;
    --gutter: 32px;
    --card-gap: 32px;
    --t-h1: clamp(68px, 2.9vw + 30px, 104px);
    --t-h2: clamp(46px, 1.9vw + 30px, 64px);
    --t-h3: 36px;
    --t-lead: 24px;
    --ly-h1: clamp(68px, 3.3vw + 34px, 112px);
    --ly-h1-xl: clamp(76px, 3.7vw + 38px, 124px);
    --ly-lead: 24px;
  }
  .hero h1, .hero__text h1 { letter-spacing: -0.03em; }
  .nav__logo { font-size: 28px; }
}

/* ================================================================
   2b. HERO — cleaned split hero (copy + layout)
   ================================================================ */
.hero--split .hero__text { display: flex; flex-direction: column; gap: 0; }
.hero__kicker { margin-bottom: 16px; }
.hero h1 {
  max-width: 16ch;
  text-wrap: balance;
  margin-bottom: 18px;
}
.hero__lead {
  max-width: 52ch;
  margin-bottom: 26px;
}
.hero .btn-row { margin-bottom: 28px; }
.hero-facts {
  margin-top: 0;
}
.hero__media {
  min-height: clamp(320px, 48vw, 560px);
  aspect-ratio: 4 / 3;
}
.hero__wire {
  background: linear-gradient(160deg, #ece4d2 0%, #f7f3e8 55%, #e6dcc4 100%);
  border: 1px solid var(--line);
}
.hero__wire canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}
.hero__wire .hero__fallback { opacity: 0; z-index: 0; }
.hero__wire.is-live { border-color: color-mix(in oklab, #8a5f30 22%, var(--line)); }
.hero__media img { object-position: center center; }
.wire-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #ece4d2 0%, #f7f3e8 55%, #e6dcc4 100%);
  min-height: 360px;
}
.hero__media.wire-frame { min-height: clamp(320px, 48vw, 560px); }
@media (min-width: 1024px) { .hero__media.wire-frame { min-height: 480px; } }
.wire-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}
.ly-float { z-index: 2; }
@media (max-width: 767px) {
  .hero h1 { max-width: 14ch; }
  .hero__media { aspect-ratio: 4 / 3; min-height: 260px; margin-top: 24px; }
  .ly-float { left: 12px; bottom: 12px; }
  .hero-facts { grid-template-columns: 1fr; gap: 10px; }
}
@media (min-width: 1024px) {
  .hero--split .hero__grid { column-gap: 56px; }
  .hero__media { aspect-ratio: auto; min-height: 480px; max-height: 640px; height: 100%; }
}

/* ================================================================
   3. HERO — 12-col split on desktop, stacked below 1024
   (spans come from system.css; do NOT set a 5fr/6fr template here
   or the span-5/span-6 columns break)
   ================================================================ */
.hero > .wrap > .hero-text {
  height: auto !important;
  min-height: 0 !important;
}

.hero__grid {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

@media (min-width: 1024px) {
  .hero__grid { column-gap: 48px; align-items: center; }
  .hero__media { height: 100%; min-height: 460px; max-height: 680px; }
}
@media (min-width: 1440px) {
  .hero__grid { column-gap: 72px; }
  .hero__text { max-width: 640px; }
  .hero__media { min-height: 560px; max-height: 800px; }
}
@media (min-width: 1920px) {
  .hero__grid { column-gap: 88px; }
  .hero__text { max-width: 720px; }
  .hero__media { min-height: 640px; max-height: 880px; }
}

/* H1 sizing per tier (layout tokens + fallback) */
.hero h1 {
  font-size: clamp(36px, 2.6vw + 24px, 52px);
}

/* Keep hero claims to one line on wide screens */
@media (min-width: 1440px) {
  .hero h1.bring-calls { white-space: nowrap; font-size: clamp(58px, 2.9vw + 30px, 88px); letter-spacing: -0.035em; }
  .hero h1.giant-hero { white-space: nowrap; }
}
/* On 1024-1439 the hero keeps the compact scale above; nowrap only at 1440+ to avoid mid-line breaks */

/* ================================================================
   4. SPAN GRID — full row on phone, 2-up on tablet, 12-col on desktop
   ================================================================ */
@media (max-width: 639px) {
  .grid > [class*="span-"],
  .grid > [class*="start-"] {
    grid-column: 1 / -1 !important;
  }
  .hero__media { min-height: 240px; max-height: none; height: 300px; }
  .hero-facts { grid-template-columns: 1fr; gap: var(--s-3); }
  .project-card { grid-column: 1 / -1 !important; }
  .nav__actions .btn { padding-inline: 14px; font-size: 14px; white-space: nowrap; }
  .btn { min-height: 44px; }
  .hero-facts { gap: 10px; }
  .hero-facts dd { font-size: 14px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .grid > [class*="span-"],
  .grid > [class*="start-"] {
    grid-column: 1 / -1 !important;
  }
  .grid > .span-4 { grid-column: auto / span 6 !important; }
  .project-card { grid-column: auto / span 6 !important; }
  .hero__media { min-height: 300px; max-height: 420px; height: auto; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 1024+: spans are handled by system.css (span-4 = 4 of 12, etc.) — nothing to do */

/* ================================================================
   5. HERO FACTS — always in-flow.
   Override layout.css's 12-col .hero__facts (span 3 per fact) which
   squeezes the contact page's Email / Where / Hours into boxes where
   the long email value overflows into the next column. Stacked
   label-over-value cells with normal wrapping can never overlap.
   ================================================================ */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.hero-facts > div {
  grid-column: auto !important;
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
}
.hero-facts dt { font-size: 13px; color: var(--muted); }
.hero-facts dd {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
  min-width: 0;
}
@media (max-width: 767px) {
  .hero-facts { grid-template-columns: 1fr; gap: 10px; }
  .hero-facts dd { font-size: 14px; }
}
/* Principles rows — name + description above value, no inline cram */
.rows { display: grid; }
.rows > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  row-gap: 4px;
  padding-block: 16px;
  align-items: start;
}
.rows__name { min-width: 0; font-weight: 500; line-height: 1.35; }
.rows__name small {
  display: block;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted, #6d6350);
  margin-top: 2px;
}
.rows__value {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  white-space: nowrap;
  font-size: 14px;
  padding-top: 2px;
}
@media (max-width: 767px) {
  .rows > li { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
  .rows__value { font-size: 13px; }
}

/* ================================================================
   6. SCREENSHOT GALLERY — Netflix-style rail
   Horizontal scroll-snap row with a peek of the next card,
   edge-fade on both sides, prev/next buttons. Cards size from the
   viewport (clamped) so the row works at every breakpoint.
   ================================================================ */
.work-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 36vw, 560px);
  gap: clamp(14px, 1.8vw, 24px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gut, 24px), max(0px, calc((100vw - var(--container, 1180px)) / 2 + var(--gut, 24px))));
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #c9b088 transparent;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}
/* Scrollbars — brand bronze on cream, matches .btn--primary and the cream/gold palette */
* {
  scrollbar-width: thin;
  scrollbar-color: #c9b088 transparent;
  scrollbar-gutter: stable;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: #f7f3e8; }
*::-webkit-scrollbar-thumb { background: #c9b088; border-radius: 8px; border: 2px solid #f7f3e8; }
*::-webkit-scrollbar-thumb:hover { background: #b79566; }
*::-webkit-scrollbar-thumb:active { background: #a87f52; }
.work-rail {
  scrollbar-width: thin;
  scrollbar-color: #c9b088 transparent;
}
.work-rail::-webkit-scrollbar { height: 8px; }
.work-rail::-webkit-scrollbar-thumb { background: #c9b088; border-radius: 99px; border: 0; }
.work-rail::-webkit-scrollbar-thumb:hover { background: #b79566; }
.work-rail::-webkit-scrollbar-track { background: color-mix(in oklab, #ece4d2 60%, #f7f3e8); border-radius: 99px; }
::selection { background: color-mix(in oklab, #8a5f30 28%, transparent); }

.work-rail:focus-visible { outline: 2px solid var(--action, #8a5f30); outline-offset: 4px; }
.work-rail > .project-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.work-rail__nav { display: flex; gap: 10px; margin-top: 16px; }
.rail-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong, rgba(26,23,16,.25));
  background: var(--bg, #f7f3e8); color: var(--ink, #1a1710);
  font-size: 18px; cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.rail-btn:hover { background: var(--surface, #ece4d2); }
.rail-btn:active { transform: scale(.95); }
.rail-btn:focus-visible { outline: 2px solid var(--action, #8a5f30); outline-offset: 2px; }
/* First card starts on the container line (flush inset, not mid-card) */
.work-rail {
  margin-inline: calc(-1 * max(var(--gut, 24px), max(0px, calc((100vw - var(--container, 1180px)) / 2 + var(--gut, 24px)))));
  padding-inline: max(var(--gut, 24px), max(0px, calc((100vw - var(--container, 1180px)) / 2 + var(--gut, 24px))));
}
/* Phone + tablet: Netflix row — full-bleed horizontal swipe, peek next, no buttons */
@media (max-width: 1023px) {
  #work .wrap { max-width: none; }
  .work-rail {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* full-bleed to viewport edges, inset 24px so first card starts at the gutter */
    margin-inline: calc(-1 * max(var(--gut, 24px), max(0px, calc((100vw - var(--container, 1180px)) / 2 + var(--gut, 24px)))));
    padding-inline: max(var(--gut, 24px), max(0px, calc((100vw - var(--container, 1180px)) / 2 + var(--gut, 24px))));
    padding-block: 4px 10px;
    scroll-padding-inline: var(--gut, 24px);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  }
  .work-rail::-webkit-scrollbar { display: none; }
  .work-rail > .project-card {
    flex: 0 0 min(78vw, 340px);
    max-width: 78vw;
    min-width: 0;
    scroll-snap-align: start;
  }
  .work-rail__nav { display: none !important; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .work-rail > .project-card { flex-basis: min(46vw, 420px); max-width: 46vw; }
}
@media (prefers-reduced-motion: reduce) {
  .work-rail { scroll-behavior: auto; }
}
.project-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  border: 0;
  background: transparent;
  margin: 0;
}
.project-shot img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover;
  object-position: top center;
  transform-origin: center top;
  display: block;
}
.project-shot__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(14, 19, 27, .82);
  color: #f7f3e8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .project-shot img { transition: transform .5s ease; }
  .project-card:hover .project-shot img, .project-card:focus-visible .project-shot img { transform: scale(1.03); }
}
.project-card {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: var(--s-3, 12px);
  align-content: start;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.project-card h3 { margin: 0; }
.project-card p { margin: 0; }

/* ================================================================
   6b. PERSONAL PROJECT CARDS (projects.php — GitHub, no screenshot)
   ================================================================ */
.personal-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--card, #ece4d2);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  min-height: 360px;
}
.personal-card p { flex: 1 1 auto; }
.personal-card__tech { margin-top: 4px; }
.rail-btn-cta { margin-top: auto; }
.personal-card:hover { border-color: color-mix(in oklab, var(--action) 40%, var(--line)); }
.personal-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.personal-badge {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 99px;
  background: #8a5f30; color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  flex: none; line-height: 1; white-space: nowrap;
}
.personal-status {
  font-size: 13px; font-weight: 500;
  color: #8a5f30;
  background: color-mix(in oklab, #8a5f30 12%, transparent);
  padding: 6px 12px; border-radius: 99px;
  flex: none; line-height: 1; white-space: nowrap;
}
.personal-card h3 { font-size: 22px; margin: 0; }
.personal-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.personal-card__tech {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.personal-card__tech li {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 99px;
  border: 0;
  background: transparent;
  font-size: 12px; font-weight: 700; font-style: italic; color: #6d6350;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.personal-card__tech .rows__name { display: inline; font-weight: 700; font-style: italic; color: inherit; line-height: 1; text-decoration: underline; text-underline-offset: 3px; }
.rail-btn-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px; margin-top: auto; padding-top: 12px;
}
.personal-card:hover .rail-btn-cta { color: var(--action, #8a5f30); }
@media (max-width: 639px) {
  .personal-card { padding: 20px; }
}

/* ================================================================
   7. IMAGE FRAMES — sized per breakpoint so splits look intentional
   ================================================================ */
.frame--work { min-height: 320px; height: 100%; }
.frame--work img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 1023px) {
  .frame--work { min-height: 280px; height: 360px; }
}
@media (min-width: 1024px) {
  .frame--work { min-height: 440px; }
}
@media (min-width: 1440px) {
  .frame--work { min-height: 520px; }
}
@media (min-width: 1920px) {
  .frame--work { min-height: 600px; }
}

/* ================================================================
   8. SMALL GLITCHES
   ================================================================ */
.project-card h3, .section-head h2, .hero h1 {
  overflow-wrap: anywhere;
  hyphens: auto;
}
.faq-item p { padding-bottom: var(--s-4); }
.card { min-width: 0; }
img { max-width: 100%; }
.ly-float { max-width: calc(100% - 32px); }
@media (max-width: 639px) {
  .ly-float { left: 12px; bottom: 12px; right: 12px; }
}
.contact-form { min-width: 0; }
.contact-form input,
.contact-form textarea,
.contact-form select { max-width: 100%; box-sizing: border-box; }
footer .grid > [class*="span-"] { min-width: 0; }
.footer__socials {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; margin: 14px 0 0; padding: 0;
}
.footer__socials a {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  color: inherit;
}
.footer__socials a:hover { background: var(--surface); border-color: var(--line-strong); }
.footer__socials .lucide { width: 16px; height: 16px; }
.btn .lucide { width: 16px; height: 16px; vertical-align: -2px; }
.btn--xl .lucide { width: 20px; height: 20px; }
.footer__legal { align-items: center; }
.cdn-snippet { border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#ece4d2; }
.cdn-snippet > div { display:flex; justify-content:space-between; align-items:center; padding:8px 12px; border-bottom:1px solid var(--line); font-size:13px; font-weight:500; }
.cdn-snippet pre { margin:0; padding:14px; overflow:auto; white-space:pre-wrap; word-break:break-word; font-size:13px; line-height:1.6; }
.listen-btn {
  position: fixed; z-index: 9999;
  padding: 8px 16px; border-radius: 99px; border: 0;
  background: #8a5f30; color: #fff;
  font: 600 13px/1 "Libre Franklin", system-ui, sans-serif;
  cursor: pointer; box-shadow: 0 8px 24px -8px rgb(0 0 0 / .35);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.listen-bubble {
  position: fixed; z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  background: #1a1710; color: #f7f3e8;
  border-radius: 999px; padding: 8px 8px 8px 14px;
  box-shadow: 0 16px 40px -12px rgb(0 0 0 / .5);
  max-width: min(92vw, 400px);
}
.listen-bubble .listen-bubble-text {
  font: 12px/1.4 "Libre Franklin", system-ui, sans-serif;
  opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}
.listen-bubble .listen-btn {
  position: static; z-index: auto; flex: none;
}
.listen-btn:hover { background: #755026; }
.listen-btn:focus-visible { outline: 2px solid #1a1710; outline-offset: 2px; }
@media (max-width: 767px) {
  .listen-btn { padding: 12px 20px; font-size: 14px; }
  .listen-bubble {
    /* positioned by JS below the selection; keep centered horizontally */
    left: 50% !important; right: auto !important;
    transform: translateX(-50%) !important;
    max-width: min(94vw, 400px);
  }
}

/* Safe on very wide screens: never stretch lines past readable measure */
@media (min-width: 1440px) {
  .section-head { max-width: 880px; }
  .hero .hero__lead { max-width: 48ch; }
}
@media (min-width: 1920px) {
  .section-head { max-width: 960px; }
}
