/* =====================================================================
   LEVEL LINE CONCRETE CORP
   Design system: warm concrete / sand / clay · Archivo + Inter + Oswald
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --paper:      #F4F0E7;   /* warm bone background */
  --paper-2:    #ECE5D6;   /* deeper sand panel */
  --card:       #FBF8F1;   /* card surface */
  --sand:       #E6DCC8;
  --sand-deep:  #D9CCB1;
  --ink:        #1B1814;   /* deep warm near-black */
  --ink-2:      #4A443B;   /* secondary text */
  --ink-3:      #6E665A;   /* muted */
  --concrete:   #8A8276;
  --clay:       #A8492B;   /* primary accent / CTA */
  --clay-deep:  #8C3B22;
  --clay-tint:  #F1E5DC;
  --sage:       #5E6B4F;   /* secondary accent */
  --charcoal:   #232019;   /* dark slab */
  --charcoal-2: #2E2A22;
  --line:       rgba(27,24,20,.14);
  --line-2:     rgba(27,24,20,.28);
  --line-light: rgba(244,240,231,.18);

  /* Type */
  --f-head: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-label: "Oswald", "Archivo", system-ui, sans-serif;

  /* Spacing (8pt) */
  --sp-1: .5rem; --sp-2: 1rem; --sp-3: 1.5rem; --sp-4: 2rem;
  --sp-5: 3rem; --sp-6: 4rem; --sp-7: 5rem; --sp-8: 7rem;

  --maxw: 1200px;
  --radius: 4px;          /* sharp = precision */
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(27,24,20,.06), 0 4px 14px -8px rgba(27,24,20,.18);
  --shadow-md: 0 10px 30px -14px rgba(27,24,20,.30);
  --shadow-lg: 0 24px 60px -24px rgba(27,24,20,.40);
  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 2px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .75rem 1.25rem; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.u-clay { color: var(--clay); }
.u-desktop { display: none; }
@media (min-width: 760px) { .u-desktop { display: inline; } }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--f-label);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--clay);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow--sage { color: var(--sage); }
.eyebrow--light { color: #D8A98F; }

.section-title {
  font-family: var(--f-head);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.02em;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  color: var(--ink);
}
.hero__title {
  font-family: var(--f-head);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.025em;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--ink);
  margin-top: .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  --bh: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--bh); padding: 0 1.5rem;
  font-family: var(--f-head); font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  border-radius: var(--radius);
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  border: 2px solid transparent; white-space: nowrap; text-align: center;
}
.btn svg { flex: none; }
.btn--sm { --bh: 42px; padding: 0 1.1rem; font-size: .9rem; }
.btn--lg { --bh: 58px; padding: 0 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }

.btn--line { border-color: var(--line-2); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); }

.btn--line-light { border-color: var(--line-light); color: var(--paper); }
.btn--line-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--f-head); font-weight: 700; font-size: .95rem; color: var(--clay);
}
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,240,231,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck { background: rgba(244,240,231,.96); border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(27,24,20,.4); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand__mark { color: var(--clay); display: inline-flex; }
.brand__mark img { height: 44px; width: auto; display: block; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__line { font-family: var(--f-head); font-weight: 800; font-size: 1.18rem; letter-spacing: -.01em; }
.brand__sub { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .24em; font-size: .62rem; color: var(--ink-3); margin-top: 3px; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 1.6rem; }
.nav__list a {
  font-family: var(--f-head); font-weight: 600; font-size: .98rem; color: var(--ink-2);
  padding: .4rem 0; position: relative;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--clay);
  transition: width .25s var(--ease);
}
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after { width: 100%; }

.site-header__cta { display: flex; align-items: center; gap: 1rem; }
.link-phone {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--f-head); font-weight: 700; font-size: .95rem; color: var(--ink);
}
.link-phone svg { color: var(--clay); }
.link-phone:hover { color: var(--clay); }

.nav, .site-header__cta { display: none; }
@media (min-width: 940px) { .nav, .site-header__cta { display: flex; } .nav-toggle { display: none; } }

/* Hamburger */
.nav-toggle { margin-left: auto; width: 46px; height: 46px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: var(--radius); }
.nav-toggle__bar { width: 24px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 940px) { .nav-toggle { display: none; } }

