/* Home X Construction, Jacksonville FL. Homepage concept.
   Design language: Heritage Craft (type scale, spacing rhythm, motion, composition).
   Colour is Home X Construction's own: the coral their WordPress theme carries as
   --primary (#ff6b53), their near-black --dark (#111104) and their --light (#f2f2f2).
   Display face Arbutus Slab, body face Catamaran, both assigned centrally.
   No em dashes in this file. */

:root {
  /* their palette */
  --ink:        #111104;
  --ink-2:      #1b1a11;
  --ink-3:      #252525;
  --paper:      #f2f2f2;
  --paper-2:    #eae9e5;
  --white:      #ffffff;
  --accent:     #ff6b53;
  --accent-lift:#ff8a75;
  --accent-deep:#a83a24;

  /* text */
  --text-dark:  #1b1a15;
  --text-body:  #46443e;
  --text-muted: #6d6a62;
  --text-light: rgba(255, 255, 255, 0.90);
  --text-light-muted: rgba(255, 255, 255, 0.64);

  /* type */
  --font-display: 'Arbutus Slab', Georgia, 'Times New Roman', serif;
  --font-body: 'Catamaran', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* layout */
  --wrap: min(90%, 1100px);
  --edge: max(1.25rem, calc((100vw - min(90vw, 1100px)) / 2));
  --pad: clamp(4.5rem, 9vw, 7.5rem);
  --nav-h: 88px;
  --rule: rgba(27, 26, 21, 0.14);
  --rule-light: rgba(255, 255, 255, 0.16);

  /* motion, Heritage Craft: minimal and dignified */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--ink); }

.wrap { width: var(--wrap); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 400;
  background: var(--ink); color: var(--paper);
  padding: 0.9rem 1.4rem; font-size: 0.9rem;
}
.skip:focus { left: 0; }

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

/* ---------- type scale ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.85rem);
  line-height: 1.08;
  color: var(--paper);
  max-width: 17ch;
}
h2 {
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  line-height: 1.12;
  max-width: 18ch;
}
h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
}
p { max-width: 68ch; }

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.5;
}
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
  max-width: 52ch;
}

/* ---------- buttons: squared plates, not pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: 52px;
  padding: 0.85rem 1.7rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn::after {
  content: ""; width: 16px; height: 9px; flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9'%3E%3Cpath d='M0 8.4 L8 0.8 L16 8.4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9'%3E%3Cpath d='M0 8.4 L8 0.8 L16 8.4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.4s var(--ease-out);
}
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-lift); }
.btn-outline {
  border: 1px solid var(--rule-light);
  color: var(--text-light);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn:hover::after { transform: translateY(-3px); }
.btn:active { transform: translateY(1px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
/* The hero's right half is a bright photo, so the bar carries its own shade.
   It fades out entirely by the bottom edge and is replaced by the solid state
   as soon as the page moves. */
.nav::before {
  content: ""; position: absolute; inset: 0 0 auto 0;
  height: calc(var(--nav-h) + 2.5rem);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(17, 17, 4, 0.88) 0%, rgba(17, 17, 4, 0.62) 55%, rgba(17, 17, 4, 0) 100%);
  transition: opacity 0.45s var(--ease);
}
.nav.is-solid::before { opacity: 0; }
.nav-inner {
  position: relative; z-index: 1;
  width: 100%;
  padding-inline: var(--edge);
  display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 3vw, 2.5rem);
}
.nav-logo img {
  height: 44px; width: auto; max-width: 210px; object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.45s var(--ease), height 0.45s var(--ease);
}
.nav-links { display: flex; gap: clamp(1.1rem, 2.4vw, 2.1rem); }
.nav-links a {
  position: relative;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding-block: 0.5rem;
  transition: color 0.35s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0.15rem;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { width: 100%; }
.nav-side { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.6rem); }
.nav-tel {
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--text-light);
  transition: color 0.35s var(--ease);
}
.nav-tel:hover { color: var(--accent); }
.nav-cta { min-height: 44px; padding: 0.6rem 1.25rem; font-size: 0.72rem; }

.nav.is-solid {
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px -18px rgba(0, 0, 0, 0.7);
}

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--paper);
  transition: background-color 0.35s var(--ease);
}

