/* ==========================================================================
   Kohan R&R — Renovation & Repair
   Palette derived from the logo: espresso #3C3431, brass, cream.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --espresso:      #3C3431;   /* sampled from the logo background */
  --espresso-deep: #2A2422;
  --espresso-lift: #4A403C;
  --ink:           #1C1917;

  --brass:         #C0A16B;   /* accent on dark — 4.67:1 on espresso */
  --brass-bright:  #D9BE8A;
  --brass-ink:     #8A6D3B;   /* accent on light — 4.63:1 on paper */

  --cream:         #F5F0E6;
  --paper:         #FBF9F6;
  --paper-2:       #F3EFE9;

  --muted:         #6E635D;
  --muted-dark:    #B3A79F;   /* muted text on espresso */
  --line:          rgba(60, 52, 49, .14);
  --line-dark:     rgba(245, 240, 230, .16);

  --danger:        #A8342A;
  --ok:            #2F6B4F;

  /* Type */
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --maxw: 1240px;

  /* Effects */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, .06), 0 4px 12px rgba(28, 25, 23, .05);
  --shadow-md: 0 4px 10px rgba(28, 25, 23, .07), 0 18px 40px rgba(28, 25, 23, .10);
  --shadow-lg: 0 10px 24px rgba(28, 25, 23, .10), 0 32px 70px rgba(28, 25, 23, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--brass-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.footer :focus-visible,
.header--solid :focus-visible { outline-color: var(--brass-bright); }

::selection { background: var(--brass); color: var(--espresso-deep); }

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--espresso);
  color: var(--cream);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section--dark {
  background: var(--espresso);
  color: var(--cream);
}
.section--paper2 { background: var(--paper-2); }

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* Eyebrow: uppercase + tracked, echoing "RENOVATION & REPAIR" in the logo */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.section--dark .eyebrow,
.on-dark .eyebrow { color: var(--brass); }

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  margin-bottom: 1.1rem;
}
.section-intro {
  color: var(--muted);
  font-size: 1.075rem;
  max-width: 58ch;
}
.section-head--center .section-intro { margin-inline: auto; }
.section--dark .section-intro,
.on-dark .section-intro { color: var(--muted-dark); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .2s var(--ease),
              box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--brass);
  color: var(--espresso-deep);
  box-shadow: 0 2px 6px rgba(60, 52, 49, .16);
}
.btn--primary:hover {
  background: var(--brass-bright);
  box-shadow: 0 8px 22px rgba(192, 161, 107, .38);
}

.btn--dark {
  background: var(--espresso);
  color: var(--cream);
}
.btn--dark:hover { background: var(--espresso-deep); box-shadow: var(--shadow-md); }

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--espresso); background: rgba(60, 52, 49, .04); }

.btn--ghost-light {
  border-color: rgba(245, 240, 230, .34);
  color: var(--cream);
}
.btn--ghost-light:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
  background: rgba(245, 240, 230, .06);
}

.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1rem; }

/* Text link with animated brass underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--brass-ink);
  position: relative;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--brass); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Transparent over the hero, solid once scrolled */
.header--solid {
  background: rgba(42, 36, 34, .96);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 6px 26px rgba(28, 25, 23, .22);
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-right: auto;
  min-width: 0;
}
.brand__mark {
  width: 42px; height: 42px;
  border-radius: 3px;
  border: 1px solid rgba(192, 161, 107, .45);
  flex: none;
  object-fit: cover;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--cream);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand__tag {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  white-space: nowrap;
}

.nav { display: none; }
@media (min-width: 1000px) {
  .nav { display: flex; align-items: center; gap: 2rem; }
}
.nav__link {
  font-size: .93rem;
  font-weight: 500;
  color: var(--cream);
  position: relative;
  padding-block: .4rem;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--brass-bright); }
.nav__link:hover::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 1rem; }