/* Mobile drawer */
.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 1.25rem clamp(1.25rem,4vw,2.5rem) 1.75rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav ul a {
  display: block; padding: .9rem .25rem; font-family: var(--f-head); font-weight: 700; font-size: 1.25rem;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.mobile-nav .btn { margin-top: .75rem; }

/* =====================================================================
   LEVEL LINE motif
   ===================================================================== */
.levelline { position: relative; margin: 1.5rem 0; width: 100%; max-width: 640px; }
.levelline--divider { margin: 1.25rem 0 0; max-width: 100%; }
.levelline--left { margin-inline: 0; }
.levelline__svg { width: 100%; height: 24px; overflow: visible; }
.levelline--divider .levelline__svg { height: 8px; }
.levelline__path,
.levelline__tick { stroke: var(--clay); stroke-width: 2; }
.levelline__tick { stroke: var(--sage); stroke-width: 2; opacity: .7; }
.levelline__vial {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 34px; height: 14px; border: 2px solid var(--sage); border-radius: 8px;
  background: var(--paper); display: grid; place-items: center;
}
.levelline__vial i { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

/* draw animation */
.levelline__path { stroke-dasharray: 1300; stroke-dashoffset: 1300; }
.levelline__tick { transform: scaleY(0); transform-origin: center; }
.reveal.is-in .levelline__path,
.levelline.is-in .levelline__path { animation: line-draw 1.1s var(--ease) forwards; }
.reveal.is-in .levelline__tick,
.levelline.is-in .levelline__tick { animation: tick-pop .4s var(--ease) forwards; animation-delay: .9s; }
@keyframes line-draw { to { stroke-dashoffset: 0; } }
@keyframes tick-pop { to { transform: scaleY(1); } }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); position: relative; }
.hero::before {
  /* faint blueprint grid wash */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .5;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
}
.hero__head { max-width: 920px; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 60ch; margin-top: .5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.9rem;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; color: var(--ink-2);
}
.trust-row li { display: inline-flex; align-items: center; gap: .55rem; }
.trust-row__dot { width: 7px; height: 7px; background: var(--clay); border-radius: 50%; flex: none; }

/* Mosaic */
.hero__mosaic {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "lead lead" "tall wide";
}
.hero__shot { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--sand); box-shadow: var(--shadow-sm); }
.hero__shot img { width: 100%; height: 100%; object-fit: cover; }
.hero__shot--lead { grid-area: lead; aspect-ratio: 16/8.5; }
.hero__shot--tall { grid-area: tall; aspect-ratio: 4/3.4; }
.hero__shot--wide { grid-area: wide; aspect-ratio: 4/3.4; }
.hero__shot::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(27,24,20,.06); border-radius: inherit; }

@media (min-width: 760px) {
  .hero__mosaic {
    grid-template-columns: 1.7fr 1fr;
    grid-template-areas: "lead tall" "wide tall";
    gap: 14px;
  }
  .hero__shot--lead { aspect-ratio: auto; }
  .hero__shot--tall { aspect-ratio: auto; }
  .hero__shot--wide { aspect-ratio: 16/7; }
}

/* ===== Hero: editorial split (copy + image-forward media) ===== */
.hero__inner {
  display: grid; gap: clamp(2rem, 5vw, 3rem);
  grid-template-areas: "lede" "media" "cta";
}
.hero__lede { grid-area: lede; }
.hero__media { grid-area: media; position: relative; margin-bottom: clamp(2.5rem, 8vw, 3.5rem); }
.hero__cta { grid-area: cta; display: flex; flex-direction: column; gap: .9rem; }
.hero__lede .hero__lead { max-width: 46ch; }
.hero__reassure {
  margin: 0; font-family: var(--f-label); text-transform: uppercase;
  letter-spacing: .08em; font-size: .74rem; color: var(--ink-3);
}

