/* ============================================================
   Helix Precision Construction
   UFT Studios
   Palette is taken straight off the logo: black ground, brushed
   chrome for the mark, and a cold steel blue doing the job that
   orange does on the reference site.
   ============================================================ */

:root {
  --bg:        #0a0b0d;
  --bg-alt:    #0e1014;
  --panel:     #121419;
  --panel-2:   #161920;
  --line:      #22252d;
  --line-soft: #1a1d23;

  --text:  #e9ebef;
  --muted: #9aa1ac;
  --dim:   #6d737e;

  --steel:      #86aed0;
  --steel-mid:  #5f87a8;
  --steel-deep: #3d5f7d;
  --glow:       rgba(96, 148, 190, 0.22);

  --chrome: linear-gradient(172deg,
      #ffffff 0%, #d6dce3 16%, #939ba6 34%,
      #f4f7fa 50%, #8f98a3 64%, #dae0e7 84%, #ffffff 100%);

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 56px);

  --display: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  /* iOS inflates text in landscape without this. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* The grey flash on every tap looks like a bug on a dark site. Focus and
   active states below do the job properly instead. */
a, button, input, select, textarea, label {
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

::selection { background: var(--steel-deep); color: #fff; }

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }

/* ------------------------------------------------ splash screen */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse 80% 60% at 50% 45%, #14171d 0%, #08090b 70%);
  transition: opacity .7s var(--ease), visibility .7s;
}
.splash.is-done { opacity: 0; visibility: hidden; }
body.splash-skip .splash { display: none; }

.splash__stage { text-align: center; padding-inline: 24px; }

.splash__mark {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 15vw, 150px);
  letter-spacing: .1em;
  line-height: 1;
  text-indent: .1em;
}
.splash__ghost {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(196, 206, 216, .5);
  opacity: 0;
  animation: ghostIn .7s var(--ease) .15s forwards;
}
.splash__solid {
  position: absolute;
  inset: 0;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  clip-path: inset(0 100% 0 0);
  animation: solidFill 1s var(--ease) .75s forwards;
}
/* the sheen that travels across the metal once it has filled in */
.splash__mark::after {
  content: '';
  position: absolute;
  inset: -10% -30%;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 1.1s var(--ease) 1.5s forwards;
  pointer-events: none;
}
.splash__sub {
  margin-top: 14px;
  font-size: clamp(11px, 2.2vw, 15px);
  letter-spacing: .58em;
  text-indent: .58em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: riseIn .7s var(--ease) 1.35s forwards;
}
.splash__rule {
  margin: 26px auto 0;
  width: min(260px, 60vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.splash__rule i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--steel), transparent);
  animation: ruleRun 1.5s var(--ease) 1.1s forwards;
}

@keyframes ghostIn  { to { opacity: 1; } }
@keyframes solidFill { to { clip-path: inset(0 0 0 0); } }
@keyframes sheen     { to { transform: translateX(120%); } }
@keyframes riseIn    { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ruleRun   { to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .splash__ghost, .splash__solid, .splash__sub, .splash__rule i, .splash__mark::after { animation-duration: .01ms; animation-delay: 0s; }
}

/* ------------------------------------------------ top bar / nav */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
  /* viewport-fit=cover means content goes under the notch unless we say
     otherwise. max() keeps the normal padding on phones without one. */
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  padding-top: max(14px, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(10,11,13,.92), rgba(10,11,13,.55) 70%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.topbar.is-stuck {
  background: rgba(10,11,13,.94);
  border-bottom-color: var(--line-soft);
}
.brand__img {
  height: 44px; width: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.5));
}

/* right-side menu button, per Emily's reference site */
.navtoggle {
  width: 52px; height: 52px;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 6px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(18,20,25,.8);
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.navtoggle:hover { border-color: var(--steel-deep); background: rgba(24,28,35,.9); }
.navtoggle span {
  display: block; height: 2px; width: 24px;
  background: var(--text); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s, width .3s;
}
.navtoggle span:nth-child(2) { width: 17px; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); width: 24px; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 88vw);
  z-index: 130;
  background: linear-gradient(200deg, #14171d, #0a0b0d 65%);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  overflow-y: auto;
  padding: clamp(84px, 12vh, 120px) clamp(26px, 5vw, 48px) 40px;
}
.drawer.is-open { transform: none; }
.drawer__eyebrow {
  margin: 0 0 22px;
  font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--dim);
}
.drawer__list { list-style: none; margin: 0 0 40px; padding: 0; }
.drawer__list li { border-bottom: 1px solid var(--line-soft); }
.drawer__list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 4px;
  font-family: var(--display); font-size: clamp(24px, 5vw, 32px); font-weight: 600;
  color: var(--text);
  transition: color .25s, padding-left .3s var(--ease);
}
.drawer__list em {
  font-style: normal; font-family: var(--body);
  font-size: 12px; letter-spacing: .2em; color: var(--steel-mid);
  transition: color .25s;
}
.drawer__list a:hover { color: var(--steel); padding-left: 14px; }
.drawer__list a:hover em { color: var(--steel); }