.header__phone {
  display: none;
  align-items: center;
  gap: .55rem;
  color: var(--cream);
  font-weight: 600;
  font-size: .95rem;
  transition: color .25s var(--ease);
}
.header__phone:hover { color: var(--brass-bright); }
.header__phone svg { width: 17px; height: 17px; color: var(--brass); }
@media (min-width: 760px) { .header__phone { display: inline-flex; } }

.header__cta { display: none; }
@media (min-width: 1000px) { .header__cta { display: inline-flex; } }

/* Hamburger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span {
  display: block;
  width: 19px; height: 1.5px;
  background: var(--cream);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--espresso-deep);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1000px) { .drawer { display: none; } }

.drawer__link {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  padding-block: .85rem;
  border-bottom: 1px solid var(--line-dark);
  transition: color .2s var(--ease), padding-left .25s var(--ease);
}
.drawer__link:hover { color: var(--brass); padding-left: .4rem; }
.drawer__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: .85rem; }
.drawer__meta { color: var(--muted-dark); font-size: .9rem; }
.drawer__meta a { color: var(--brass); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(94vh, 880px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  background: var(--espresso-deep);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(28, 25, 23, .93) 0%, rgba(28, 25, 23, .70) 38%, rgba(28, 25, 23, .42) 70%, rgba(28, 25, 23, .58) 100%),
    linear-gradient(to right, rgba(42, 36, 34, .78) 0%, rgba(42, 36, 34, .18) 62%, transparent 100%);
}

.hero__inner { position: relative; width: 100%; }
.hero__content { max-width: 44rem; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.5rem;
}
.hero__eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: currentColor;
}

.hero__title {
  font-size: clamp(2.5rem, 6.6vw, 4.75rem);
  color: var(--cream);
  margin-bottom: 1.5rem;
  letter-spacing: -.025em;
}
.hero__title em {
  font-style: italic;
  color: var(--brass);
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: rgba(245, 240, 230, .84);
  max-width: 48ch;
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 3rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding-top: 1.85rem;
  border-top: 1px solid var(--line-dark);
}
.hero__point {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: rgba(245, 240, 230, .9);
  font-size: .93rem;
  font-weight: 500;
}
.hero__point svg { width: 17px; height: 17px; color: var(--brass); flex: none; }

/* --------------------------------------------------------------------------
   7. Services
   -------------------------------------------------------------------------- */
/* Services — a ruled two-column list. Ten short service names scan far
   better as a list than as ten big cards. */
.services {
  display: grid;
  border-top: 1px solid var(--line);
}
@media (min-width: 820px) {
  .services {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(2rem, 5vw, 4.5rem);
  }
}

.svc {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 1.45rem .5rem 1.45rem 0;
  border-bottom: 1px solid var(--line);
}
/* Don't leave a stray rule under the final row */
@media (min-width: 820px) { .svc:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 819px) { .svc:last-child { border-bottom: 0; } }

.svc__icon {
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(192, 161, 107, .14);
  color: var(--brass-ink);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.svc__icon svg { width: 21px; height: 21px; }
.svc:hover .svc__icon { background: var(--espresso); color: var(--brass); }

.svc__title {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: .2rem;
}
.svc__text {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   8. Work / gallery
   -------------------------------------------------------------------------- */
.work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}
.work__head .section-head { margin-bottom: 0; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.filter {
  padding: .55rem 1.15rem;
  border-radius: 100px;
  border: 1px solid var(--line-dark);
  color: rgba(245, 240, 230, .78);
  font-size: .87rem;
  font-weight: 500;
  transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--brass); color: var(--brass-bright); }
.filter[aria-pressed="true"] {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--espresso-deep);
  font-weight: 600;
}

.work__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px)  { .work__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .work__grid { grid-template-columns: repeat(3, 1fr); } }

.work-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--espresso-lift);
  text-align: left;
  aspect-ratio: 4 / 3;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.work-card[hidden] { display: none; }