/* Media cluster: dominant image + detail inset + credential badge */
.hero__media-main { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--sand); }
.hero__media-main img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero__media-inset {
  margin: 0; position: absolute; left: 5%; bottom: -12%;
  width: 38%; max-width: 230px; border-radius: 12px; overflow: hidden;
  border: 5px solid var(--paper); box-shadow: var(--shadow-md); background: var(--sand);
}
.hero__media-inset img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.hero__badge {
  position: absolute; top: 1rem; right: 1rem;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--ink); color: var(--paper);
  padding: .55rem .9rem; border-radius: 10px; box-shadow: var(--shadow-md);
}
.hero__badge-k { font-family: var(--f-label); letter-spacing: .08em; font-size: .68rem; color: var(--paper); opacity: .85; }
.hero__badge-v { font-family: var(--f-head); font-weight: 700; font-size: .85rem; color: #E9C7A0; }

@media (min-width: 880px) {
  .hero__inner {
    grid-template-columns: 1.04fr .96fr;
    grid-template-areas: "lede media" "cta media";
    align-items: start; column-gap: clamp(2.2rem, 5vw, 4.5rem); row-gap: 1.6rem;
  }
  .hero__media { align-self: center; margin-bottom: 0; }
  .hero__title { font-size: clamp(2.5rem, 4vw, 3.7rem); }
}
@media (min-width: 1180px) {
  .hero__media-inset { max-width: 250px; }
}

/* =====================================================================
   PROOF BAR
   ===================================================================== */
.proofbar { background: var(--ink); color: var(--paper); }
.proofbar__grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.proofbar__item { padding: 1.4rem 0; border-bottom: 1px solid var(--line-light); display: flex; flex-direction: column; gap: .15rem; }
.proofbar__item:last-child { border-bottom: none; }
.proofbar__k { font-family: var(--f-head); font-weight: 800; font-size: 1.05rem; color: #fff; }
.proofbar__v { font-size: .9rem; color: rgba(244,240,231,.66); }
@media (min-width: 760px) {
  .proofbar__grid { grid-template-columns: repeat(4, 1fr); }
  .proofbar__item { padding: 1.9rem 1.6rem 1.9rem 0; border-bottom: none; border-right: 1px solid var(--line-light); }
  .proofbar__item:first-child { padding-left: 0; }
  .proofbar__item:last-child { border-right: none; }
}

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head .section-title { margin-top: .7rem; }
.section-intro { margin-top: 1rem; color: var(--ink-2); font-size: 1.1rem; max-width: 62ch; }

/* SERVICES */
.service-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sand-deep); }
.service-card__media { position: relative; aspect-ratio: 4/3; background: var(--sand); overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__tag {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 600;
  background: rgba(27,24,20,.82); color: var(--paper); padding: .35rem .7rem; border-radius: 3px;
}
.service-card__body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { font-family: var(--f-head); font-weight: 800; font-size: 1.4rem; }
.service-card__body > p { color: var(--ink-2); margin-top: .5rem; font-size: .98rem; }
.ticklist { margin: 1rem 0 1.3rem; display: grid; gap: .45rem; }
.ticklist li { position: relative; padding-left: 1.5rem; font-size: .95rem; color: var(--ink-2); }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 6px;
  border-left: 2px solid var(--clay); border-bottom: 2px solid var(--clay); transform: rotate(-45deg);
}
.service-card__body .link-arrow { margin-top: auto; }

/* =====================================================================
   WORK / GALLERY
   ===================================================================== */
.work { background: var(--paper-2); }

/* Before / After */
.ba-feature { margin-bottom: 2.5rem; }
.ba {
  position: relative; width: 100%; aspect-ratio: 16/10; max-height: 70vh;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  background: var(--sand); user-select: none; touch-action: pan-y;
}
.ba__img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__img--after { position: absolute; inset: 0; }
/* Before layer fills the SAME box as the after (identical scale) and is revealed
   with clip-path - never sized to the viewport, so no zoom mismatch. */
.ba__before { position: absolute; inset: 0; overflow: hidden; -webkit-clip-path: inset(0 50% 0 0); clip-path: inset(0 50% 0 0); }
.ba__before .ba__img { width: 100%; height: 100%; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--paper);
  transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(27,24,20,.15); pointer-events: none;
}
.ba__handle-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--paper);
  box-shadow: var(--shadow-md); display: grid; place-items: center;
}
.ba__handle-grip::before, .ba__handle-grip::after {
  content: ""; position: absolute; width: 0; height: 0; border-block: 6px solid transparent;
}
.ba__handle-grip::before { left: 10px; border-right: 8px solid var(--clay); }
.ba__handle-grip::after { right: 10px; border-left: 8px solid var(--clay); }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; appearance: none; background: transparent;
}
.ba__range::-webkit-slider-thumb { appearance: none; width: 48px; height: 100%; }
.ba__range::-moz-range-thumb { width: 48px; height: 100%; border: 0; background: transparent; }
.ba__range:focus-visible + .ba__handle .ba__handle-grip,
.ba:focus-within .ba__handle-grip { outline: 3px solid var(--clay); outline-offset: 3px; }
.ba__label {
  position: absolute; top: 12px; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .14em;
  font-size: .68rem; font-weight: 600; padding: .35rem .7rem; border-radius: 3px; color: var(--paper); background: rgba(27,24,20,.7);
}
.ba__label--before { left: 12px; }
.ba__label--after { right: 12px; }
.ba-feature__cap { margin-top: .9rem; color: var(--ink-2); font-size: .95rem; text-align: center; }

