:root {
  --paper: #f3efe8;
  --ink: #1c1b19;
  --muted: #5c574f;
  --line: rgba(28, 27, 25, 0.14);
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --bar: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

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

figure { margin: 0; }

a { color: inherit; }

button, a.call, a.btn {
  font-family: inherit;
}

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

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--bar);
  padding: 0 var(--pad);
  background: #f3efe8;
  border-bottom: 1px solid var(--line);
}

.brand {
  justify-self: start;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.nav-phone { display: none; }

@media (min-width: 800px) {
  .nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
}

.bar-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.fb svg { width: 22px; height: 22px; display: block; }

.call, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.btn { height: 48px; padding: 0 22px; font-size: 15px; }

.menu {
  display: none;
  height: 40px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.hero {
  display: grid;
  min-height: calc(100svh - var(--bar));
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: clamp(28px, 5vw, 72px) var(--pad) clamp(32px, 6vw, 80px);
}

.kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, .card h3, .towns a, .phone {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 0.94;
  max-width: 9ch;
}

.lead {
  margin: 0;
  max-width: 36ch;
  font-size: 18px;
  line-height: 1.45;
  color: #3c3934;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  margin-top: 8px;
}

.link {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.hero-photo {
  display: flex;
  flex-direction: column;
  min-height: 48vh;
  background: #d9d3c8;
}

.shot {
  margin: 0;
  padding: 10px 16px 14px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hero-photo img,
.frame img,
.bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo img {
  width: 100%;
  height: 58vh;
  min-height: 320px;
  object-fit: cover;
  object-position: center 36%;
}

.section {
  padding: clamp(72px, 11vw, 132px) 0;
  scroll-margin-top: 80px;
}

.wrap {
  width: min(1480px, calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 40rem;
  margin-bottom: clamp(36px, 6vw, 64px);
}

h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.96;
}

.section-head p:last-child,
.prose p {
  margin: 0;
  max-width: 42rem;
  color: #3c3934;
}

.group {
  margin: clamp(28px, 5vw, 56px) 0 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 42px 22px;
}

.card { margin: 0; }

.span-12 { grid-column: span 12; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }

.frame {
  background: #d9d3c8;
  overflow: hidden;
}

.frame.r16x10 { aspect-ratio: 16 / 10; }
.frame.r16x9 { aspect-ratio: 16 / 9; }
.frame.r4x3 { aspect-ratio: 4 / 3; }
.frame.r4x5 { aspect-ratio: 4 / 5; }
.frame.r3x4 { aspect-ratio: 3 / 4; }

.card figcaption { margin-top: 12px; }

.card h3 {
  margin: 2px 0 0;
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1;
}

.card p, .note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pos-c { object-position: center 42%; }
.pos-door-l { object-position: 24% 46%; }
.pos-door-r { object-position: 72% 46%; }
.pos-low { object-position: center 62%; }
.pos-flush { object-position: 30% 55%; }
.pos-modern { object-position: 70% 62%; }
.pos-avante { object-position: center 36%; }

.band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 10vw, 120px) 0;
}

.band .kicker { color: rgba(243, 239, 232, 0.62); }

.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 36px;
}

.facts article h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.facts p { margin: 0; color: rgba(243, 239, 232, 0.78); max-width: 28ch; }

.phone {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  text-decoration: none;
}

.towns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 28px;
  margin-top: 28px;
}

.towns a {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  text-decoration: none;
  padding: 10px 0;
}