.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.work-card:hover img { transform: scale(1.055); }

.work-card__veil {
  display: block;
  position: absolute;
  inset: 0;
  /* Tuned for real photos, which are often bright where the caption sits */
  background: linear-gradient(to top,
    rgba(28, 25, 23, .96) 0%,
    rgba(28, 25, 23, .88) 24%,
    rgba(28, 25, 23, .52) 52%,
    rgba(28, 25, 23, .10) 82%,
    rgba(28, 25, 23, 0) 100%);
  opacity: 1;
  transition: opacity .4s var(--ease);
}
.work-card:hover .work-card__veil { opacity: 1; }

.work-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.work-card__tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: .35rem;
}
/* Everything inside .work-card is a <span> (a button may only contain
   phrasing content), so block layout has to be set explicitly. */
.work-card__body > span:first-child { display: block; min-width: 0; }
.work-card__title {
  display: block;
  font-size: 1.22rem;
  color: var(--cream);
  line-height: 1.25;
}
.work-card__loc {
  display: block;
  font-size: .84rem;
  color: rgba(245, 240, 230, .62);
  margin-top: .25rem;
}
.work-card__zoom {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(245, 240, 230, .12);
  border: 1px solid rgba(245, 240, 230, .28);
  color: var(--cream);
  transform: translateY(6px);
  opacity: 0;
  transition: all .35s var(--ease);
}
.work-card__zoom svg { width: 16px; height: 16px; }
.work-card:hover .work-card__zoom,
.work-card:focus-visible .work-card__zoom {
  opacity: 1;
  transform: none;
  background: var(--brass);
  border-color: var(--brass);
  color: var(--espresso-deep);
}

.work__note {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--muted-dark);
  font-size: .95rem;
}
.work__note a { color: var(--brass); font-weight: 600; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(20, 17, 16, .95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  width: 100%;
  transform: scale(.97);
  transition: transform .35s var(--ease);
}
.lightbox.is-open .lightbox__figure { transform: none; }

.lightbox__img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--espresso);
}
.lightbox__cap {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .9rem;
  color: var(--cream);
}
.lightbox__cap strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.lightbox__cap span { color: var(--muted-dark); font-size: .9rem; }
.lightbox__count { margin-left: auto; color: var(--muted-dark); font-size: .85rem; font-variant-numeric: tabular-nums; }

.lightbox__btn {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(245, 240, 230, .10);
  border: 1px solid rgba(245, 240, 230, .24);
  color: var(--cream);
  transition: all .25s var(--ease);
}
.lightbox__btn:hover { background: var(--brass); border-color: var(--brass); color: var(--espresso-deep); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__btn--close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__btn--prev { left: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }

/* Before / after comparison ------------------------------------------------
   Two stacked photos; the "before" is clipped from the right by --pos, which a
   range input drives. The range is a real <input>, so keyboard and screen
   readers get it for free. */
.ba {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 900px;
}
.ba__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--espresso-lift);
  --pos: 50%;
  touch-action: pan-y;
}
.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba__tag {
  position: absolute;
  top: 1rem;
  z-index: 3;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 100px;
  background: rgba(28, 25, 23, .72);
  color: var(--cream);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.ba__tag--before { left: 1rem; }
.ba__tag--after  { right: 1rem; background: var(--brass); color: var(--espresso-deep); }

/* Divider line + grab handle */
.ba__handle {
  position: absolute;
  top: 0;
  left: var(--pos);
  width: 2px;
  height: 100%;
  background: var(--cream);
  transform: translateX(-1px);
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(28, 25, 23, .25);
}
.ba__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 3px 14px rgba(28, 25, 23, .4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%233C3431' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* The range sits invisibly over the whole frame and does the actual work */
.ba__range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 100%; }
.ba__range::-moz-range-thumb { width: 46px; height: 100%; border: 0; opacity: 0; }
.ba__range:focus-visible ~ .ba__handle::after { outline: 3px solid var(--brass); outline-offset: 3px; }

.ba__cap {
  margin-top: .95rem;
  font-size: .92rem;
  color: var(--muted-dark);
}
.ba__cap strong { color: var(--cream); font-weight: 600; }

/* --------------------------------------------------------------------------
   9. About + team
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: .85fr 1fr; }
}

.about__media { position: relative; isolation: isolate; }  /* so the offset frame sits above the section bg */
.about__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
/* Brass frame offset behind the photo */
.about__media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--brass);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about__body p + p { margin-top: 1.1rem; }
.about__body p { color: var(--muted); }
.about__lead {
  font-size: 1.18rem !important;
  color: var(--ink) !important;
  font-weight: 500;
  line-height: 1.55;
}

