/* =============================================================================
   Rough Cut Construction Co. — landing page
   Design tokens live in :root; everything below composes from them.
   Single layout breakpoint: 860px (per handoff). The extra small-screen
   breakpoints at 560/430px are polish only — they tune density, never layout.
   ============================================================================= */

:root {
  /* ---- Colour ------------------------------------------------------------ */
  --ink:        #0B0B0B;   /* page background, text on orange */
  --ink-raised: #0F0F0F;   /* trust bar, stat cards, about + footer */
  --ink-hover:  #141210;   /* card hover, form card, image wells */
  --ink-warm:   #161310;   /* renovations panel */

  --bone:     #EFE6D9;
  --bone-rgb: 239, 230, 217;

  --orange:    #E2611F;
  --orange-hi: #F5813F;
  --orange-rgb: 226, 97, 31;
  --on-orange: #0B0B0B;

  /* Depth comes from this value ladder, not from shadows. */
  --hairline:       rgba(var(--bone-rgb), 0.16);
  --hairline-soft:  rgba(var(--bone-rgb), 0.14);
  --hairline-faint: rgba(var(--bone-rgb), 0.10);
  --field-border:   rgba(var(--bone-rgb), 0.22);

  --header-scrim: rgba(11, 11, 11, 0.94);

  /* ---- Type -------------------------------------------------------------- */
  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- Space ------------------------------------------------------------- */
  --shell: 1280px;
  --gutter: clamp(18px, 5vw, 28px);
  --gutter-header: clamp(16px, 4vw, 28px);
  --section-y: clamp(64px, 10vw, 110px);
  --header-h: 90px;          /* drives scroll-margin under the sticky header */

  --radius: 2px;             /* the brand reads square and built — no pills */
  --ease: 150ms ease;
}

/* =============================================================================
   Base
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(var(--orange-rgb), 0.24);
}

/* Author `display` declarations outrank the UA sheet's `[hidden] { display: none }`,
   which would leave .drawer and .sent visible while marked hidden. */
[hidden] { display: none !important; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

a { color: var(--orange); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--orange-hi); }

::selection { background: var(--orange); color: var(--ink); }

/* The prototype had no focus styles; production needs them. Orange reads on the
   dark field, bone reads on the orange buttons. */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.btn--primary:focus-visible,
.badge:focus-visible {
  outline-color: var(--bone);
}

/* Anchor targets clear the sticky header instead of hiding under it. */
[id] { scroll-margin-top: var(--header-h); }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 14px 20px;
  background: var(--orange);
  color: var(--on-orange);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.skip-link:focus {
  left: var(--gutter);
  top: 10px;
  color: var(--on-orange);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  /* max() keeps the gutter honest on notched phones in landscape. */
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.accent { color: var(--orange); }

/* Honeypot — off-screen, out of the tab order, invisible to assistive tech. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* =============================================================================
   Buttons
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}

.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { background: var(--orange-hi); color: var(--on-orange); }

.btn--ghost {
  background: transparent;
  border-color: rgba(var(--bone-rgb), 0.4);
  color: var(--bone);
}
.btn--ghost:hover {
  border-color: var(--bone);
  background: rgba(var(--bone-rgb), 0.08);
  color: var(--bone);
}

.btn--nav     { font-size: 14px; letter-spacing: 0.14em; padding: 13px 22px; }
.btn--compact { font-size: 13px; letter-spacing: 0.1em;  padding: 14px 16px; min-height: 46px; white-space: nowrap; }
.btn--lg      { font-size: 16px; letter-spacing: 0.12em; padding: 19px 34px; }
.btn--block   { width: 100%; font-size: 17px; letter-spacing: 0.14em; padding: 20px 28px; min-height: 56px; }

.btn[disabled] { opacity: 0.6; cursor: progress; }

/* =============================================================================
   Header
   ============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-scrim);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline-soft);
}

.site-header__bar {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 14px max(var(--gutter-header), env(safe-area-inset-right)) 14px
              max(var(--gutter-header), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--bone);
  min-width: 0;
}
.brand:hover { color: var(--bone); }

.brand__mark {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius);
}

.brand__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  line-height: 1.05;
  text-transform: uppercase;
  min-width: 0;
}
.brand__name { font-weight: 700; font-size: 19px; letter-spacing: 0.06em; }
.brand__sub {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: rgba(var(--bone-rgb), 0.5);
}

.nav-desktop { display: flex; align-items: center; gap: 34px; }
.nav-desktop__link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
}
.nav-desktop__link:hover { color: var(--orange); }

.nav-mobile { display: none; align-items: center; gap: 10px; }

.hamburger {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(var(--bone-rgb), 0.3);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: border-color var(--ease);
}
.hamburger:hover { border-color: var(--bone); }
.hamburger__bar {
  width: 20px;
  height: 2px;
  background: var(--bone);
  transition: transform var(--ease), opacity var(--ease);
}
/* Bars fold into an X while the drawer is open. */
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--hairline-soft);
  background: var(--ink-raised);
  padding: 8px max(var(--gutter-header), env(safe-area-inset-right)) 20px
              max(var(--gutter-header), env(safe-area-inset-left));
}
.drawer__link {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline-faint);
}
.drawer__link:hover { color: var(--orange); }
.drawer__link--cta {
  font-weight: 600;
  color: var(--orange);
  border-bottom: 0;
}

