/* CZTCUX — editorial architectural system */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0b;
  --bg-2: #111111;
  --bg-3: #151515;
  --raised: #181817;
  --raised-2: #20201e;
  --text: #f0eee8;
  --muted: #aaa79f;
  --accent: #c1935d;
  --line: rgba(240, 238, 232, 0.14);
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --header: 72px;
  --wide: 1440px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-lock { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: var(--text); text-underline-offset: 0.22em; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--accent);
  color: #1a140c;
  padding: 8px 12px;
  z-index: 80;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
}
.wrap-wide {
  width: min(var(--wide), calc(100% - 40px));
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 0 0 0.35em;
  color: var(--text);
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.6rem, 8vw, 6.5rem); max-width: 14ch; }
h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); max-width: 16ch; }
h3 { font-size: clamp(1.7rem, 2.4vw, 2.4rem); letter-spacing: -0.03em; line-height: 1; }
h4 { font-family: var(--sans); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; line-height: 1.4; }

p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 38ch;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-mark { display: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand-name strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand-name span {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header);
  background: linear-gradient(to bottom, rgba(11, 11, 11, 0.45), transparent);
  border: 0;
  transition: background 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 11, 0.78);
  backdrop-filter: blur(16px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 0;
  position: relative;
  z-index: 60;
}
.nav-toggle path { stroke: var(--text); }

.site-nav { display: none; }
.site-nav.is-open {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(11, 11, 11, 0.96);
  padding: 96px 28px 36px;
  overflow: auto;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li > a,
.sub-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: left;
  cursor: pointer;
}
.site-nav a[aria-current="page"] { color: var(--accent); }
.sub-menu { display: none; padding: 4px 0 12px 8px; }
.has-sub.is-open .sub-menu { display: block; }
.sub-menu a,
.nav-more a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.nav-cta {
  margin-top: 28px;
  align-self: flex-start;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}
.nav-cta::after { content: " \2192"; }

/* Buttons — text, not pills */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.btn::after { content: " \2192"; }
.btn:hover { color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
  background: #0b0b0b;
}
.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 11, 0.82) 0%, rgba(11, 11, 11, 0.55) 46%, rgba(11, 11, 11, 0.18) 72%),
    linear-gradient(180deg, rgba(11, 11, 11, 0.55) 0%, rgba(11, 11, 11, 0.12) 34%, rgba(11, 11, 11, 0.62) 78%, #0b0b0b 100%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 48px;
}
.hero h1 {
  font-size: clamp(2.7rem, 9vw, 10rem);
  max-width: 11ch;
  line-height: 0.86;
  margin-bottom: 22px;
}
.hero .lede { max-width: 36ch; }
.caption-plate {
  position: absolute;
  right: 24px;
  top: calc(var(--header) + 16px);
  z-index: 2;
  max-width: 220px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  padding: 0;
}
@media (max-width: 719px) {
  .caption-plate { display: none; }
}
.hero-trust {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  max-width: 920px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.hero-trust article { padding: 0; border: 0; }
.hero-trust strong {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-trust p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

/* Inner heroes */
.page-hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  align-items: flex-end;
  background: #0b0b0b center / cover no-repeat;
  overflow: clip;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 11, 11, 0.78), rgba(11, 11, 11, 0.28) 58%),
    linear-gradient(180deg, rgba(11, 11, 11, 0.35), rgba(11, 11, 11, 0.15) 40%, #0b0b0b 100%);
}
.page-hero > .wrap {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100% - 40px));
  margin: auto auto 7vh;
}
.is-quiet .page-hero {
  min-height: 0;
  background-image: none !important;
  padding-top: calc(var(--header) + 36px);
}
.is-quiet .page-hero::before { display: none; }
.is-quiet .page-hero > .wrap { margin-bottom: 12px; }
.is-quiet h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }

.p-services .page-hero { background-image: url("../images/house-brick.webp"); }
.p-fence-installation .page-hero { background-image: url("../images/posts-auger.webp"); }
.p-fence-repair .page-hero { background-image: url("../images/wood-gate.webp"); }
.p-wood-fence .page-hero { background-image: url("../images/house-wood-fence.webp"); }
.p-vinyl-fence .page-hero { background-image: url("../images/vinyl-build.webp"); }
.p-chain-link-fence .page-hero { background-image: url("../images/chain-mesh.webp"); }
.p-aluminum-fence .page-hero { background-image: url("../images/modern-yard.webp"); }
.p-privacy-fence .page-hero { background-image: url("../images/privacy-white.webp"); }
.p-metal-fence .page-hero { background-image: url("../images/iron-rail.webp"); }
.p-commercial-fencing .page-hero { background-image: url("../images/pool-chain.webp"); }
.p-residential-fencing .page-hero { background-image: url("../images/house-shingle.webp"); }
.p-gate-services .page-hero { background-image: url("../images/wood-gate.webp"); background-position: center 40%; }
.p-pool-fence .page-hero { background-image: url("../images/pool-estate.webp"); }
.p-fence-maintenance .page-hero { background-image: url("../images/house-craftsman.webp"); }
.p-specialty-fencing .page-hero { background-image: url("../images/reed-screen.webp"); }
.p-temporary-fencing .page-hero { background-image: url("../images/chain-mesh.webp"); }
.p-service-areas .page-hero { background-image: url("../images/modern-yard.webp"); }
.p-about .page-hero { background-image: url("../images/house-craftsman.webp"); }
.p-our-work .page-hero { background-image: url("../images/privacy-white.webp"); }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 10px; color: var(--accent); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* Sections */
.section { position: relative; padding: 96px 0; }
.section-alt { background: var(--bg-2); }
.section-head { margin-bottom: 36px; max-width: 820px; }
.section-head p { color: var(--muted); margin: 0; max-width: 46ch; }

