/* ==========================================================================
   All Texas Fence — homepage redesign concept
   Design system: "picket rhythm" — steel-black ground, red-oxide primer accent
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   Dark-first design. The bare :root block is the full DARK palette (the
   design's committed default). A light palette is redefined for viewers whose
   OS or explicit choice asks for light.
   -------------------------------------------------------------------------- */
:root {
  /* surfaces */
  --ink:        #101318;   /* steel-black ground */
  --steel:      #191D23;   /* raised surface */
  --steel-2:    #22272F;   /* hover / inset surface */
  --hairline:   rgba(236, 232, 225, 0.13);
  --hairline-2: rgba(236, 232, 225, 0.07);

  /* type */
  --bone:       #ECE8E1;   /* warm off-white */
  --zinc:       #939BA5;   /* galvanized grey — secondary text */
  --zinc-dim:   #6C737C;

  /* accents */
  --oxide:      #C95238;   /* red-oxide primer */
  --oxide-deep: #9E3C26;
  --cedar:      #C08A4A;

  /* on-accent */
  --on-oxide:   #FFF6F2;

  /* Annotation chips — deliberately fixed in both themes. */
  --note-bg:    #C08A4A;
  --note-fg:    #14161A;

  --scrim-top:    rgba(11, 13, 17, 0.20);
  --scrim-bottom: rgba(11, 13, 17, 0.92);

  /* type scale */
  --fs-display: clamp(2.9rem, 7.4vw, 6.1rem);
  --fs-h2:      clamp(2rem, 4.1vw, 3.4rem);
  --fs-h3:      clamp(1.35rem, 2vw, 1.75rem);
  --fs-lead:    clamp(1.02rem, 1.25vw, 1.18rem);
  --fs-label:   0.76rem;

  /* rhythm */
  --pitch: 76px;          /* picket pitch */
  --band-y: clamp(4.5rem, 9vw, 8rem);

  --font-display: "Saira Condensed", "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Public Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color-scheme: dark;
}

/* Light palette — for prefers-color-scheme: light on an unstamped root,
   and for an explicit light choice. Kept as a warm-white workshop paper. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink:        #F4F2ED;
    --steel:      #E9E5DD;
    --steel-2:    #DED9CF;
    --hairline:   rgba(16, 19, 24, 0.16);
    --hairline-2: rgba(16, 19, 24, 0.08);
    --bone:       #171A1F;
    --zinc:       #5C636C;
    --zinc-dim:   #7C838C;
    --oxide:      #A93A22;
    --oxide-deep: #872C17;
    --cedar:      #8A5C22;
    --on-oxide:   #FFF6F2;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ink:        #F4F2ED;
  --steel:      #E9E5DD;
  --steel-2:    #DED9CF;
  --hairline:   rgba(16, 19, 24, 0.16);
  --hairline-2: rgba(16, 19, 24, 0.08);
  --bone:       #171A1F;
  --zinc:       #5C636C;
  --zinc-dim:   #7C838C;
  --oxide:      #A93A22;
  --oxide-deep: #872C17;
  --cedar:      #8A5C22;
  --on-oxide:   #FFF6F2;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink:        #101318;
  --steel:      #191D23;
  --steel-2:    #22272F;
  --hairline:   rgba(236, 232, 225, 0.13);
  --hairline-2: rgba(236, 232, 225, 0.07);
  --bone:       #ECE8E1;
  --zinc:       #939BA5;
  --zinc-dim:   #6C737C;
  --oxide:      #C95238;
  --oxide-deep: #9E3C26;
  --cedar:      #C08A4A;
  --on-oxide:   #FFF6F2;
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

/* The off-canvas mobile drawer is position:fixed, so it hangs off the initial
   containing block and widens the viewport's scroll area. Clipping has to
   happen at the root, not on <body>. `clip` (not `hidden`) keeps the root from
   becoming a scroll container. */
html { overflow-x: clip; }
@supports not (overflow: clip) {
  html { overflow-x: hidden; }
}