/* =============================================================================
   Hero
   ============================================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 86vh;
  min-height: 86svh;   /* mobile URL bar shouldn't shove the CTA off-screen */
  overflow: hidden;
  background: var(--ink);
}

.hero > picture {
  position: absolute;
  inset: 0;
  display: block;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 11, 0.72) 0%,
    rgba(11, 11, 11, 0.45) 38%,
    rgba(11, 11, 11, 0.94) 100%
  );
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(96px, 16vw, 120px)
           max(var(--gutter), env(safe-area-inset-right))
           clamp(52px, 8vw, 76px)
           max(var(--gutter), env(safe-area-inset-left));
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 8.4vw, 138px);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  max-width: 15ch;
  text-wrap: balance;
}

.hero__lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: rgba(var(--bone-rgb), 0.82);
  max-width: 60ch;
  margin-top: 32px;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* =============================================================================
   Eyebrows + section headers
   ============================================================================= */

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow--tight { font-weight: 600; letter-spacing: 0.26em; }

.eyebrow--hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  color: rgba(var(--bone-rgb), 0.78);
}
.eyebrow__rule {
  width: 44px;
  height: 3px;
  flex-shrink: 0;
  background: var(--orange);
  transform: skewY(-4deg);
}

.section { padding-block: var(--section-y) 30px; }
.section--tight { padding-block: clamp(56px, 8vw, 80px) 30px; }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 56px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-top: 14px;
}
.section__aside {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(var(--bone-rgb), 0.6);
  max-width: 38ch;
  text-wrap: pretty;
}

.link-arrow {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

/* =============================================================================
   Trust bar
   ============================================================================= */

.trust {
  background: var(--ink-raised);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 22px;
  padding-block: 26px;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--bone-rgb), 0.85);
}
.trust__dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: var(--orange);
}

/* =============================================================================
   Stat cards
   ============================================================================= */

.stats { padding-block: clamp(52px, 8vw, 86px) 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--ink-raised);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--orange);
  padding: clamp(26px, 3vw, 34px) clamp(22px, 2.5vw, 30px) clamp(28px, 3vw, 34px);
  transition: background-color var(--ease);
}
.stat:hover { background: var(--ink-hover); }

.stat__number {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 6vw, 76px);
  line-height: 0.84;
  letter-spacing: -0.02em;
}
.stat__plus {
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1;
  color: var(--orange);
  padding-top: 6px;
}
.stat__label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.stat__desc {
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(var(--bone-rgb), 0.5);
}

/* =============================================================================
   Services
   ============================================================================= */

/* Dividers are drawn per card with box-shadow and clipped by the container's
   overflow. Do NOT switch to `gap: 1px` over a lit container background — that
   leaves a visible grey block in empty grid cells at some widths. */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  background: var(--ink);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.service {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--ink);
  padding: clamp(32px, 5vw, 44px) clamp(22px, 4vw, 34px) clamp(36px, 5vw, 48px);
  box-shadow: 1px 0 0 var(--hairline), 0 1px 0 var(--hairline);
  transition: background-color var(--ease);
}
.service:hover { background: var(--ink-hover); }

.service__index {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--orange);
}
.service__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
}
.service__body {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(var(--bone-rgb), 0.66);
}

/* ---- Renovations panel --------------------------------------------------- */

.renos {
  margin-top: 20px;
  background: var(--ink-warm);
  border: 1px solid rgba(var(--orange-rgb), 0.5);
  border-left: 3px solid var(--orange);
  padding: clamp(32px, 5vw, 46px) clamp(22px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.renos__text { display: flex; flex-direction: column; gap: 14px; }
.renos__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.02;
  text-transform: uppercase;
}
.renos__body {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(var(--bone-rgb), 0.7);
  max-width: 52ch;
  text-wrap: pretty;
}
.renos__cta { justify-self: start; padding-inline: 32px; white-space: nowrap; }

/* =============================================================================
   Gallery + before/after
   ============================================================================= */

.gallery,
.ba {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}

.shot { min-width: 0; }
.shot--wide { grid-column: span 2; }

.shot__frame {
  position: relative;
  overflow: hidden;
  background: var(--ink-hover);
}
.shot__frame--16x9 { aspect-ratio: 16 / 9; }
.shot__frame--4x5  { aspect-ratio: 4 / 5; }
.shot__frame--4x3  { aspect-ratio: 4 / 3; }
.shot__frame img { width: 100%; height: 100%; object-fit: cover; }

.shot__cap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--hairline);
  margin-top: 14px;
  padding-top: 14px;
}
.shot__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.shot__tag {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--bone-rgb), 0.45);
  white-space: nowrap;
}