.split {
  display: grid;
  gap: 36px;
  align-items: center;
}
.prose { max-width: 68ch; }
.prose p, .prose li { color: #dddacf; }
.prose h2, .prose h3 { margin-top: 1.4em; max-width: 16ch; }

.media-stack, .gallery { display: grid; gap: 14px; }
.media-stack figure,
.gallery figure,
.split figure,
.frame {
  margin: 0;
  overflow: hidden;
  position: relative;
}
.media-stack img,
.gallery img,
.split figure img,
.frame img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
figcaption {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 10px;
}
.frame::after { content: none; }

.card-grid,
.type-grid,
.step-grid,
.problem-grid,
.related-grid {
  display: grid;
  gap: 0;
}
.card,
.step,
.problem,
.related {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 26px 0 22px;
  box-shadow: none;
}
.card:last-child,
.problem:last-child,
.related:last-child,
.step:last-child { border-bottom: 1px solid var(--line); }
.card h3, .problem h3, .related h3, .step h3 { margin-bottom: 0.25em; }
.card p, .step p, .problem p, .related p { color: var(--muted); max-width: 62ch; }
.index-no, .step-no {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 10px;
}
.step { display: block; }
.step h3, .step p { grid-column: auto; }

.overlap { display: grid; gap: 28px; }
.overlap-copy {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 8px 0 0;
  margin: 0;
}

.gallery.three { display: grid; gap: 14px; }
.band {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.band h2 { max-width: 14ch; }

.stat-row { display: grid; gap: 18px; }
.stat { border-top: 1px solid var(--line); padding-top: 12px; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: transparent; }
th, td {
  text-align: left;
  padding: 16px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
}
td { color: #e4e1d8; }

@media (max-width: 719px) {
  table, thead, tbody, tr, th, td { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  td { border: 0; padding: 6px 0; }
  td::before {
    content: attr(data-label);
    display: block;
    color: var(--accent);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 2px;
  }
}

.check-list, .plain-list { margin: 0 0 1em; padding-left: 1.1em; }
.check-list li, .plain-list li { margin: 0 0 0.4em; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); margin: 0 0 16px; max-width: 68ch; }

.note { border-left: 1px solid var(--accent); padding-left: 16px; color: var(--muted); }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* Contact */
.contact-grid { display: grid; gap: 36px; }
form {
  background: transparent;
  border: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
input, select, textarea {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0;
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}
textarea { min-height: 140px; resize: vertical; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}
.check input { width: 18px; height: 18px; margin-top: 3px; }
.form-note { border-top: 1px solid var(--accent); padding-top: 12px; color: var(--text); }
.form-error { color: #e7b2a0; margin: 0; }
.contact-aside { border-top: 1px solid var(--line); padding-top: 18px; }
.contact-aside a { color: var(--accent); }

/* Footer */
.site-footer {
  background: #080808;
  border-top: 1px solid var(--line);
  padding: 72px 0 28px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-word {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 12vw, 8.5rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}
.footer-word:hover { color: var(--text); }
.footer-start {
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.footer-start::after { content: " \2192"; }
.footer-grid { display: grid; gap: 28px; }
.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.2;
  max-width: none;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-grid .brand { display: none; }
.legal-row {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

@media (min-width: 720px) {
  .hero-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .card, .related, .problem {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 0.8fr) minmax(0, 1.3fr);
    gap: 8px 28px;
    align-items: baseline;
  }
  .card h3, .related h3, .problem h3,
  .card p, .related p, .problem p { margin: 0; }
  .step-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1.3fr 0.7fr; }
  .gallery.three { grid-template-columns: 1.35fr 0.8fr; }
  .gallery.three figure:first-child { grid-row: span 2; }
  .gallery img, .media-stack img, .split figure img, .frame img { height: 100%; min-height: 280px; }
  .gallery.three figure:first-child img { min-height: 560px; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .contact-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .split { grid-template-columns: 0.92fr 1.08fr; gap: 64px; }
}

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    position: static;
    background: transparent;
    padding: 0;
    overflow: visible;
    flex-direction: row;
  }
  .site-nav > ul {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .site-nav > ul > li > a,
  .sub-toggle {
    width: auto;
    padding: 8px 9px;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    white-space: nowrap;
  }
  .nav-cta { white-space: nowrap; }
  .site-nav > .nav-more { display: none; }
  .has-sub { position: relative; }
  .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 12px 16px;
    background: rgba(11, 11, 11, 0.94);
    border: 1px solid var(--line);
  }
  .has-sub:hover .sub-menu,
  .has-sub:focus-within .sub-menu,
  .has-sub.is-open .sub-menu { display: block; }
  .nav-cta { margin: 0 0 0 8px; }
  .step-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .split figure img, .frame img { min-height: 640px; height: 72vh; }
  .section { padding: 120px 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-figure img {
    transform: scale(1.06);
    transition: transform 1.2s ease;
  }
  .media-stack img,
  .gallery img,
  .split figure img,
  .frame img {
    transition: transform 1.1s ease;
  }
  .media-stack figure:hover img,
  .gallery figure:hover img,
  .split figure:hover img,
  .frame:hover img { transform: scale(1.045); }
  .site-nav.is-open { animation: menu-in 0.45s ease; }
}
@keyframes menu-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-figure img { transform: none; }
}