body {
  --bs-body-bg: var(--ink);
  --bs-body-color: var(--bone);
  --bs-body-font-family: var(--font-body);
  --bs-border-color: var(--hairline);
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  /* `clip`, not `hidden`: `overflow-x: hidden` forces overflow-y to `auto`,
     which makes <body> the scroll container and breaks window scrolling. */
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4, .display-face {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

::selection { background: var(--oxide); color: var(--on-oxide); }

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

.atf-container { width: min(1240px, 100% - 2.6rem); margin-inline: auto; }

@media (max-width: 575.98px) {
  .atf-container { width: min(1240px, 100% - 1.8rem); }
}

/* Utility: the small uppercase spec label used across the page */
.spec-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--zinc);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.spec-label::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--oxide);
  flex: none;
}
.spec-label--plain::before { display: none; }

.lead-text {
  font-size: var(--fs-lead);
  color: var(--zinc);
  max-width: 62ch;
}

.tabular { font-variant-numeric: tabular-nums; }

/* The picket rhythm: vertical hairlines at a fixed pitch. Structural motif,
   not decoration — every band that carries it aligns content to the same grid. */
.picket {
  position: relative;
  isolation: isolate;
}
.picket::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right,
    var(--hairline-2) 0 1px,
    transparent 1px var(--pitch)
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn-atf {
  --btn-bg: var(--oxide);
  --btn-fg: var(--on-oxide);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.7rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border: 1px solid var(--btn-bg);
  border-radius: 0;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, transform .22s ease, color .22s ease;
}
.btn-atf:hover,
.btn-atf:focus-visible {
  background: var(--oxide-deep);
  border-color: var(--oxide-deep);
  color: var(--on-oxide);
  transform: translateY(-2px);
}
.btn-atf .arrow { transition: transform .22s ease; }
.btn-atf:hover .arrow { transform: translateX(4px); }

.btn-atf--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  border-color: var(--hairline);
}
.btn-atf--ghost:hover,
.btn-atf--ghost:focus-visible {
  background: transparent;
  border-color: var(--bone);
  color: var(--bone);
}

.btn-atf--onphoto {
  --btn-fg: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-atf--onphoto:hover { border-color: #FFFFFF; background: rgba(255,255,255,0.08); color: #FFFFFF; }

/* --------------------------------------------------------------------------
   4. Header — utility bar + sticky nav
   -------------------------------------------------------------------------- */
.utility-bar {
  background: var(--steel);
  border-bottom: 1px solid var(--hairline-2);
  font-size: 0.8rem;
  color: var(--zinc);
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 42px;
  flex-wrap: wrap;
}
.utility-bar a:hover { color: var(--bone); }
.utility-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.utility-list li { display: inline-flex; align-items: center; gap: 0.5rem; }
.utility-est {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cedar);
  font-size: 0.76rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--hairline-2);
  transition: background .3s ease, border-color .3s ease;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--ink) 97%, transparent);
  border-bottom-color: var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 84px;
  transition: min-height .3s ease;
}
.site-header.is-stuck .site-header__inner { min-height: 68px; }

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; transition: height .3s ease; }
.site-header.is-stuck .brand img { height: 38px; }
/* The client logo is solid black artwork. Show the white cut on the dark
   ground, the original black on the light ground. */
.logo-dark  { display: none; }
.logo-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo-dark  { display: block; }
  :root:not([data-theme="dark"]) .logo-light { display: none; }
}
:root[data-theme="light"] .logo-dark  { display: block; }
:root[data-theme="light"] .logo-light { display: none; }
:root[data-theme="dark"]  .logo-dark  { display: none; }
:root[data-theme="dark"]  .logo-light { display: block; }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--zinc);
  padding-block: 0.4rem;
  position: relative;
  transition: color .2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--oxide);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s cubic-bezier(.2,.7,.3,1);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--bone); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.header-cta { flex: none; }
.header-cta .btn-atf { padding: 0.78rem 1.35rem; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 42px;
  background: transparent;
  border: 1px solid var(--hairline);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--bone);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 84vw);
    background: var(--steel);
    border-left: 1px solid var(--hairline);
    padding: 6.5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform .34s cubic-bezier(.3,.8,.3,1);
    z-index: 1040;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--hairline-2); }
  .main-nav a { display: block; font-size: 1.12rem; padding: 1.05rem 0; }
  .main-nav a::after { display: none; }
  .main-nav .btn-atf { margin-top: 1.8rem; width: 100%; justify-content: center; }
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 13, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 1035;
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(600px, 92svh, 940px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0B0D11;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(1.06);
  animation: heroDrift 22s ease-out forwards;
}
@keyframes heroDrift {
  from { transform: scale(1.13); }
  to   { transform: scale(1.0); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, var(--scrim-top) 0%, rgba(11,13,17,0.55) 46%, var(--scrim-bottom) 100%),
    linear-gradient(to right, rgba(11,13,17,0.78) 0%, rgba(11,13,17,0.18) 62%);
}