.ba__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 34px;
}
.ba__img--before { filter: saturate(0.85); }
.ba__cap {
  padding-top: 14px;
  font-size: 16px;
  color: rgba(var(--bone-rgb), 0.6);
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 8px 14px;
}
.badge--before { background: rgba(11, 11, 11, 0.85); color: var(--bone); }
.badge--after  { background: var(--orange); color: var(--on-orange); }

/* =============================================================================
   About
   ============================================================================= */

.about {
  border-top: 1px solid var(--hairline-soft);
  margin-top: 90px;
  background: var(--ink-raised);
}
.about__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
  padding-block: clamp(64px, 10vw, 100px);
}
.about__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-top: 14px;
}
.about__lede {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(var(--bone-rgb), 0.82);
  margin-top: 28px;
  text-wrap: pretty;
}
.about__body {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(var(--bone-rgb), 0.62);
  margin-top: 20px;
  text-wrap: pretty;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 28px;
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--hairline);
}
.facts__label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.facts__value {
  font-size: 17px;
  color: rgba(var(--bone-rgb), 0.8);
  margin-top: 8px;
  margin-left: 0;
}

.about__frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-hover);
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================================
   Quote
   ============================================================================= */

.quote { border-top: 1px solid var(--hairline-soft); }
.quote__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: clamp(40px, 6vw, 64px);
  padding-block: clamp(64px, 10vw, 100px) clamp(72px, 10vw, 110px);
}

.quote__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 0.9;
  text-transform: uppercase;
  margin-top: 14px;
}
.quote__body {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(var(--bone-rgb), 0.7);
  max-width: 44ch;
  margin-top: 26px;
  text-wrap: pretty;
}

.quote__contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 40px;
}
.quote__contact-label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--bone-rgb), 0.45);
}
.quote__phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--bone);
  margin-top: 6px;
}
.quote__phone:hover { color: var(--orange); }
.quote__area {
  font-size: 18px;
  color: rgba(var(--bone-rgb), 0.8);
  margin-top: 6px;
}

/* ---- Form ---------------------------------------------------------------- */

.card {
  background: var(--ink-hover);
  border: 1px solid var(--hairline);
  padding: clamp(26px, 5vw, 40px) clamp(20px, 4vw, 34px);
}

.form { display: flex; flex-direction: column; gap: 20px; }
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--bone-rgb), 0.55);
}

.field__input {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;              /* 16px min keeps iOS from zooming on focus */
  padding: 14px;
  min-height: 48px;
  outline: none;
  transition: border-color var(--ease);
}
.field__input::placeholder { color: rgba(var(--bone-rgb), 0.35); }
.field__input:focus { border-color: var(--orange); }
.field__input:focus-visible { outline: none; border-color: var(--orange); }

.field__textarea { resize: vertical; line-height: 1.5; }

/* Native selects render with the platform's own light chrome on mobile, so the
   arrow is drawn here instead. */
.field__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23EFE6D9' stroke-opacity='.7' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field__select option { background: var(--ink); color: var(--bone); }

.field__input[aria-invalid="true"] { border-color: var(--orange); }
.field__error,
.form__error {
  font-size: 14px;
  line-height: 1.45;
  color: var(--orange-hi);
}
.form__error {
  border-left: 3px solid var(--orange);
  padding: 10px 0 10px 14px;
  background: rgba(var(--orange-rgb), 0.08);
}

.form__fine {
  font-size: 14px;
  color: rgba(var(--bone-rgb), 0.4);
}

.sent {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 0;
}
.sent__rule { width: 44px; height: 4px; background: var(--orange); }
.sent__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
}
.sent__body {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(var(--bone-rgb), 0.7);
}

/* =============================================================================
   Footer
   ============================================================================= */

.footer {
  border-top: 1px solid var(--hairline-soft);
  background: var(--ink-raised);
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 40px;
  align-items: start;
  padding-block: clamp(44px, 7vw, 56px) 40px;
}

.brand--footer .brand__mark { width: 56px; height: 56px; }
.brand--footer .brand__name { font-size: 20px; }

.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 16px;
  color: rgba(var(--bone-rgb), 0.7);
  align-self: flex-start;
}
.footer__links a:hover { color: var(--orange); }
.footer__links--cta { color: var(--orange); }
.footer__links--cta:hover { color: var(--orange-hi); }