.about__marks {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 560px) { .about__marks { grid-template-columns: repeat(2, 1fr); } }
.mark { display: flex; gap: .9rem; }
.mark__icon {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--espresso);
  color: var(--brass);
}
.mark__icon svg { width: 18px; height: 18px; }
.mark__title { font-family: var(--font-body); font-weight: 600; font-size: .98rem; margin-bottom: .15rem; }
.mark__text { font-size: .89rem; color: var(--muted); line-height: 1.5; }

/* Trade specialists: a second row of compact cards under the owner + crew */
.team__row {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
@media (min-width: 540px) { .team__row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .team__row { grid-template-columns: repeat(4, 1fr); } }

.person--sm .person__body { padding: 1.15rem 1.25rem 1.4rem; gap: .2rem; }
.person--sm .person__name { font-size: 1.18rem; }
.person--sm .person__text { font-size: .87rem; margin-top: .45rem; }

/* Owner + crew */
.team__grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 860px) { .team__grid { grid-template-columns: 320px 1fr; } }

/* People — circular portrait cropped to the face, centred card */
.person {
  background: var(--espresso-lift);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.person__photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--espresso);
  border: 2px solid rgba(192, 161, 107, .45);
  margin-bottom: 1.15rem;
  transition: border-color .3s var(--ease);
}
.person:hover .person__photo { border-color: var(--brass); }

.person__name { font-size: 1.32rem; color: var(--cream); margin-top: .1rem; }
.person__role {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
}
.person__text {
  font-size: .9rem;
  color: var(--muted-dark);
  margin-top: .55rem;
  max-width: 26ch;
}
.person__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.person__links a {
  font-size: .88rem;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transition: color .2s var(--ease);
}
.person__links a:hover { color: var(--brass); }
.person__links svg { width: 15px; height: 15px; color: var(--brass); }

/* Trade specialists: a second row of smaller cards under the owner + crew */
.team__row {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
@media (min-width: 540px) { .team__row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .team__row { grid-template-columns: repeat(4, 1fr); } }

.person--sm { padding: 1.75rem 1.25rem; }
.person--sm .person__photo { width: 104px; height: 104px; margin-bottom: 1rem; }
.person--sm .person__name { font-size: 1.15rem; }
.person--sm .person__text { font-size: .86rem; }

.crew {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line-dark);
}
.crew img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.crew__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 25, 23, .92) 0%, rgba(28, 25, 23, .35) 55%, transparent 100%);
}
.crew__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.crew__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--cream); margin-bottom: .5rem; }
.crew__text { color: rgba(245, 240, 230, .78); font-size: .97rem; max-width: 52ch; }

/* --------------------------------------------------------------------------
   10. Process
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brass);
  opacity: .55;
  margin-bottom: .9rem;
  font-variant-numeric: tabular-nums;
}
.step__title { font-size: 1.28rem; margin-bottom: .55rem; }
.step__text { color: var(--muted); font-size: .96rem; }

/* --------------------------------------------------------------------------
   11. Quote form
   -------------------------------------------------------------------------- */