.towns a span {
  display: block;
  margin-bottom: 2px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.all-towns {
  columns: 2;
  margin-top: 48px;
  font-size: 16px;
}

.all-towns a {
  display: block;
  break-inside: avoid;
  padding: 7px 0;
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.all-towns .edge {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dealers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 40px;
  padding: 20px var(--pad);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.logo-clopay { height: 46px; width: auto; }
.logo-lift { height: 26px; width: auto; }

.finds {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 40px;
}

.finds h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.finds p, .find-note {
  margin: 8px 0 0;
  max-width: 36ch;
  color: #3c3934;
}

.find-note { max-width: 46rem; margin-top: 36px; }

.directory { margin-top: 56px; }
.directory h2 { margin-bottom: 12px; }
.directory .find-note { margin-top: 0; margin-bottom: 8px; }

.ask { margin-top: 64px; max-width: 40rem; }
.ask h2 { margin-bottom: 8px; }
.ask h3 {
  margin: 28px 0 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ask p { margin: 6px 0 0; color: #3c3934; }

.prose { display: grid; gap: 16px; }

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 13px;
}

.foot p { margin: 8px 0; }

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.foot a { color: var(--muted); }

.foot .fb { width: auto; height: auto; gap: 8px; color: var(--ink); text-decoration: none; }

.page-hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: calc(var(--bar) + 28px) 0 12px;
}

.page-hero h1 { line-height: 1.05; }

.bleed {
  margin-top: 28px;
  background: #d9d3c8;
}

.bleed.r3x2 { aspect-ratio: 3 / 2; }

.caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 800px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .finds { grid-template-columns: 1fr 1fr 1fr; }
  .all-towns { columns: 4; }
}

.town-photo {
  position: relative;
  margin: 0;
  background: #d9d3c8;
}

.town-photo .shot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 48px var(--pad) 14px;
  background: linear-gradient(to top, rgba(28, 27, 25, 0.72), rgba(28, 27, 25, 0));
  color: #f3efe8;
}

.town-photo img {
  width: 100%;
  height: 46vh;
  min-height: 240px;
  max-height: 520px;
  object-fit: cover;
}

.job {
  --ar: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 42px 0 0;
}

.job img {
  width: min(100%, calc(88vh * var(--ar)));
  height: auto;
  display: block;
  background: #d9d3c8;
}

.town-photo + .page-hero { padding-top: 36px; }

@media (min-width: 1000px) {
  .work-top {
    display: grid;
    grid-template-columns: minmax(340px, 0.82fr) 1.18fr;
    align-items: end;
    min-height: calc(100svh - var(--bar));
    border-bottom: 1px solid var(--line);
  }
  .work-top .page-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: auto;
    padding: 48px var(--pad) 72px;
  }
  .work-top .job {
    margin: 0;
    align-self: end;
    padding-bottom: 28px;
  }
}

.job .caption {
  width: min(100%, calc(88vh * var(--ar)));
  margin: 10px auto 0;
  padding: 0 var(--pad);
  box-sizing: border-box;
}

@media (min-width: 1000px) {
  .facts { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .hero { grid-template-columns: minmax(340px, 0.86fr) 1.14fr; }
  .hero .hero-photo {
    min-height: calc(100svh - var(--bar));
    position: relative;
  }
  .hero .hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
  .hero .hero-photo .shot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(28, 27, 25, 0.55), transparent);
    color: #f3efe8;
  }
}

@media (max-width: 799px) {
  .bar { grid-template-columns: 1fr auto; }
  .brand { font-size: 18px; }
  .menu { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--bar);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--pad) 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav.open {
    display: flex;
    position: fixed;
    z-index: 40;
    top: var(--bar);
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 28px;
    background: #f3efe8;
  }
  .nav a {
    font-family: var(--serif);
    font-size: 36px;
    letter-spacing: -0.03em;
    padding: 6px 0;
  }
  .nav a.nav-phone {
    display: block;
    margin-top: auto;
    padding: 0 0 32px;
    font-size: 28px;
  }
  .hero { min-height: 0; }
  .hero-photo { order: -1; }
  .hero-photo img {
    height: 40vh;
    min-height: 280px;
    max-height: 360px;
    aspect-ratio: auto;
    object-position: center 38%;
  }
  .hero-copy {
    gap: 14px;
    padding-top: 22px;
    padding-bottom: 32px;
  }
  .hero-actions { order: 2; margin-top: 2px; }
  .lead { order: 3; }
  h1 { font-size: clamp(44px, 12vw, 64px); }
  .span-12, .span-7, .span-6, .span-5 { grid-column: span 12; }
  .logo-clopay { height: 36px; }
  .logo-lift { height: 22px; }
  .frame.r4x5, .frame.r3x4 { aspect-ratio: 4 / 5; }
}

@media (max-width: 799px) and (min-width: 700px) {
  .towns { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