.footer__contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__contact-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--bone-rgb), 0.4);
}
.footer__phone { font-size: 17px; color: rgba(var(--bone-rgb), 0.8); }
.footer__phone:hover { color: var(--orange); }
.footer__area { font-size: 16px; color: rgba(var(--bone-rgb), 0.55); }

/* Right-aligned only once the footer grid genuinely fits four tracks
   (4×240 + 3×40 gap = 1080px of content). Between 860px and there it wraps to a
   second row, where `justify-self: end` would strand it mid-row instead of
   lining it up under the brand. */
.footer__cta {
  justify-self: start;
  font-size: 15px;
  letter-spacing: 0.14em;
  padding: 18px 28px;
}
@media (min-width: 1140px) {
  .footer__cta { justify-self: end; }
}

/* ---- Powered by BH Works -------------------------------------------------- */

.powered {
  display: flex;
  justify-content: center;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--hairline-faint);
}

/* The link wraps only the label and logo — making the whole strip clickable
   would turn a lot of dead footer space into an accidental exit. */
.powered__link {
  display: flex;
  align-items: center;
  gap: 18px;
  color: inherit;
}
.powered__label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--bone-rgb), 0.45);
  transition: color var(--ease);
}
.powered__link:hover .powered__label { color: rgba(var(--bone-rgb), 0.8); }
/* Still larger than a typical credit badge so the sphere mark reads clearly. */
.powered__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--hairline-faint);
  padding-block: 22px 44px;
  padding-bottom: max(44px, calc(22px + env(safe-area-inset-bottom)));
}
.footer__copy { font-size: 14px; color: rgba(var(--bone-rgb), 0.35); }
.footer__tag {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--bone-rgb), 0.35);
}

/* =============================================================================
   Responsive — 860px is the one structural breakpoint
   ============================================================================= */

@media (max-width: 859.98px) {
  :root { --header-h: 82px; }

  .nav-desktop { display: none; }
  .nav-mobile  { display: flex; }
  .drawer:not([hidden]) { display: flex; }

  /* Wide figures stop spanning once the grid drops below three tracks. */
  .shot--wide { grid-column: auto; }
}

@media (min-width: 860px) {
  /* Belt and braces: the drawer can never leak onto desktop. */
  .drawer { display: none !important; }
}

/* ---- Mobile polish -------------------------------------------------------- */

@media (max-width: 560px) {
  .site-header__bar { gap: 12px; }

  .brand__mark { width: 46px; height: 46px; }
  .brand__name { font-size: 17px; }
  .brand__sub  { font-size: 10px; letter-spacing: 0.22em; }

  .hero { min-height: 78svh; }
  .hero__lede { margin-top: 24px; }
  .hero__actions { margin-top: 32px; gap: 12px; }
  /* Full-bleed CTAs beat two cramped half-width ones on a phone. */
  .hero__actions .btn { flex: 1 1 100%; }

  .section__head { margin-bottom: 40px; }
  .about { margin-top: 60px; }
  .quote__title { margin-top: 12px; }
  .quote__contact { margin-top: 32px; }

  .sent__title { font-size: 30px; }

  .footer__top { gap: 32px; }
  .powered { gap: 14px; padding-block: 22px; }
  .powered__logo { width: 60px; height: 60px; }
}

/* Below ~430px the header row is the tightest thing on the page: logo, wordmark,
   CTA and hamburger all have to fit inside ~360px of content width. */
@media (max-width: 430px) {
  .site-header__bar { gap: 10px; padding-block: 10px; }
  .brand { gap: 9px; }
  .brand__mark { width: 42px; height: 42px; }
  .brand__name { font-size: 15px; letter-spacing: 0.04em; }
  .brand__sub  { font-size: 9px; letter-spacing: 0.16em; }

  .nav-mobile { gap: 8px; }
  .btn--compact { font-size: 12px; letter-spacing: 0.06em; padding: 12px 12px; }
  .hamburger { width: 46px; height: 46px; }

  /* clamp()'s 52px floor is a shade wide for "BUILT RIGHT." at 360px. */
  .hero__title { font-size: 46px; }
  .drawer__link { font-size: 17px; padding: 16px 0; }
}

@media (max-width: 360px) {
  .brand__sub { display: none; }
  .hero__title { font-size: 42px; }
}

/* Coarse pointers get no hover repaint, but they do need honest tap targets. */
@media (hover: none) {
  .stat:hover,
  .service:hover { background: var(--ink-raised); }
  .service:hover { background: var(--ink); }

  .footer__links a,
  .drawer__link,
  .nav-desktop__link,
  .link-arrow,
  .footer__phone,
  .quote__phone { min-height: 44px; display: flex; align-items: center; }

  /* The shrunken logo drives the lockup's height on small screens. */
  .brand { min-height: 44px; }
}

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