/* The picket build-in: hairlines that draw across the hero on load, the way
   pickets go up along a run. One orchestrated moment, then it rests. */
.hero__pickets {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255,255,255,0.10) 0 1px,
    transparent 1px var(--pitch)
  );
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 var(--build, 0%), transparent var(--build, 0%));
  mask-image: linear-gradient(to right, #000 0%, #000 var(--build, 0%), transparent var(--build, 0%));
  animation: picketBuild 1.6s cubic-bezier(.25,.8,.35,1) .25s forwards;
}
@keyframes picketBuild {
  from { --build: 0%; }
  to   { --build: 100%; }
}
@property --build {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

.hero__inner {
  position: relative;
  z-index: 3;
  flex: 1 1 100%;
  min-width: 0;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero__eyebrow { color: rgba(255,255,255,0.72); margin-bottom: 1.5rem; }
.hero h1 {
  font-size: var(--fs-display);
  font-weight: 900;
  color: #FFFFFF;
  text-transform: uppercase;
  max-width: 16ch;
  letter-spacing: -0.012em;
}
.hero h1 .rule-word {
  color: var(--oxide);
  display: inline-block;
}
.hero__sub {
  margin-top: 1.6rem;
  max-width: 54ch;
  font-size: var(--fs-lead);
  color: rgba(255,255,255,0.8);
}
.hero__actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Spec plate — a fabrication tag, not a floating card */
.spec-plate {
  margin-top: clamp(3rem, 6vw, 4.6rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(11,13,17,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.spec-plate > div {
  padding: 1.15rem 1.3rem;
  border-right: 1px solid rgba(255,255,255,0.14);
}
.spec-plate > div:last-child { border-right: 0; }
.spec-plate dt {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 0.35rem;
}
.spec-plate dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
}
@media (max-width: 767.98px) {
  .spec-plate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-plate > div:nth-child(2n) { border-right: 0; }
  .spec-plate > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.14); }
}

.hero__scroll {
  position: absolute;
  right: max(1.3rem, calc((100% - 1240px) / 2));
  bottom: clamp(1.5rem, 3vw, 2.4rem);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 54px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.55), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(.6); transform-origin: top; }
  50%      { opacity: 1;  transform: scaleY(1);  transform-origin: top; }
}
@media (max-width: 767.98px) { .hero__scroll { display: none; } }

/* --------------------------------------------------------------------------
   6. Metrics band
   -------------------------------------------------------------------------- */
.metrics {
  background: var(--steel);
  border-bottom: 1px solid var(--hairline-2);
}
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metric {
  padding: clamp(2rem, 3.6vw, 3rem) clamp(1rem, 2vw, 2rem);
  border-right: 1px solid var(--hairline-2);
}
.metric:last-child { border-right: 0; }
.metric__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1;
  color: var(--bone);
  display: flex;
  align-items: baseline;
  gap: 0.1em;
}
.metric__value .unit { color: var(--oxide); font-size: 0.55em; }
.metric__label {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  color: var(--zinc);
  line-height: 1.45;
}
@media (max-width: 767.98px) {
  .metrics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--hairline-2); }
}

/* --------------------------------------------------------------------------
   7. Section shell
   -------------------------------------------------------------------------- */
.band { padding-block: var(--band-y); }
.band--steel { background: var(--steel); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 4.5vw, 3.8rem);
}
.section-head h2 {
  font-size: var(--fs-h2);
  text-transform: uppercase;
  font-weight: 900;
  margin-top: 1.1rem;
}
.section-head h2 em {
  font-style: normal;
  color: var(--oxide);
}
@media (max-width: 767.98px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}