/* Before / After tabbed gallery */
.ba-gallery { margin-bottom: 2.5rem; }
.ba-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 1.15rem; }

/* View toggle: slider vs side-by-side */
.ba-viewtoggle { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.1rem; }
.ba-viewbtn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .08em;
  font-size: .72rem; font-weight: 600; padding: .5rem 1rem; border-radius: 100px;
  border: 1.5px solid var(--line-2); color: var(--ink-2); background: transparent;
  cursor: pointer; transition: all .18s var(--ease);
}
.ba-viewbtn:hover { border-color: var(--ink); color: var(--ink); }
.ba-viewbtn:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.ba-viewbtn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ba-viewbtn svg { width: 15px; height: 15px; flex: none; }

/* Side-by-side (split) mode: both raw photos at identical size, no slider */
.ba-gallery.is-split .ba {
  aspect-ratio: auto; max-height: none; display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; background: transparent; box-shadow: none; overflow: visible; border-radius: 0;
}
.ba-gallery.is-split .ba__img { height: auto; aspect-ratio: 16 / 10; }
.ba-gallery.is-split .ba__before {
  position: static; grid-column: 1; grid-row: 1; overflow: visible;
  -webkit-clip-path: none !important; clip-path: none !important; /* overrides the JS-set inline reveal */
}
.ba-gallery.is-split .ba__before .ba__img,
.ba-gallery.is-split .ba__img--after { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.ba-gallery.is-split .ba__img--after { position: static; grid-column: 2; grid-row: 1; }
.ba-gallery.is-split .ba__handle,
.ba-gallery.is-split .ba__range { display: none; }
@media (max-width: 700px) {
  .ba-gallery.is-split .ba { grid-template-columns: 1fr; }
  .ba-gallery.is-split .ba__img--after { grid-column: 1; grid-row: 2; }
  /* stacked: the after label moves onto the second (after) photo */
  .ba-gallery.is-split .ba__label--after { top: calc(50% + 19px); }
}
.ba-tab {
  font-family: var(--f-head); font-weight: 600; font-size: .92rem;
  padding: .6rem 1.2rem; border-radius: 100px; border: 1.5px solid var(--line-2);
  color: var(--ink-2); background: transparent; cursor: pointer; transition: all .18s var(--ease);
}
.ba-tab:hover { border-color: var(--ink); color: var(--ink); }
.ba-tab.is-active { background: var(--clay); color: #fff; border-color: var(--clay); }
.ba-panel[hidden] { display: none; }
.ba-panel { animation: ba-fade .25s var(--ease); }
@keyframes ba-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ba-panel { animation: none; } }

/* Spam honeypot: off-screen but not display:none, so bots still fill it */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Submit failure notice */
.form-error {
  margin: .85rem 0 0; padding: .7rem .9rem; border-radius: var(--radius-sm, 6px);
  background: rgba(168,73,43,.10); border: 1px solid rgba(168,73,43,.35);
  color: var(--clay-deep, #7d331c); font-size: .92rem; line-height: 1.45;
}
.form-error[hidden] { display: none; }
button[aria-busy="true"] { opacity: .75; cursor: progress; }

/* Sub-headers that split the Work section into its two halves */
.work-subhead { margin: 0 0 1.15rem; }
.work-subhead--gallery { margin-top: 3.25rem; padding-top: 2.25rem; border-top: 1px solid var(--line-2); }
.work-subhead__k {
  margin: 0 0 .3rem; font-family: var(--f-label); text-transform: uppercase;
  letter-spacing: .14em; font-size: .72rem; font-weight: 600; color: var(--clay);
}
.work-subhead__title { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.2; color: var(--ink); }
.work-subhead__hint { margin: .4rem 0 0; color: var(--ink-3); font-size: .93rem; }

/* Filters */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.chip {
  font-family: var(--f-head); font-weight: 600; font-size: .9rem;
  padding: .55rem 1.05rem; border-radius: 100px; border: 1.5px solid var(--line-2); color: var(--ink-2);
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Grid */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
/* min-width:0 is load-bearing: `1fr` floors at min-content, so a large
   intrinsic image blows the track out past the container without it. */
.gallery__item { min-width: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); position: relative; cursor: zoom-in; }
.gallery__item:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.gallery__item figure { margin: 0; height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .5s var(--ease); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .7rem;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; color: var(--paper);
  background: linear-gradient(to top, rgba(27,24,20,.78), transparent); opacity: 0; transform: translateY(6px); transition: all .25s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover figcaption,
.gallery__item:focus-visible figcaption { opacity: 1; transform: translateY(0); }
/* Touch devices have no hover, so keep captions legible */
@media (hover: none) { .gallery__item figcaption { opacity: 1; transform: none; } }
/* Uniform tiles: legacy size modifiers neutralized so every tile is an equal 4:3 */
.gallery__item--lg, .gallery__item--wide { grid-column: auto; grid-row: auto; }
.gallery__item.is-hidden,
.gallery__item.is-clamped { display: none; }

/* View all / show less control */
.gallery-more-wrap { display: flex; justify-content: center; margin-top: 1.5rem; }
.gallery-more { gap: .45rem; }
.gallery-more__count { font-family: var(--f-label); letter-spacing: .04em; opacity: .7; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center;
  background: rgba(27,24,20,.93); padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; transition: opacity .2s var(--ease);
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__stage { position: relative; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lightbox__img {
  max-width: min(92vw, 1400px); max-height: 80vh; width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--sand);
}
.lightbox__cap {
  margin: 0; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em;
  font-size: .72rem; color: var(--paper); text-align: center;
}
.lightbox__count { opacity: .55; margin-left: .55rem; }
.lightbox__btn, .lightbox__close {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 100px; cursor: pointer;
  background: rgba(244,240,231,.12); color: var(--paper); border: 1px solid rgba(244,240,231,.28);
  -webkit-tap-highlight-color: transparent; transition: background-color .18s var(--ease);
}
.lightbox__btn:hover, .lightbox__close:hover { background: rgba(244,240,231,.26); }
.lightbox__btn:focus-visible, .lightbox__close:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.lightbox__btn svg, .lightbox__close svg { width: 22px; height: 22px; }
.lightbox__btn { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lightbox__next { right: clamp(.5rem, 2vw, 1.5rem); }
.lightbox__close { top: clamp(.6rem, 2vw, 1.5rem); right: clamp(.6rem, 2vw, 1.5rem); }
body.lb-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .gallery__item img, .lightbox, .lightbox__btn, .lightbox__close { transition: none; }
}
.gallery-note { margin-top: 1.4rem; color: var(--ink-3); font-size: .9rem; }
.gallery-note em { color: var(--ink-2); }

/* =====================================================================
   PROCESS
   ===================================================================== */
.process-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .process-layout { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

/* Prep → finish stacked layers */
.prepstack { display: grid; gap: 14px; position: relative; }
.prepstack::before {
  /* thin level line connecting the stages */
  content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(var(--clay), var(--sand-deep)); border-radius: 2px;
}
.prepstack__layer {
  position: relative; margin: 0 0 0 18px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); background: var(--sand);
}
.prepstack__layer::before {
  /* connector tick to the level line */
  content: ""; position: absolute; left: -18px; top: 22px; width: 18px; height: 2px; background: var(--clay);
}
.prepstack__layer img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; display: block; }
.prepstack__layer figcaption {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600;
  background: var(--paper); color: var(--ink); padding: .4rem .75rem; border-radius: 3px; box-shadow: var(--shadow-sm);
}
.prepstack__n { color: var(--clay); font-weight: 600; }

/* Steps */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start;
  padding: 1.4rem 0; border-top: 1px solid var(--line);
}
.step:first-child { border-top: none; padding-top: 0; }
.step__num { font-family: var(--f-label); font-weight: 600; font-size: 2.4rem; line-height: 1; color: var(--clay); letter-spacing: .02em; }
.step__body h3 { font-family: var(--f-head); font-weight: 800; font-size: 1.3rem; }
.step__body p { color: var(--ink-2); margin-top: .35rem; }

/* =====================================================================
   WHY (dark slab)
   ===================================================================== */
.why { background: var(--charcoal); color: var(--paper); position: relative; }
.why::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image: linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 80px 100%;
}
.section-head--light .section-title { color: #fff; }
.why-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card { padding: 1.6rem; border: 1px solid var(--line-light); border-radius: var(--radius-lg); background: rgba(255,255,255,.02); position: relative; }
.why-card::before { content: ""; position: absolute; left: 1.6rem; top: 0; width: 36px; height: 3px; background: var(--clay); }
.why-card h3 { font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; color: #fff; margin-top: .4rem; }
.why-card p { color: rgba(244,240,231,.72); margin-top: .5rem; font-size: .97rem; }
.confirm-flag { color: #D8A98F; font-size: .8em; font-family: var(--f-label); letter-spacing: .05em; }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .about__grid { grid-template-columns: .85fr 1fr; gap: 4rem; } }
.about__media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3.2; background: var(--sand); position: relative; }
.about__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(27,24,20,.08); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__body .section-title { margin-top: .6rem; }
.about__body p { color: var(--ink-2); margin-top: 1rem; max-width: 56ch; }
.about__body .btn { margin-top: 1.7rem; }

/* =====================================================================
   ESTIMATE
   ===================================================================== */
.estimate { background: var(--ink); color: var(--paper); }
.estimate__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .estimate__grid { grid-template-columns: 1fr 1.05fr; gap: 4rem; } }
.estimate__intro .section-title { color: #fff; }
.estimate__lead { margin-top: 1rem; color: rgba(244,240,231,.78); font-size: 1.1rem; max-width: 46ch; }
.estimate__lead strong { color: #fff; }
.estimate__points { margin-top: 1.5rem; display: grid; gap: .7rem; }
.estimate__points li { position: relative; padding-left: 1.7rem; color: rgba(244,240,231,.85); }
.estimate__points li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px;
  border-left: 2px solid var(--clay); border-bottom: 2px solid var(--clay); transform: rotate(-45deg);
}
.estimate__contact { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.estimate__phone, .estimate__wa {
  display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-head); font-weight: 700; font-size: 1.1rem;
}
.estimate__phone svg, .estimate__wa svg { color: var(--clay); }
.estimate__phone:hover, .estimate__wa:hover { color: #fff; }
.estimate__micro { margin-top: 1.1rem; font-size: .82rem; color: rgba(244,240,231,.5); }

.estimate-form { background: var(--card); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-lg); position: relative; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { font-family: var(--f-head); font-weight: 700; font-size: .92rem; color: var(--ink); }
.field__hint { font-family: var(--f-body); font-weight: 400; color: var(--ink-3); font-size: .82rem; }
.req { color: var(--clay); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line-2); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(168,73,43,.15); }
.field input[type="file"] { padding: .6rem; background: var(--paper); font-size: .9rem; }
.field textarea { resize: vertical; }
.field--invalid input, .field--invalid select { border-color: #B3261E; }
.field__error { color: #B3261E; font-size: .82rem; font-weight: 500; min-height: 0; }
.field--invalid .field__error { min-height: 1em; }

.field--contact-pref { border: none; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .95rem; border: 1.5px solid var(--line-2);
  border-radius: 100px; font-family: var(--f-head); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .15s var(--ease);
}
/* The generic `.field input { width:100% }` above also hits these radios and
   stretches each one across its pill, overlapping the label. Reset them. */
.pill input[type="radio"] {
  width: auto; flex: none; margin: 0; padding: 0;
  min-width: 0; border: 0; background: none; box-shadow: none;
  accent-color: var(--clay);
}
.pill input[type="radio"]:focus { box-shadow: none; }
.pill:has(input:focus-visible) { outline: 3px solid var(--clay); outline-offset: 2px; }
/* full-width, evenly split on narrow screens so all four read cleanly */
@media (max-width: 460px) {
  .pills { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .pill { justify-content: flex-start; padding: .6rem .8rem; }
}
.pill:has(input:checked) { background: var(--clay-tint); border-color: var(--clay); color: var(--clay-deep); }
.estimate-form__note { margin-top: 1rem; font-size: .8rem; color: var(--ink-3); }

.form-success { position: absolute; inset: 0; background: var(--card); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; gap: .5rem; }
.form-success[hidden] { display: none; }
.form-success__check { width: 64px; height: 64px; border-radius: 50%; background: var(--clay-tint); color: var(--clay); display: grid; place-items: center; margin-bottom: .5rem; }
.form-success h3 { font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; }
.form-success p { color: var(--ink-2); max-width: 36ch; }
.form-success a { color: var(--clay); font-weight: 600; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq__inner { max-width: 820px; }
.accordion { display: grid; gap: 0; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left;
  padding: 1.3rem 0; font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; color: var(--ink);
}
.acc__q:hover { color: var(--clay); }
.acc__icon { position: relative; width: 18px; height: 18px; flex: none; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; background: var(--clay); border-radius: 2px; transition: transform .25s var(--ease); }
.acc__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.acc__icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.acc__q[aria-expanded="true"] .acc__icon::after { transform: scaleY(0); }
.acc__a { overflow: hidden; height: 0; transition: height .3s var(--ease); }
.acc__a p { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 64ch; }

/* =====================================================================
   FINAL CTA BAND
   ===================================================================== */
.cta-band { background: var(--clay); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 56px 56px;
}
.cta-band__inner { padding-block: clamp(3rem, 6vw, 5rem); text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.cta-band h2 { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.02em; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.cta-band .btn--primary { background: var(--ink); color: #fff; }
.cta-band .btn--primary:hover { background: #000; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--charcoal); color: var(--paper); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.brand--footer { color: var(--paper); }
.brand--footer .brand__line { color: var(--paper); }
.brand--footer .brand__sub { color: rgba(244,240,231,.55); }
.brand--footer .brand__mark img { height: 50px; }
.site-footer__blurb { margin-top: 1rem; color: rgba(244,240,231,.66); max-width: 38ch; font-size: .95rem; }
.site-footer__cslb { margin-top: 1rem; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; color: rgba(244,240,231,.55); }
.site-footer__areas { margin-top: .9rem; font-size: .82rem; line-height: 1.5; color: rgba(244,240,231,.5); max-width: 42ch; }
.site-footer__col h3 { font-family: var(--f-head); font-weight: 800; font-size: .92rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 1rem; }
.site-footer__col ul { display: grid; gap: .65rem; }
.site-footer__col a { color: rgba(244,240,231,.72); transition: color .15s var(--ease); }
.site-footer__col a:hover { color: #fff; }
.site-footer__col li { color: rgba(244,240,231,.72); font-size: .95rem; }
.site-footer__cta p { color: rgba(244,240,231,.72); font-size: .95rem; margin-bottom: 1rem; }
.footer-social { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; color: rgba(244,240,231,.72); }
.footer-social:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; padding-block: 1.6rem; margin-top: 2.5rem; border-top: 1px solid var(--line-light); font-size: .85rem; color: rgba(244,240,231,.55); }
.site-footer__legal a:hover { color: #fff; }

/* =====================================================================
   MOBILE STICKY CTA BAR
   ===================================================================== */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr;
  background: rgba(244,240,231,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(27,24,20,.5);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: .65rem .25rem; min-height: 60px;
  font-family: var(--f-head); font-weight: 700; font-size: .76rem; color: var(--ink); border-right: 1px solid var(--line);
}
.mobile-bar__btn svg { color: var(--clay); }
.mobile-bar__btn--primary { background: var(--clay); color: #fff; }
.mobile-bar__btn--primary svg { color: #fff; }
.mobile-bar__btn:last-child { border-right: none; }
@media (min-width: 940px) { .mobile-bar { display: none; } }
@media (max-width: 939px) { body { padding-bottom: 64px; } }

/* =====================================================================
   REVEAL animations
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
[data-stagger].is-in > * { animation: rise .7s var(--ease) backwards; }
[data-stagger].is-in > *:nth-child(1) { animation-delay: .05s; }
[data-stagger].is-in > *:nth-child(2) { animation-delay: .12s; }
[data-stagger].is-in > *:nth-child(3) { animation-delay: .19s; }
[data-stagger].is-in > *:nth-child(4) { animation-delay: .26s; }
[data-stagger].is-in > *:nth-child(5) { animation-delay: .33s; }
[data-stagger].is-in > *:nth-child(6) { animation-delay: .40s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .levelline__path { stroke-dashoffset: 0; }
  .levelline__tick { transform: scaleY(1); }
  .prepstack__layer { animation: none; }
  [data-stagger].is-in > * { animation: none; }
}

/* =====================================================================
   LANGUAGE SWITCHER + DETECTION BANNER
   ===================================================================== */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1.5px solid var(--line-2); border-radius: 100px; background: var(--card);
}
.lang-switch__opt {
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .08em;
  font-size: .74rem; font-weight: 600; color: var(--ink-3);
  padding: .35rem .7rem; min-height: 34px; display: inline-flex; align-items: center; line-height: 1;
  border-radius: 100px; transition: background-color .18s var(--ease), color .18s var(--ease);
}
.lang-switch__opt:hover { color: var(--ink); }
.lang-switch__opt.is-active { background: var(--ink); color: var(--paper); }

/* sits in the header CTA cluster on desktop */
.site-header__cta .lang-switch { order: -1; }

/* in the mobile drawer */
.mobile-nav .lang-switch { align-self: flex-start; margin-bottom: .75rem; }

/* Spanish-detection banner */
.lang-banner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem 1.1rem;
  background: var(--clay-tint); border-bottom: 1px solid var(--sand-deep);
  padding: .6rem clamp(1rem, 4vw, 2rem); text-align: center;
}
.lang-banner[hidden] { display: none; }
.lang-banner__text { font-weight: 600; color: var(--clay-deep); font-size: .95rem; }
.lang-banner__actions { display: inline-flex; align-items: center; gap: .5rem; }
.lang-banner__go { min-height: 38px; }
.lang-banner__close {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-2); font-size: 1.05rem; line-height: 1; transition: background-color .15s var(--ease), color .15s var(--ease);
}
.lang-banner__close:hover { background: rgba(27,24,20,.08); color: var(--ink); }

/* ============ ON THE JOB (video clips) ============ */
/* Tiles keep their native orientation; a shared HEIGHT (not width) drives the
   row so portrait + landscape sit on one balanced line with no orphan wrap. */
.onjob-grid { display: flex; flex-direction: column; align-items: center; gap: 26px; }
/* Mobile: one centered column, every card the SAME width so the stack reads
   as one set (orientation only changes each card's height). */
.onjob-tile { margin: 0; width: 100%; max-width: 300px; position: relative; }
.onjob-play {
  display: block; position: relative; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: var(--ink); border-radius: var(--radius-lg); overflow: hidden;
}
.onjob-media { display: block; position: relative; width: 100%; overflow: hidden; }
.onjob-tile--portrait .onjob-media { aspect-ratio: 9 / 16; }
.onjob-tile--landscape .onjob-media { aspect-ratio: 16 / 9; }
.onjob-poster { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.onjob-play:hover .onjob-poster,
.onjob-play:focus-visible .onjob-poster { transform: scale(1.04); }
/* scrim keeps the overlaid caption legible over any photo */
.onjob-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(27,24,20,.82) 0%, rgba(27,24,20,.34) 26%, rgba(27,24,20,0) 52%);
}
.onjob-play__btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(244,240,231,.92); color: var(--clay); box-shadow: var(--shadow-md);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.onjob-play:hover .onjob-play__btn { background: var(--clay); color: var(--paper); transform: translate(-50%,-50%) scale(1.08); }
.onjob-play:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.onjob-play__btn svg { width: 24px; height: 24px; margin-left: 3px; }
/* duration pill, bottom-right of the card */
.onjob-dur {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; pointer-events: none;
  font-family: var(--f-label); font-size: .68rem; font-weight: 600; letter-spacing: .06em;
  color: var(--paper); background: rgba(27,24,20,.72); padding: .2rem .45rem; border-radius: 3px;
}
/* caption sits ON the card (over the scrim) until the clip is playing */
.onjob-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  margin: 0; padding: 1.6rem .9rem .75rem; padding-right: 3.6rem;
  font-family: var(--f-head); font-weight: 600; font-size: .95rem; line-height: 1.25;
  color: var(--paper); text-align: left; text-shadow: 0 1px 3px rgba(27,24,20,.5);
}
.onjob-video { display: block; width: 100%; background: #000; border-radius: var(--radius-lg); object-fit: contain; }
.onjob-tile--portrait .onjob-video { aspect-ratio: 9 / 16; }
.onjob-tile--landscape .onjob-video { aspect-ratio: 16 / 9; }
/* while playing: drop the overlays so nothing covers the native controls */
.onjob-tile.is-playing .onjob-dur { display: none; }
.onjob-tile.is-playing .onjob-cap {
  position: static; padding: .7rem 0 0; color: var(--ink-2); text-align: center;
  font-weight: 500; text-shadow: none;
}

/* Tablet + desktop: one row, sized by a shared height so widths follow each
   clip's own aspect ratio (portrait 9:16, landscape 16:9). */
@media (min-width: 760px) {
  .onjob-grid { flex-direction: row; flex-wrap: nowrap; align-items: flex-start; justify-content: center; gap: 20px; }
  .onjob-tile { width: auto; max-width: none; }
  .onjob-media, .onjob-video { height: clamp(300px, 25.5vw, 372px); width: auto; aspect-ratio: auto; }
  .onjob-tile--portrait .onjob-media,
  .onjob-tile--portrait .onjob-video { aspect-ratio: 9 / 16; }
  .onjob-tile--landscape .onjob-media,
  .onjob-tile--landscape .onjob-video { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .onjob-poster, .onjob-play__btn { transition: none; }
  .onjob-play:hover .onjob-poster { transform: none; }
}