.quote { position: relative; overflow: hidden; }
.quote__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 940px) { .quote__grid { grid-template-columns: .8fr 1fr; } }

.quote__aside .section-title { color: var(--cream); }

.contact-list { display: grid; gap: 1.4rem; margin-top: 2.25rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item__icon {
  width: 42px; height: 42px;
  flex: none;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: rgba(192, 161, 107, .16);
  border: 1px solid rgba(192, 161, 107, .3);
  color: var(--brass);
}
.contact-item__icon svg { width: 19px; height: 19px; }
.contact-item__label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: .2rem;
}
.contact-item__value { color: var(--cream); font-weight: 500; font-size: 1.02rem; }
.contact-item__value a { transition: color .2s var(--ease); }
.contact-item__value a:hover { color: var(--brass-bright); }
.contact-item__sub { color: var(--muted-dark); font-size: .88rem; margin-top: .15rem; }

/* Card */
.form-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  position: relative;
}
.form-card__title { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-bottom: .5rem; }
.form-card__sub { color: var(--muted); font-size: .96rem; margin-bottom: 1.9rem; }

.field-grid { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .field-grid--2 { grid-template-columns: repeat(2, 1fr); } }

.field { display: flex; flex-direction: column; gap: .45rem; }
.field label {
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.field label .req { color: var(--danger); }
.field .hint { font-weight: 400; color: var(--muted); font-size: .78rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .82rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: .97rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236E635D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  padding-right: 2.5rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass-ink);
  box-shadow: 0 0 0 3px rgba(192, 161, 107, .22);
}
.field input::placeholder, .field textarea::placeholder { color: #A9A09A; }

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--danger); }
.field__error {
  font-size: .8rem;
  color: var(--danger);
  font-weight: 500;
  display: none;
}
.field.is-invalid .field__error { display: block; }

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-foot { margin-top: 1.6rem; display: grid; gap: .9rem; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--brass-ink); font-weight: 600; }

.form-status {
  display: none;
  padding: .95rem 1.15rem;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 500;
  gap: .6rem;
  align-items: flex-start;
  line-height: 1.5;
}
.form-status.is-shown { display: flex; }
.form-status svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.form-status--ok { background: rgba(47, 107, 79, .10); color: var(--ok); border: 1px solid rgba(47, 107, 79, .3); }
.form-status--err { background: rgba(168, 52, 42, .08); color: var(--danger); border: 1px solid rgba(168, 52, 42, .28); }

.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--espresso-deep);
  color: var(--cream);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 720px)  { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.footer .brand__name { font-size: 1.35rem; }
.footer__about { color: var(--muted-dark); font-size: .93rem; margin-top: 1.1rem; max-width: 34ch; }

.footer__title {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.15rem;
}
.footer__list { display: grid; gap: .65rem; }
.footer__list a, .footer__list li { color: var(--muted-dark); font-size: .93rem; }
.footer__list a { transition: color .2s var(--ease); }
.footer__list a:hover { color: var(--cream); }

.footer__bar {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: .84rem;
  color: var(--muted-dark);
}
.footer__bar a:hover { color: var(--brass); }

/* --------------------------------------------------------------------------
   13. Mobile sticky CTA bar
   -------------------------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(42, 36, 34, .97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-dark);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.mobile-cta.is-shown { transform: none; }
.mobile-cta .btn { padding: .8rem 1rem; font-size: .9rem; }
@media (min-width: 760px) { .mobile-cta { display: none; } }
@media (max-width: 759px) { body { padding-bottom: 0; } }

/* --------------------------------------------------------------------------
   14. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   15. Print
   -------------------------------------------------------------------------- */
@media print {
  .header, .drawer, .mobile-cta, .lightbox, .filters, .hero__media { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; page-break-inside: avoid; }
  .section--dark, .footer, .hero { background: #fff !important; color: #000 !important; }
  .hero__title, .section-title, .person__name, .crew__title { color: #000 !important; }
}