/* --------------------------------------------------------------------------
   8. Services
   -------------------------------------------------------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline-2);
  border: 1px solid var(--hairline-2);
}
.svc {
  grid-column: span 2;
  position: relative;
  display: block;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.svc--wide { grid-column: span 3; }
@media (max-width: 991.98px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc, .svc--wide { grid-column: span 1; }
}
@media (max-width: 575.98px) {
  .svc-grid { grid-template-columns: 1fr; }
}

.svc__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.svc__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.25,1), filter .5s ease;
  filter: saturate(0.86) brightness(0.82);
}
.svc:hover .svc__media img,
.svc:focus-visible .svc__media img {
  transform: scale(1.07);
  filter: saturate(1) brightness(0.94);
}
.svc__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,13,17,0.94) 6%, rgba(11,13,17,0.35) 48%, rgba(11,13,17,0.1) 100%);
}
.svc__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(1.2rem, 2vw, 1.7rem);
}
.svc__index {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
}
.svc__title {
  font-size: var(--fs-h3);
  font-weight: 800;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-top: 0.3rem;
}
.svc__spec {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.66);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.2,.7,.25,1), opacity .35s ease, margin-top .45s ease;
}
.svc:hover .svc__spec,
.svc:focus-visible .svc__spec { max-height: 6rem; opacity: 1; }
.svc__more {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxide);
}
.svc__more .arrow { transition: transform .25s ease; }
.svc:hover .svc__more .arrow { transform: translateX(5px); }

/* small "photo pending" flag used on placeholder imagery */
.svc__flag {
  position: absolute;
  top: 0; left: 0;
  z-index: 3;
  background: var(--note-bg);
  color: var(--note-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
}

/* --------------------------------------------------------------------------
   9. About / story
   -------------------------------------------------------------------------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 991.98px) { .story { grid-template-columns: 1fr; } }

.story__stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(6, 1fr);
  aspect-ratio: 5 / 4.4;
}
.story__stack img { width: 100%; height: 100%; object-fit: cover; }
.story__img-a { grid-column: 1 / 5; grid-row: 1 / 6; }
.story__img-b {
  grid-column: 3 / 6;
  grid-row: 3 / 7;
  border: 8px solid var(--ink);
  align-self: end;
}
.band--steel .story__img-b { border-color: var(--steel); }

.story__stamp {
  position: absolute;
  left: 0;
  bottom: 6%;
  z-index: 3;
  background: var(--oxide);
  color: var(--on-oxide);
  padding: 1rem 1.25rem;
  max-width: 190px;
}
.story__stamp .n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.1rem;
  line-height: 0.85;
  display: block;
}
.story__stamp .t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  display: block;
  opacity: 0.92;
}

.story h2 { font-size: var(--fs-h2); text-transform: uppercase; margin-top: 1.1rem; }
.story__copy { margin-top: 1.4rem; display: grid; gap: 1.1rem; }
.story__copy p { color: var(--zinc); }

.checklist {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.5rem;
}
@media (max-width: 575.98px) { .checklist { grid-template-columns: 1fr; } }
.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.94rem;
  line-height: 1.45;
}
.checklist svg { flex: none; margin-top: 0.28rem; color: var(--oxide); }

.story__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.story__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--bone);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.story__phone small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zinc);
}

/* --------------------------------------------------------------------------
   10. Builders band (commercial segments)
   -------------------------------------------------------------------------- */
.builders {
  position: relative;
  overflow: hidden;
  background: #0B0D11;
}
.builders__media { position: absolute; inset: 0; }
.builders__media img { width: 100%; height: 100%; object-fit: cover; }
.builders__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11,13,17,0.95) 0%, rgba(11,13,17,0.82) 46%, rgba(11,13,17,0.62) 100%);
}
.builders__inner { position: relative; z-index: 2; }
.builders h2 { font-size: var(--fs-h2); text-transform: uppercase; color: #FFF; max-width: 20ch; margin-top: 1.1rem; }
.builders__lead { color: rgba(255,255,255,0.76); margin-top: 1.3rem; max-width: 58ch; font-size: var(--fs-lead); }

.segments {
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,0.18);
}
@media (max-width: 991.98px) { .segments { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 479.98px) { .segments { grid-template-columns: 1fr; } }
.segment {
  padding: 1.5rem 1.3rem 1.6rem;
  border-right: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  transition: background .3s ease;
}
.segment:last-child { border-right: 0; }
.segment:hover { background: rgba(255,255,255,0.05); }
.segment__icon { color: var(--oxide); margin-bottom: 0.9rem; }
.segment h3 {
  font-size: 1.06rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FFF;
}
.segment p { margin-top: 0.45rem; font-size: 0.86rem; line-height: 1.5; color: rgba(255,255,255,0.62); }

/* --------------------------------------------------------------------------
   11. Work / gallery
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zinc);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 0.6rem 1.15rem;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.filter-btn:hover { color: var(--bone); border-color: var(--bone); }
.filter-btn.is-active {
  background: var(--oxide);
  border-color: var(--oxide);
  color: var(--on-oxide);
}
.filter-btn .count {
  font-size: 0.7em;
  opacity: 0.65;
  margin-left: 0.45rem;
  vertical-align: super;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline-2);
  border: 1px solid var(--hairline-2);
}
@media (max-width: 991.98px) { .work-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 479.98px) { .work-grid { grid-template-columns: 1fr; } }

.work-item {
  position: relative;
  display: block;
  background: var(--ink);
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  width: 100%;
  text-align: left;
  transition: opacity .35s ease, transform .35s ease;
}
.work-item--tall { grid-row: span 2; }
@media (max-width: 479.98px) { .work-item--tall { grid-row: span 1; } }

.work-item__media { position: relative; height: 100%; aspect-ratio: 4 / 3; }
.work-item--tall .work-item__media { aspect-ratio: auto; height: 100%; min-height: 260px; }
.work-item__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.85);
  transition: transform .7s cubic-bezier(.2,.7,.25,1), filter .45s ease;
}
.work-item:hover img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.work-item__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(to top, rgba(11,13,17,0.92), rgba(11,13,17,0));
  transform: translateY(8px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.work-item:hover .work-item__cap,
.work-item:focus-visible .work-item__cap { transform: translateY(0); opacity: 1; }
.work-item__cap .k {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oxide);
}
.work-item__cap .t {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  text-transform: uppercase;
  color: #FFF;
  margin-top: 0.2rem;
  line-height: 1.15;
}
.work-item.is-hidden { display: none; }

.work-note {
  margin-top: 1.4rem;
  font-size: 0.86rem;
  color: var(--zinc-dim);
}

/* Lightbox — Bootstrap Modal shell, custom chrome */
.lb .modal-content {
  background: rgba(8, 10, 13, 0.96);
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lb .modal-dialog { margin: 0; }
.lb__figure { max-width: min(1100px, 100%); margin: 0; }
.lb__figure img {
  max-height: 76svh;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}
.lb__cap {
  margin-top: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  color: #FFFFFF;
}
.lb__cap .k {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oxide);
}
.lb__cap .t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
}
.lb__cap .n { margin-left: auto; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }
.lb__btn {
  position: absolute;
  z-index: 5;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.lb__btn:hover { background: rgba(255, 255, 255, 0.12); border-color: #FFFFFF; }
.lb__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lb__prev { left: clamp(0.5rem, 2vw, 1.6rem); top: 50%; transform: translateY(-50%); }
.lb__next { right: clamp(0.5rem, 2vw, 1.6rem); top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   12. Process — a real sequence, so it is numbered
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline-2);
  border-block: 1px solid var(--hairline-2);
}
@media (max-width: 767.98px) { .process { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 479.98px) { .process { grid-template-columns: 1fr; } }
.step {
  background: var(--ink);
  padding: clamp(1.8rem, 2.8vw, 2.5rem) clamp(1.3rem, 2vw, 1.8rem) clamp(2rem, 3vw, 2.8rem);
  position: relative;
  transition: background .3s ease;
}
.band--steel .step { background: var(--steel); }
.step:hover { background: var(--steel-2); }
.step__n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--hairline);
  letter-spacing: -0.02em;
  transition: color .3s ease;
}
.step:hover .step__n { color: var(--oxide); }
.step h3 {
  margin-top: 1rem;
  font-size: 1.24rem;
  font-weight: 800;
  text-transform: uppercase;
}
.step p { margin-top: 0.65rem; font-size: 0.92rem; color: var(--zinc); line-height: 1.6; }