/* ---------- mobile drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 300;
  display: none;
}
.drawer.is-open { display: block; }
.drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(17, 17, 4, 0.6);
}
.drawer-panel {
  position: absolute; inset: 0 0 0 auto;
  width: min(92vw, 420px);
  background: var(--ink);
  padding: 1.1rem var(--edge) 2rem;
  display: flex; flex-direction: column;
  animation: drawer-in 0.4s var(--ease-out);
  overflow-y: auto;
}
@keyframes drawer-in { from { transform: translateX(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule-light);
}
.drawer-mark { height: 34px; width: auto; max-width: 170px; object-fit: contain; filter: brightness(0) invert(1); }
.menu-close {
  position: relative; z-index: 10;
  width: 46px; height: 46px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--paper);
  transition: color 0.3s var(--ease);
}
.menu-close svg { width: 22px; height: 22px; }
.menu-close:hover { color: var(--accent); }
.drawer-links { display: flex; flex-direction: column; padding-block: 1.6rem; }
.drawer-links a {
  font-family: var(--font-display);
  font-size: 1.55rem; line-height: 1.2;
  color: var(--paper);
  padding-block: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.3s var(--ease);
}
.drawer-links a:hover { color: var(--accent); }
.drawer-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.35rem; }
.drawer-tel { font-size: 1.15rem; font-weight: 600; color: var(--accent); padding-block: 0.5rem; }
.drawer-mail { font-size: 0.95rem; color: var(--text-light-muted); padding-block: 0.5rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
}
.hero-copy {
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center;
  padding: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)) clamp(1.75rem, 4.5vw, 4rem) clamp(3rem, 6vw, 5rem) var(--edge);
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(255, 107, 83, 0.10) 0%, rgba(255, 107, 83, 0) 58%),
    var(--ink);
}
.apex { width: clamp(74px, 8vw, 108px); height: auto; color: var(--accent); }
.hero-copy .kicker { margin-top: 1.5rem; }
.hero h1 { margin-top: 1.1rem; }
.hero-sub {
  margin-top: 1.7rem;
  max-width: 42ch;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  font-weight: 300;
  color: var(--text-light-muted);
}
.hero-ctas {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(1.1rem, 2.5vw, 2.2rem);
  margin-top: clamp(2rem, 4vw, 2.9rem);
}
.hero-tel { display: flex; flex-direction: column; padding-block: 0.35rem; }
.hero-tel span {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-light-muted);
}
.hero-tel strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.3rem; letter-spacing: -0.01em; color: var(--paper);
  transition: color 0.35s var(--ease);
}
.hero-tel:hover strong { color: var(--accent); }

.hero-media { position: relative; overflow: hidden; background: var(--ink-2); }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.shot-tag {
  position: absolute; left: clamp(1rem, 2vw, 1.6rem); bottom: clamp(1rem, 2vw, 1.6rem);
  max-width: calc(100% - 2rem);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--paper);
  background: rgba(17, 17, 4, 0.72);
  padding: 0.5rem 0.95rem;
  border-radius: 2px;
}

/* ---------- bands ---------- */
.band { padding-block: var(--pad); }
.band-paper { background: var(--paper); }
.band-paper-2 { background: var(--paper-2); border-top: 1px solid var(--rule); }
.band-ink { background: var(--ink); color: var(--text-light-muted); }
.band-ink h2, .band-ink h3 { color: var(--paper); }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-lead h2 { max-width: 14ch; }
.about-stamp {
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
  padding-top: 1.1rem;
  border-top: 2px solid var(--accent);
  max-width: 27ch;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.9;
}
.about-stamp span { display: block; font-weight: 600; color: var(--text-dark); }
.about-text p + p { margin-top: 1.2rem; }
.facts {
  margin-top: clamp(2rem, 4vw, 2.8rem);
  border-top: 1px solid var(--rule);
}
.facts li {
  padding: 0.95rem 0 0.95rem 1.7rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.facts li::before {
  content: ""; position: absolute; left: 0; top: 1.45rem;
  width: 11px; height: 7px;
  background-color: var(--accent-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9'%3E%3Cpath d='M0 8.4 L8 0.8 L16 8.4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9'%3E%3Cpath d='M0 8.4 L8 0.8 L16 8.4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- services ---------- */
.services-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.services-head .lede { margin-top: 1.2rem; color: var(--text-light-muted); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule-light);
}
.service-flip .service-media { order: 2; }
.service-media { overflow: hidden; border-radius: 3px; }
.service-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 1.5s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .service:hover .service-media img { transform: scale(1.035); }
}
.service-copy p { color: var(--text-light-muted); margin-top: 1rem; max-width: 46ch; }
.service-note {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
}
.ticks {
  margin-top: 1.8rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.5rem;
}
.ticks li {
  position: relative; padding-left: 1.15rem;
  font-size: 0.92rem; line-height: 1.5;
  color: var(--text-light);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.62rem;
  width: 6px; height: 1px; background: var(--accent);
}

/* ---------- projects ---------- */
.projects-head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.projects-head h2 { max-width: 20ch; }
.projects-head .lede { margin-top: 1.1rem; color: var(--text-muted); }
.proj {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.proj-list { border-top: 1px solid var(--rule); }
.proj-btn {
  width: 100%;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  text-align: left;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.45s var(--ease);
}
.proj-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-muted);
  transition: color 0.4s var(--ease);
}
.proj-type {
  flex-shrink: 0;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  /* --text-muted at 0.72 measured 2.85:1 on the paper band; this reads 6.7:1 and
     still sits well below the project name in the hierarchy. */
  color: #57544a;
}
.proj-btn:hover .proj-name { color: var(--text-dark); }
.proj-btn.is-active { padding-left: 1.4rem; }
.proj-btn.is-active .proj-name { color: var(--accent-deep); }
.proj-btn.is-active::before {
  content: ""; position: absolute; left: 0; top: 1.55rem;
  width: 13px; height: 8px;
  background-color: var(--accent-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9'%3E%3Cpath d='M0 8.4 L8 0.8 L16 8.4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9'%3E%3Cpath d='M0 8.4 L8 0.8 L16 8.4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
}
.proj-list li { position: relative; }

.proj-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-2);
}
.proj-shot {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.proj-shot.is-active { opacity: 1; visibility: visible; }
.proj-shot img { width: 100%; height: 100%; object-fit: cover; }
.proj-shot figcaption {
  position: absolute; left: clamp(0.85rem, 1.6vw, 1.3rem); bottom: clamp(0.85rem, 1.6vw, 1.3rem);
  max-width: calc(100% - 1.7rem);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper);
  background: rgba(17, 17, 4, 0.72);
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
}