.drawer__cta {
  display: block; text-align: center;
  padding: 15px 20px; border-radius: 10px;
  background: linear-gradient(180deg, var(--steel-mid), var(--steel-deep));
  color: #fff; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 10px 30px -12px var(--steel-deep);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.drawer__cta:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px var(--steel-mid); }
.drawer__meta { display: grid; gap: 8px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.drawer__meta a:hover { color: var(--steel); }

.scrim {
  position: fixed; inset: 0; z-index: 125;
  background: rgba(5,6,8,.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .4s;
}
.scrim.is-open { opacity: 1; }

/* ------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent; border-radius: 10px;
  font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: .01em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn--primary {
  background: linear-gradient(180deg, var(--steel-mid), var(--steel-deep));
  color: #fff;
  box-shadow: 0 14px 34px -14px var(--steel-deep), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -16px var(--steel-mid), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--primary:disabled { opacity: .55; transform: none; cursor: progress; }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(18,20,25,.6); }
.btn--ghost:hover { border-color: var(--steel-deep); background: rgba(24,28,35,.85); transform: translateY(-2px); }

.pill {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18,20,25,.7);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* ---------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero__glow {
  position: absolute;
  top: -16%; left: 50%; transform: translateX(-50%);
  width: min(1200px, 130vw); aspect-ratio: 1.5;
  background: radial-gradient(ellipse at center, var(--glow) 0%, rgba(96,148,190,.07) 38%, transparent 68%);
  pointer-events: none;
}
/* The mark ghosted into the glow. Screen blend drops the logo's black plate,
   so only the chrome catches the light. Kept faint on purpose - it should read
   as the headline sitting on brushed metal, not as a second logo. */
.hero__holo {
  position: absolute;
  top: 7%;
  right: 3%;
  width: min(620px, 54vw);
  mix-blend-mode: screen;
  opacity: .13;
  filter: saturate(1.5) contrast(1.08);
  pointer-events: none;
  animation: holo 16s ease-in-out infinite;
  /* soften the lower-left corner, which is the only part that comes near the
     headline - the whole mark reads, but never competes with the words */
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 72% 30%, #000 42%, rgba(0,0,0,.25) 86%);
  mask-image: radial-gradient(ellipse 100% 100% at 72% 30%, #000 42%, rgba(0,0,0,.25) 86%);
}
.hero__holo img { width: 100%; height: auto; }

@keyframes holo {
  0%, 100% { opacity: .1;  filter: saturate(1.4) contrast(1.05) hue-rotate(0deg); }
  50%      { opacity: .17; filter: saturate(1.8) contrast(1.14) hue-rotate(-16deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__holo { animation: none; opacity: .09; }
}

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(140,160,180,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,160,180,.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__title {
  margin: 22px 0 0;
  /* sized so "Remodels and new builds" holds one line on desktop rather than
     stranding a word by itself */
  font-size: clamp(32px, 5.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero__title .accent {
  background: linear-gradient(100deg, var(--steel) 10%, #b9d2e6 55%, var(--steel-mid) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede {
  max-width: 60ch;
  margin: 26px 0 0;
  font-size: clamp(16px, 2vw, 18.5px);
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__stats, .about__stats {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  margin: 66px 0 0; padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}
.hero__stats dt, .about__stats dt { font-family: var(--display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--steel-mid); }
.hero__stats dd, .about__stats dd { margin: 7px 0 0; color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------ sections */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.section__lede { max-width: 58ch; margin: -14px 0 52px; color: var(--muted); font-size: 17px; }

/* oversized outlined word behind the heading - the reference site's move */
.ghosthead { position: relative; margin-bottom: 34px; }
.ghosthead__back {
  position: absolute;
  left: -0.04em; bottom: 0.06em;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(66px, 13vw, 168px);
  line-height: .78; letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(154, 172, 190, .20);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.ghosthead__front {
  position: relative;
  font-size: clamp(30px, 5.2vw, 52px);
  padding-top: clamp(22px, 4vw, 44px);
}

/* --------------------------------------------------- service cards */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr)); }
.card {
  position: relative;
  padding: clamp(28px, 3.4vw, 40px);
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .35s, transform .35s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(520px 200px at 12% -10%, rgba(96,148,190,.14), transparent 70%);
  opacity: 0; transition: opacity .45s;
  pointer-events: none;
}
.card:hover { border-color: var(--steel-deep); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card__num { position: relative; margin: 0 0 14px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--steel); }
.card__title { position: relative; font-size: clamp(21px, 2.6vw, 26px); margin-bottom: 14px; }
.card__body { position: relative; color: var(--muted); }
.card__list { position: relative; list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; }
.card__list li { padding-left: 22px; position: relative; color: var(--muted); font-size: 14.5px; }
.card__list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 9px; height: 1px; background: var(--steel-mid);
}

/* ------------------------------------------------------- projects */
.projects { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.project {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  transition: border-color .35s, transform .35s var(--ease);
}
.project:hover { border-color: var(--steel-deep); transform: translateY(-4px); }
.project__figure {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #15181e, #0c0e12);
  overflow: hidden;
}
.project__figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project:hover .project__figure img { transform: scale(1.05); }
.project__count,
.project__view {
  position: absolute; right: 12px; bottom: 12px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(8,10,13,.78); border: 1px solid var(--line);
  font-family: inherit;
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
/* It used to be a label that looked clickable and was not. Now it opens
   the photos, so it has to behave like the button it appears to be. */
.project__view { cursor: pointer; z-index: 2; transition: background .25s, color .25s, border-color .25s; }
.project__view:hover, .project__view:focus-visible { background: var(--steel-deep); color: #fff; border-color: var(--steel); }
.project__view--top { top: 12px; bottom: auto; }
.project__body { padding: 24px 24px 28px; }
.project__meta { margin: 0 0 9px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel-mid); }
.project__title { font-size: 21px; margin-bottom: 10px; }
.project__blurb { margin: 0; color: var(--muted); font-size: 15px; }

/* placeholder slot shown until Emily's real photos land */
.project--empty { border-style: dashed; border-color: var(--line); background: transparent; }
.project--empty:hover { transform: none; border-color: var(--line); }
.project--empty .project__figure {
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #0d0f13 0 12px, #101319 12px 24px);
}
.placeholder__mark { text-align: center; padding: 20px; }
.placeholder__icon {
  width: 42px; height: 42px; margin: 0 auto 12px;
  border: 1px solid var(--line); border-radius: 9px;
  display: grid; place-items: center; color: var(--dim);
}
.placeholder__text { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }

/* ---------------------------------------------------------- about */
.about { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
.about__lead { font-family: var(--display); font-size: clamp(20px, 2.8vw, 27px); font-weight: 600; line-height: 1.3; color: var(--text); margin-bottom: 22px; }
.about__copy p { color: var(--muted); max-width: 62ch; }
.about__side { padding: clamp(24px, 3vw, 32px); background: linear-gradient(170deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 16px; }
.about__sidetitle { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); margin-bottom: 20px; }
.certs { display: grid; gap: 14px; }
.cert { padding: 15px 0; border-top: 1px solid var(--line-soft); }
.cert:first-child { border-top: 0; padding-top: 0; }
.cert__label { font-weight: 600; font-size: 15px; }
.cert__meta { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.cert__number { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 13px; color: var(--steel); letter-spacing: .04em; }
.footer__certs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 18px; }
.footer__cert { display: block; text-align: center; width: min(220px, 100%); color: var(--muted); font-size: 12.5px; line-height: 1.35; text-decoration: none; }
.footer__cert img { display: block; width: 100%; height: auto; border: 1px solid var(--line-soft); border-radius: 6px; margin-bottom: 6px; }
.certs__empty { font-size: 14px; color: var(--dim); font-style: italic; }

/* --------------------------------------------------- testimonials */
.quotes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.quote {
  padding: clamp(26px, 3vw, 34px);
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 16px;
  display: flex; flex-direction: column;
}
.quote__mark { font-family: var(--display); font-size: 46px; line-height: .8; color: var(--steel-deep); margin-bottom: 12px; }
.quote__text { color: var(--text); font-size: 16.5px; line-height: 1.7; margin: 0 0 20px; flex: 1; }
.quote__by { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.quote__name { font-weight: 600; font-size: 15px; }
.quote__role { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* -------------------------------------------------------- contact */
/* Both sides are panels, the way the two service cards are. With only the
   form carded, the details floated loose over the backdrop mark and the
   section read as one finished half next to an unfinished one. */
.contact { display: grid; gap: clamp(22px, 3vw, 32px); grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: stretch; }
.contact__aside {
  padding: clamp(26px, 3.4vw, 40px);
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact__lede { font-size: 17px; color: var(--muted); max-width: 40ch; }
.contact__details { margin: 34px 0 0; display: grid; gap: 20px; }
.contact__details dt { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel-mid); }
.contact__details dd { margin: 6px 0 0; font-size: 16px; color: var(--text); overflow-wrap: anywhere; }
.contact__details a { border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.contact__details a:hover { color: var(--steel); border-bottom-color: var(--steel-deep); }

.form {
  padding: clamp(26px, 3.4vw, 40px);
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 18px;
}
.form__row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.field { display: block; margin-bottom: 18px; }
.field__label { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.field__label i { color: var(--steel); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  background: #0b0d11;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--body);
  /* 16px exactly: anything smaller and iOS Safari zooms the page in when the
     field is focused, and does not zoom back out afterwards. */
  font-size: 16px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--steel-mid);
  background: #0d1015;
  box-shadow: 0 0 0 3px rgba(96,148,190,.14);
}
.field input::placeholder, .field textarea::placeholder { color: #565c66; }
.field.has-error input, .field.has-error textarea { border-color: #c4645c; }
.field__error { display: block; margin-top: 7px; font-size: 13px; color: #e08880; min-height: 0; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.form__note { margin: 0; font-size: 13.5px; color: var(--dim); }
.form__status {
  margin-top: 22px; padding: 16px 18px;
  border-radius: 10px; font-size: 15px;
  border: 1px solid var(--line);
}
.form__status.is-ok { border-color: rgba(120,180,140,.4); background: rgba(70,130,95,.12); color: #b8ddc4; }
.form__status.is-bad { border-color: rgba(196,100,92,.45); background: rgba(150,70,64,.12); color: #ecb0aa; }

/* --------------------------------------------------------- footer */
.footer { background: #07080a; border-top: 1px solid var(--line-soft); }
.footer__inner { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); padding-block: clamp(50px, 7vw, 76px); }
.footer__logo { height: 46px; width: auto; margin-bottom: 20px; mix-blend-mode: screen; }
.footer__blurb { color: var(--muted); font-size: 14.5px; max-width: 36ch; margin: 0; }
.footer h4 { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--steel-mid); margin-bottom: 18px; }
.footer__nav, .footer__contact { display: grid; gap: 11px; align-content: start; font-size: 14.5px; color: var(--muted); }
.footer__nav a, .footer__contact a { transition: color .25s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--steel); }
.footer__base { border-top: 1px solid var(--line-soft); }
.footer__baseinner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; font-size: 13px; color: var(--dim); }
.footer__by {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.footer__by:hover { color: var(--steel); border-bottom-color: var(--steel-deep); }

/* --------------------------------------------- scroll-in reveals */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------------------------------- responsive */
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero { min-height: auto; padding: 118px 0 72px; }
  .footer__inner { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  /* at phone width the ghost word crowds the real heading - lift it clear */
  .hero__holo { top: 5%; right: 4%; width: 78vw; opacity: .1; }
  .ghosthead__back { font-size: 58px; bottom: .42em; -webkit-text-stroke-color: rgba(154, 172, 190, .13); }
  .ghosthead__front { padding-top: 34px; }
}

/* ============================================================
   CENTERED LAYOUT
   Kept as one block so it can be lifted out whole if we go back
   to left-aligned. Long body copy and form fields stay left so
   the eye still has a margin to return to - everything that
   carries the design is centred.
   ============================================================ */

/* ---- hero */
.hero__inner { text-align: center; }
.hero__lede { margin-inline: auto; }
.hero__actions { justify-content: center; }
.hero__stats, .about__stats { text-align: center; }

/* the mark moves behind the centred headline, higher and softer */
.hero__holo {
  top: 1%;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 86vw);
  opacity: .1;
  -webkit-mask-image: linear-gradient(#000 64%, rgba(0,0,0,.5) 88%, transparent 100%);
  mask-image: linear-gradient(#000 64%, rgba(0,0,0,.5) 88%, transparent 100%);
}
@keyframes holo {
  0%, 100% { opacity: .1;  filter: saturate(1.4) contrast(1.05) hue-rotate(0deg); }
  50%      { opacity: .17; filter: saturate(1.8) contrast(1.14) hue-rotate(-16deg); }
}

/* ---- section headings */
.ghosthead { text-align: center; }
.ghosthead__back { left: 50%; transform: translateX(-50%); }
.section__lede { margin-inline: auto; text-align: center; }

/* ---- service cards */
.card { text-align: center; }
.card__list { justify-items: center; }
.card__list li { padding-left: 0; }
.card__list li::before { display: none; }

/* ---- projects */
.project__body { text-align: center; }

/* ---- testimonials */
.quote { text-align: center; }
.quote__mark { text-align: center; }

/* ---- about: headings centred, paragraphs centred but held to a
   readable measure so they never sprawl across the full width */
.about { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.about__copy { text-align: center; }
.about__copy p { margin-inline: auto; }
.about__side { text-align: center; }
.cert__number { display: block; }

/* ---- contact */
.contact__aside { text-align: center; }
.contact__lede { margin-inline: auto; }
.contact__details { text-align: center; }
.form .field__label { text-align: center; }
.form__actions { justify-content: center; }
.form__status { text-align: center; }

/* ---- footer */
.footer__inner { text-align: center; }
.footer__blurb { margin-inline: auto; }
.footer__logo { margin-inline: auto; }
.footer__nav, .footer__contact { justify-items: center; }
.footer__baseinner { justify-content: center; text-align: center; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
}

/* ---- centred layout: grids must centre their last/partial row too.
   With auto-fill + 1fr a single project card sits hard left with dead space
   beside it, which looks like a bug rather than a choice. */
.projects,
.quotes {
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 370px));
  justify-content: center;
}

/* ---- About reads better as one centred column than as copy centred inside
   a left-hand column with the licensing box stranded beside it. */
.about {
  grid-template-columns: minmax(0, 1fr);
  max-width: 780px;
  margin-inline: auto;
}
.about__copy p { max-width: 68ch; }
.about__side { max-width: 560px; margin-inline: auto; width: 100%; }

/* ============================================================
   PROJECT SLIDER
   Native horizontal scroll with snap points. Touch and trackpad
   swiping work with no JS at all; the arrows are an addition,
   not the only way through.
   ============================================================ */
.slider { position: relative; }
.slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding-block: 4px;
  justify-content: start;
  /* hide the scrollbar but keep the scrolling */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; }
.slider__track:focus-visible { outline: 2px solid var(--steel); outline-offset: 6px; border-radius: 16px; }
/* when everything fits, centre it rather than leaving it hanging left */
.slider__track.is-static { justify-content: center; }

.slider__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(14,16,20,.9);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .25s, border-color .25s, opacity .25s, transform .25s var(--ease);
}
.slider__nav:hover:not(:disabled) { background: var(--steel-deep); border-color: var(--steel-mid); transform: scale(1.06); }
.slider__nav:disabled { opacity: .25; cursor: default; }
.slider__nav--prev { left: -10px; }
.slider__nav--next { right: -10px; }

.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.slider__dot {
  width: 28px; height: 4px;
  border: 0; border-radius: 99px; padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background .25s, width .25s var(--ease);
}
.slider__dot.is-on { background: var(--steel); width: 44px; }

@media (max-width: 760px) {
  .slider__nav { display: none; }   /* swipe is the natural gesture here */
  .slider__track { grid-auto-columns: minmax(250px, 84vw); }
}

/* ============================================================
   CAREERS
   ============================================================ */
.jobs { display: grid; gap: 18px; max-width: 760px; margin-inline: auto; }
.job {
  padding: clamp(24px, 3vw, 32px);
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  transition: border-color .3s;
}
.job:hover { border-color: var(--steel-deep); }
.job__title { font-size: clamp(20px, 2.6vw, 25px); }
.job__meta {
  margin: 9px 0 0;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-mid);
}
.job__body { margin: 18px 0 0; color: var(--muted); white-space: pre-wrap; }
.btn--job { margin-top: 22px; }

/* Florida requires a contractor's licence number on advertising, which
   includes the website. Hardcoded in the footer rather than left deletable
   from the admin panel, so it cannot be removed by accident. */
.footer__licence {
  margin: 14px 0 0;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--dim);
}
.footer__licence span {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color: var(--steel-mid);
  letter-spacing: .06em;
}
/* Straight through to the state's own licensee search. DBPR has no stable
   permalink per licence, so this opens the official lookup and the number
   above is there to paste in. Homeowners genuinely check this, and an
   unlicensed competitor cannot copy it. */
.footer__verify {
  margin-left: 10px;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel-mid);
  border-bottom: 1px solid rgba(111,142,168,.35);
  padding-bottom: 1px;
  white-space: nowrap;
}
.footer__verify:hover, .footer__verify:focus-visible { color: var(--text); border-bottom-color: currentColor; }
.footer__verify span { font-family: inherit; letter-spacing: inherit; }

/* The number is click-to-copy, so it is a button, but it has to read as the
   plain mono number it was before. */
.footer__licnum {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: inherit;
  color: var(--steel-mid);
  letter-spacing: .06em;
  cursor: pointer;
  border-bottom: 1px dotted rgba(111,142,168,.4);
}
.footer__licnum:hover, .footer__licnum:focus-visible { color: var(--text); border-bottom-style: solid; }

.footer__copied {
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--dim);
  max-width: 44ch;
}
.footer__copied.is-ok { color: var(--steel-mid); }

/* ============================================================
   THE MARK AS A PAGE BACKDROP
   Dominant at the top of the page, drifting down to sit centred
   behind everything as you scroll.

   It is FIXED to the viewport, so it has to be able to show
   through the page. Two things that blocked it:
     - the alternating section bands had solid backgrounds
     - the footer had a solid background
   Both are translucent now. Visually the same banding, but the
   mark reads through the whole page instead of popping in and
   out between sections.
   ============================================================ */
.hero__holo {
  position: fixed;
  z-index: 0;
  top: 50%;
  left: 50%;
  right: auto;
  width: min(1000px, 94vw);
  transform: translate(-50%, -50%) translateY(-30vh) scale(1);
  opacity: .12;
  will-change: transform, opacity;
  pointer-events: none;
  /* the pulse drives colour only; the scroll handler owns opacity */
  animation: holoSheen 16s ease-in-out infinite;
}
@keyframes holoSheen {
  0%, 100% { filter: saturate(1.4) contrast(1.05) hue-rotate(0deg); }
  50%      { filter: saturate(1.8) contrast(1.14) hue-rotate(-16deg); }
}

/* everything sits above the backdrop */
.hero, .section, .footer { position: relative; z-index: 1; }

.section--alt { background: rgba(255, 255, 255, 0.016); }
.footer { background: rgba(0, 0, 0, 0.34); }

@media (prefers-reduced-motion: reduce) {
  .hero__holo {
    position: absolute;
    top: 7%;
    transform: translate(-50%, 0) scale(.92);
    animation: none;
  }
}

/* the holding page replays the splash on every visit, so make it obvious it
   can be dismissed rather than sat through */
.splash { cursor: pointer; }

/* Visible to screen readers only. Used where a link's visible text is short
   enough to be ambiguous out of context, like "Verify" in the footer. */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------- before/after comparison
   A remodel's whole pitch is the difference between two photos, so this is
   the one place on the site worth a real interaction. A range input drives
   it, which is why dragging, touch and arrow keys all behave correctly
   without any of that being written here. */
.compare { position: absolute; inset: 0; overflow: hidden; }
.compare img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* The card's hover zoom would fight the clip edge, so it stops here. */
.project:hover .compare img { transform: none; }
.compare__after { clip-path: inset(0 0 0 50%); will-change: clip-path; }

.compare__tag {
  position: absolute; bottom: 12px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(8,10,13,.78); border: 1px solid var(--line);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.compare__tag--before { left: 12px; }
.compare__tag--after { right: 12px; }
/* Fades rather than vanishing, so dragging past the end reads as the label
   running out of room instead of the page glitching. */
.compare__tag { transition: opacity .18s ease; }
.compare__tag.is-gone { opacity: 0; }

.compare__bar {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 0 14px rgba(0,0,0,.55);
  pointer-events: none;
}
.compare__bar i {
  position: absolute; top: 50%; left: 50%;
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%;
  background: rgba(10,12,15,.74); border: 1px solid rgba(255,255,255,.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
/* Two chevrons, so it reads as draggable rather than decorative. */
.compare__bar i::before, .compare__bar i::after {
  content: ''; position: absolute; top: 50%; width: 6px; height: 6px;
  border-top: 2px solid rgba(255,255,255,.85);
  border-right: 2px solid rgba(255,255,255,.85);
}
.compare__bar i::before { left: 11px; transform: translateY(-50%) rotate(-135deg); }
.compare__bar i::after { right: 11px; transform: translateY(-50%) rotate(45deg); }

/* The range itself is invisible and covers the whole photo, so a click
   anywhere jumps the handle there. touch-action keeps the project slider
   from stealing the drag on a phone. */
.compare__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  opacity: 0;
  cursor: ew-resize;
  font-size: 16px;
  touch-action: none;
  -webkit-appearance: none; appearance: none;
  background: transparent;
}
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.compare__range::-moz-range-thumb { width: 44px; height: 100%; border: 0; background: transparent; }
/* The range sits before the bar in the markup precisely so this matches. */
.compare__range:focus-visible ~ .compare__bar { outline: 2px solid var(--steel); outline-offset: 2px; }
.compare__range:focus-visible ~ .compare__bar i { border-color: var(--steel); }

.compare__srlabel {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  margin: -1px; padding: 0; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .compare__after { will-change: auto; }
}

/* ------------------------------------------- photos on the contact form
   A homeowner attaching a picture of the room lets Emily size a job without
   driving out to look at it. Optional, capped at three, and shrunk in the
   browser before it leaves. */
.field--photos input[type="file"] {
  width: 100%;
  padding: 13px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font: inherit;
  /* 16px for the same reason as the text fields: anything less and iOS
     zooms the page when it is focused. */
  font-size: 16px;
  cursor: pointer;
}
.field--photos input[type="file"]:hover { border-color: var(--steel-deep); }
.field--photos input[type="file"]:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.field--photos input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.03);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.field--photos input[type="file"]::file-selector-button:hover { background: var(--steel-deep); color: #fff; }
.field__label em { font-style: normal; color: var(--dim); text-transform: none; letter-spacing: 0; }
.field__hint { display: block; margin-top: 7px; font-size: 12.5px; color: var(--dim); }

.photo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.chip {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 12px;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip em { font-style: normal; color: var(--dim); }
.chip--bad { border-color: var(--danger, #9a4640); color: #d9a19c; }


/* ============================================================
   MOBILE BROWSERS
   The things that only show up on a real phone, not in a narrow
   desktop window.
   ============================================================ */

/* Nothing should sit under the notch or the home indicator. */
.footer { padding-bottom: max(34px, calc(env(safe-area-inset-bottom) + 20px)); }
.drawer {
  padding-top: max(26px, env(safe-area-inset-top));
  padding-bottom: max(26px, env(safe-area-inset-bottom));
  padding-right: max(26px, env(safe-area-inset-right));
}

/* A 4px-tall dot is a real control nobody can reliably hit with a thumb.
   The hit area grows to 44px while the bar itself stays 4px, using
   content-box so nothing looks different. */
.slider__dot {
  padding: 20px 7px;
  height: 44px;
  min-width: 42px;
  background-clip: content-box;
  box-sizing: border-box;
}
.slider__dots { gap: 4px; margin-top: 6px; }

/* Baseline for the licence controls; the touch block below raises it. */
.footer__licnum, .footer__verify { display: inline-block; padding-block: 9px; }

/* Tap sizing keys off whether the device has a pointer, not off screen
   width. A tablet is a touch device at 1024px wide and a thumb is the same
   size there as on a phone. */
@media (hover: none) {
  /* The most important targets on a contractor's site: these were 20 to 24
     pixels tall, in three different places. */
  a[href^="tel:"], a[href^="mailto:"] {
    display: inline-block;
    padding-block: 11px;
  }
  .drawer__list a { padding-block: 12px; }
  .footer__nav a, .footer__legal a, .footer__by { display: inline-block; padding-block: 9px; }
  .footer__licnum, .footer__verify { padding-block: 13px; }

  /* More to grab on the comparison handle. */
  .compare__bar i { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
}


@media (max-width: 760px) {
  /* Small type that is fine on a monitor and not fine outdoors on a phone. */
  .compare__tag { font-size: 11.5px; padding: 6px 12px; }
  .project__meta { font-size: 12px; }
  .drawer__eyebrow { font-size: 12px; }
  .contact__details dt { font-size: 12px; }

  /* A phone is held in one hand; the form should not need a second. */
  .field--photos input[type="file"] { padding: 15px 14px; }
  .field--photos input[type="file"]::file-selector-button { padding: 10px 14px; }
}

/* Momentum scrolling on the project rail, and no rubber-band fight with
   the page while dragging the comparison. */
.slider__track { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }

/* ---------------------------------------------------- photo viewer */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(6px, 2vw, 20px);
  padding: clamp(14px, 3vw, 40px);
  padding-top: max(clamp(14px, 3vw, 40px), env(safe-area-inset-top));
  padding-bottom: max(clamp(14px, 3vw, 40px), env(safe-area-inset-bottom));
  opacity: 0;
  transition: opacity .22s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox__scrim {
  position: absolute; inset: 0;
  background: rgba(5, 6, 8, .93);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox__stage {
  position: relative;
  margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  min-width: 0;
}
.lightbox__img {
  max-width: 100%;
  /* Room for the caption and the safe areas, so a tall photo never pushes
     its own label off the screen. */
  max-height: calc(100svh - 150px);
  width: auto; height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.lightbox__cap {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  text-align: center;
}
.lightbox__title { color: var(--text); font-size: 15px; }
.lightbox__count { color: var(--dim); font-size: 13px; letter-spacing: .1em; }

.lightbox__nav, .lightbox__close {
  position: relative;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(16, 19, 24, .9);
  color: var(--text);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav:hover, .lightbox__close:hover,
.lightbox__nav:focus-visible, .lightbox__close:focus-visible {
  background: var(--steel-deep); border-color: var(--steel);
}
.lightbox__close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 3;
  font-size: 26px; line-height: 1;
  width: 46px; height: 46px;
}

@media (max-width: 700px) {
  /* The arrows would crowd the photo on a phone, and swiping is the
     natural gesture there anyway. They stay for keyboard and for anyone
     who prefers tapping, just underneath. */
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lightbox__stage { grid-row: 1; }
  .lightbox__nav { position: relative; }
  .lightbox__nav--prev { grid-row: 2; justify-self: start; }
  .lightbox__nav--next { grid-row: 2; justify-self: end; }
  .lightbox__img { max-height: calc(100svh - 230px); }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none; }
}

/* ============================================================
   ABOUT: MISSION + HOW WE WORK
   Emily's mission statement is formal, company-voice copy. The
   three points under it are the specific promises a homeowner
   actually decides on. They are different registers, so they
   are given different shapes: a framed statement, then a
   numbered list that reads as commitments rather than prose.
   ============================================================ */
.about__mission, .hero__mission {
  position: relative;
  margin: 0 0 clamp(34px, 5vw, 52px);
  padding: clamp(30px, 4vw, 44px) clamp(24px, 4vw, 48px);
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(96,148,190,.10), transparent 62%),
    linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  overflow: hidden;
}
/* a hairline of steel across the top edge, brightest in the middle */
.about__mission::before, .hero__mission::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--steel), transparent);
}

/* the label sits between two rules, so it reads as a plate rather than
   another line of copy */
.mission__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 11px;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  color: var(--steel);
}
.mission__label::before,
.mission__label::after {
  content: '';
  width: clamp(18px, 7vw, 54px);
  height: 1px;
  background: var(--line);
}
.mission__text {
  margin: 0 auto;
  max-width: 58ch;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.58;
  letter-spacing: -0.01em;
  color: var(--text);
}

.about__copy .about__intro {
  max-width: 64ch;
  margin: 0 auto clamp(30px, 4vw, 44px);
  color: var(--muted);
  font-size: 16.5px;
}

/* ---- how we work
   Centred to sit under the mission panel as one column, with a hairline
   between each statement. The section is centred throughout; a left
   aligned block here pulled the eye off the middle of the page. */
.how {
  width: min(62ch, 100%);
  margin: 0 auto clamp(30px, 4vw, 44px);
  display: grid;
  text-align: center;
  border-top: 1px solid var(--line-soft);
}
/* Each block is a heading and a statement now, both Emily's words, so the
   hairline sits on the item rather than the paragraph. */
.how__item {
  padding: clamp(22px, 2.8vw, 30px) clamp(4px, 2vw, 18px);
  border-bottom: 1px solid var(--line-soft);
}
.how__title {
  margin-bottom: 10px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.about__copy .how__line {
  margin: 0 auto;
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(15.5px, 1.8vw, 16.5px);
  line-height: 1.7;
  text-wrap: balance;
}

/* In the hero the statement does the job the old lede paragraph did, so it
   is narrower and sits between the headline and the buttons. */
.hero__mission {
  width: min(70ch, 100%);
  margin: clamp(26px, 3.5vw, 36px) auto 0;
}
.hero__mission .mission__text {
  font-size: clamp(16px, 1.95vw, 19px);
  color: var(--muted);
}

/* the three-up moved out of the hero and under About, so it needs its own
   breathing room rather than the hero's */
.about__stats { margin: 0 0 clamp(34px, 5vw, 48px); }

/* ---------------------------------------------- social links
   Managed from the admin panel, so the set is whatever the client adds.
   Text links rather than icons for that reason. */
.footer__social { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 4px; }
.footer__sociallink {
  font-size: 14.5px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.footer__sociallink:hover, .footer__sociallink:focus-visible { color: var(--steel); border-bottom-color: var(--steel-deep); }
@media (hover: none) { .footer__sociallink { display: inline-block; padding-block: 9px; } }

/* The long headline needs to come down a size or it fills the screen on a
   laptop and wraps badly on a phone. Three deliberate lines, tighter
   leading, so it reads as a stacked statement rather than a run-on. */
.hero__title--long {
  font-size: clamp(27px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
@media (max-width: 560px) {
  /* the hard breaks fight a narrow screen, so let it flow and balance */
  .hero__title--long br { display: none; }
  .hero__title--long { text-wrap: balance; }
  .hero__title--long .accent { display: inline; }
}

/* ============================================================
   LEGAL PAGES
   Privacy policy and terms. Plain reading pages on the same
   palette, no splash, no slider, nothing to interact with.
   ============================================================ */
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.footer__legal a { color: var(--dim); transition: color .25s; }
.footer__legal a:hover, .footer__legal a:focus-visible { color: var(--steel); }

.legal { padding: clamp(110px, 16vh, 170px) 0 clamp(70px, 10vw, 110px); }
.legal__inner { width: min(74ch, 100%); margin-inline: auto; }
.legal__back { padding: 10px 18px; font-size: 13.5px; }

.legal__eyebrow {
  margin: 0 0 10px;
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--steel-mid);
}
.legal__title { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.03em; }
.legal__meta { margin: 14px 0 0; font-size: 13.5px; color: var(--dim); }
.legal__lede {
  margin: clamp(28px, 4vw, 38px) 0 0;
  padding-bottom: clamp(26px, 3vw, 34px);
  border-bottom: 1px solid var(--line-soft);
  font-size: 17px; color: var(--muted);
}

.legal h2 {
  margin: clamp(34px, 4.5vw, 46px) 0 14px;
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--text);
}
.legal p { color: var(--muted); font-size: 16px; line-height: 1.75; }
.legal ul { margin: 0 0 1em; padding-left: 22px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.legal li { margin-bottom: 7px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--steel); border-bottom: 1px solid rgba(111,142,168,.4); }
.legal a:hover, .legal a:focus-visible { color: var(--text); border-bottom-color: currentColor; }

/* the legal pages have no hero, so the bar needs its own background from the top */
.legal ~ .footer { background: rgba(0, 0, 0, .34); }