/* --------------------------------------------------------------------------
   13. Reviews strip
   -------------------------------------------------------------------------- */
.reviews {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 991.98px) { .reviews { grid-template-columns: 1fr; } }
.reviews h2 { font-size: var(--fs-h2); text-transform: uppercase; margin-top: 1.1rem; }
.stars { display: inline-flex; gap: 3px; color: var(--cedar); margin-bottom: 0.9rem; }
.review-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline-2);
  border: 1px solid var(--hairline-2);
}
@media (max-width: 767.98px) { .review-slots { grid-template-columns: 1fr; } }
.review-slot {
  background: var(--ink);
  padding: 1.5rem 1.3rem;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.band--steel .review-slot { background: var(--steel); }
.review-slot__q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 0.7;
  color: var(--hairline);
}
.review-slot p { font-size: 0.88rem; color: var(--zinc); line-height: 1.55; margin-top: 0.9rem; }
.review-slot .src {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zinc-dim);
}

/* --------------------------------------------------------------------------
   14. Quote form
   -------------------------------------------------------------------------- */
.quote {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
@media (max-width: 991.98px) { .quote { grid-template-columns: 1fr; } }
.quote h2 { font-size: var(--fs-h2); text-transform: uppercase; margin-top: 1.1rem; }

.contact-list { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ico {
  flex: none;
  width: 42px; height: 42px;
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--oxide);
}
.contact-list .k {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zinc);
}
.contact-list .v { font-weight: 500; color: var(--bone); }
.contact-list .v:hover { color: var(--oxide); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--hairline-2); border: 1px solid var(--hairline-2); }
@media (max-width: 575.98px) { .form-grid { grid-template-columns: 1fr; } }
.field { background: var(--ink); padding: 1.1rem 1.2rem 0.9rem; position: relative; }
.band--steel .field { background: var(--steel); }
.field--full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--zinc);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.35rem 0 0.6rem;
  transition: border-color .25s ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder, .field textarea::placeholder { color: var(--zinc-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--oxide);
}
.field select option { background: var(--steel); color: var(--bone); }
.form-foot {
  grid-column: 1 / -1;
  background: var(--ink);
  padding: 1.3rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.band--steel .form-foot { background: var(--steel); }
.form-foot small { color: var(--zinc-dim); font-size: 0.78rem; max-width: 34ch; }
.form-status {
  grid-column: 1 / -1;
  padding: 0.9rem 1.2rem;
  background: var(--oxide);
  color: var(--on-oxide);
  font-size: 0.9rem;
  display: none;
}
.form-status.is-shown { display: block; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--steel);
  border-top: 1px solid var(--hairline-2);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
@media (max-width: 991.98px) { .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 479.98px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 52px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { color: var(--zinc); font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-col a, .footer-col li { color: var(--zinc); font-size: 0.92rem; }
.footer-col a:hover { color: var(--oxide); }
.socials { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--zinc);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.socials a:hover { color: var(--on-oxide); background: var(--oxide); border-color: var(--oxide); }

.footer-bar {
  border-top: 1px solid var(--hairline-2);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  color: var(--zinc-dim);
}
.footer-bar a:hover { color: var(--bone); }

/* --------------------------------------------------------------------------
   16. Concept notice modal — stands in for pages not built yet
   -------------------------------------------------------------------------- */
.concept-modal .modal-content {
  background: var(--steel);
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--bone);
}
.concept-modal .modal-dialog { max-width: 520px; }
.concept-modal h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
  margin-top: 1rem;
}
.concept-modal #conceptModalPage { color: var(--oxide); font-weight: 600; }
.concept-modal p:not(.spec-label) {
  margin-top: 1rem;
  color: var(--zinc);
  font-size: 0.96rem;
}
.concept-modal__actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.concept-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--zinc);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.concept-modal__close:hover { color: var(--bone); border-color: var(--bone); }

/* Fallback if the AOS stylesheet loads but its script does not. */
.no-aos [data-aos] { opacity: 1 !important; transform: none !important; }

/* --------------------------------------------------------------------------
   17. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__pickets { -webkit-mask-image: none; mask-image: none; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