/* ---------- process ---------- */
.process-head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.2rem);
}
.step { border-top: 2px solid var(--accent); padding-top: 1.5rem; }
.step-no {
  display: block;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-deep);
}
.step h3 { margin-top: 0.7rem; }
.step p { margin-top: 1rem; font-size: 0.97rem; }

/* ---------- reviews ---------- */
.quotes-head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.quote blockquote p {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--text-light);
  max-width: 34ch;
}
.quote figcaption {
  margin-top: 1.5rem; padding-top: 1.1rem;
  border-top: 1px solid var(--rule-light);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.quote figcaption strong { font-size: 0.95rem; font-weight: 600; color: var(--paper); }
.quote figcaption span { font-size: 0.85rem; color: var(--text-light-muted); }

/* ---------- closing band ---------- */
.band-close {
  position: relative; overflow: hidden;
  background: var(--ink-2);
  color: var(--text-light-muted);
  padding-block: clamp(5rem, 10vw, 8.5rem);
}
/* The roofline from their own mark, drawn wide behind the closing line.
   Centred with auto margins rather than a transform, so the scroll drift can
   own the transform outright instead of stacking on top of a translate. */
.apex-big {
  position: absolute; left: 0; right: 0; top: clamp(2rem, 5vw, 4rem);
  margin-inline: auto;
  width: min(1080px, 94vw); height: auto;
  color: rgba(255, 107, 83, 0.20);
  pointer-events: none;
}
.close-inner { position: relative; z-index: 1; text-align: center; }
.close-inner h2 { color: var(--paper); max-width: 16ch; margin-inline: auto; }
.close-inner .lede { margin: 1.2rem auto 0; }
.close-ctas {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem; margin-top: clamp(2rem, 4vw, 2.8rem);
}
.areas {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--rule-light);
}
.areas-label {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent);
  margin-inline: auto;
}
.areas-list {
  margin: 0.85rem auto 0;
  max-width: 58ch;
  font-size: 0.95rem;
  color: var(--text-light-muted);
}

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--text-light-muted); padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.foot-brand img { height: 52px; width: auto; max-width: 240px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.9; }
.foot-brand p { margin-top: 1.2rem; font-size: 0.92rem; max-width: 30ch; }
.foot-label {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.foot-col a {
  display: block;
  font-size: 0.94rem;
  padding-block: 0.4rem;
  transition: color 0.3s var(--ease);
}
.foot-col a:hover { color: var(--accent); }
.foot-addr { margin-top: 0.8rem; font-size: 0.9rem; line-height: 1.6; }
.foot-base {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- motion (scoped under html.js so no-JS renders everything) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal-media { opacity: 0; }
html.js .hero-copy .apex,
html.js .hero-copy .kicker,
html.js .hero h1,
html.js .hero-sub,
html.js .hero-ctas { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .reveal-media,
  html.js .hero-copy .apex, html.js .hero-copy .kicker,
  html.js .hero h1, html.js .hero-sub, html.js .hero-ctas {
    opacity: 1; transform: none;
  }
  .drawer-panel { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  .about { grid-template-columns: 1fr; }
  .proj { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-top: 1.2rem; }
  .foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
  }
  .hero-copy {
    padding: calc(var(--nav-h) + clamp(2.5rem, 9vw, 4.5rem)) var(--edge) clamp(2.5rem, 7vw, 3.5rem);
  }
  .hero h1 { max-width: 18ch; }
  .hero-media { aspect-ratio: 4 / 3; }
  .service,
  .service-flip {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .service-flip .service-media { order: 0; }
  .quotes { grid-template-columns: 1fr; }
  /* the project index unstacks: every shot renders in order with its caption */
  .proj-list { display: none; }
  .proj-stage {
    position: static; aspect-ratio: auto; background: none;
    display: grid; gap: 1.75rem;
  }
  .proj-shot {
    position: relative; inset: auto;
    opacity: 1; visibility: visible;
  }
  .proj-shot img { aspect-ratio: 4 / 3; border-radius: 3px; }
}

@media (max-width: 640px) {
  .ticks { grid-template-columns: 1fr; }
  .hero-ctas { align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .close-ctas .btn { width: 100%; justify-content: center; }
  .foot-inner { grid-template-columns: 1fr; }
  .nav-tel { display: none; }
  .foot-base { justify-content: flex-start; }
}
