/* Peak City Web Design: v2 design system (draft) */

:root {
  --ink: #0d0d0d;
  --text: #1a1a1a;
  --muted: #4d4d4d;
  --rule: #dcdcdc;
  --rule-dark: #333333;
  --paper: #ffffff;
  --mist: #f4f4f4;
  --red: #cc0000;
  --red-deep: #a80000;
  --gold: #f2a100;
  --band: #161616;
  --skyline-opacity: .12;
  --tex-pixels: url('/images/background-square-pixels-white.png');
  --tex-veil: linear-gradient(rgba(244, 244, 244, .5), rgba(244, 244, 244, .5));
  --tex-cross: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fff' fill-opacity='.03' d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/svg%3E");

  --font-display: 'Archivo', 'Arial Black', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 136px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1344px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* Type */
.display, .h2, .h3, .h4 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
.display { font-weight: 900; font-size: clamp(2.7rem, 6.7vw, 6.25rem); line-height: .98; letter-spacing: -.035em; }
.h2 { font-weight: 900; font-size: clamp(2.1rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.03em; }
.h3 { font-weight: 800; font-size: clamp(1.55rem, 2.5vw, 2.25rem); line-height: 1.08; letter-spacing: -.022em; }
.h4 { font-weight: 800; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.012em; }
.accent { color: var(--red); }
.hero .eyebrow { margin-bottom: 22px; }
.on-dark, .on-dark .h2, .on-dark .h3, .on-dark .h4 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-family: var(--font-display); font-size: .8125rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.eyebrow::before {
  content: ''; width: 11px; height: 10px; flex: none; background: var(--red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.on-dark .eyebrow { color: #fff; }

.lede { font-size: clamp(1.2rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--text); text-wrap: pretty; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 1.1em; }

.text-link { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--ink); }

/* Buttons */
.arrow { width: 20px; height: 14px; flex: none; transition: transform .25s var(--ease); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 14px 28px; border: 2px solid transparent; border-radius: 0;
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover .arrow { transform: translateX(5px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--ink); }
.btn-ink { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.more {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 800;
  color: var(--red); text-decoration: none;
}
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.more:hover .arrow { transform: translateX(5px); }

/* Header */
#header-container { min-height: var(--header-h); }
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; background: #fff; border-bottom: 1px solid var(--ink); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.site-logo { display: block; flex: none; }
.site-logo img { height: 38px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; font-family: var(--font-display); font-size: .9688rem; font-weight: 600; }
.site-nav > a, .nav-drop > a { color: var(--ink); text-decoration: none; padding-block: 8px; }
.site-nav > a:hover, .nav-drop > a:hover { color: var(--red); }

.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 7px; }
.nav-drop > a::after { content: ''; width: 8px; height: 6px; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.nav-drop__menu {
  position: absolute; top: 100%; left: -20px; width: 340px; padding: 8px 0; margin-top: 18px;
  background: #fff; border: 1px solid var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-drop__menu::before { content: ''; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop__menu a { display: block; padding: 12px 20px; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.25; }
.nav-drop__menu a span { display: block; margin-top: 2px; font-family: var(--font-body); font-size: .9375rem; font-weight: 400; color: var(--muted); }
.nav-drop__menu a:hover { background: var(--mist); color: var(--red); }

.site-header__cta { display: flex; align-items: center; gap: 20px; }
.site-phone { font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-phone:hover { color: var(--red); }
.btn-sm { min-height: 46px; padding: 8px 20px; font-size: .9688rem; }

.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--ink); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); }
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.mobile-menu { border-top: 1px solid var(--rule); background: #fff; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-menu a { display: block; padding: 15px var(--gutter); border-bottom: 1px solid var(--rule); font-family: var(--font-display); font-weight: 700; color: var(--ink); text-decoration: none; }
.mobile-services > a { display: flex; align-items: center; justify-content: space-between; }
#mobile-services-arrow { width: 10px; height: 8px; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .2s; }
#mobile-services-arrow.rotated { transform: rotate(180deg); }
.mobile-services-submenu { display: none; background: var(--mist); }
.mobile-services-submenu.show { display: block; }
.mobile-services-submenu a { font-weight: 600; font-size: 1rem; }

/* Hero */
.hero { overflow: hidden; }
.hero__top { position: relative; padding-block: clamp(40px, 5.5vw, 84px) clamp(64px, 7vw, 104px); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.hero__copy .btn-row { margin-top: 26px; }
.hero__copy .btn { flex: 1 1 auto; }
.hero__proof { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 20px; font-size: 1rem; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: .08em; font-size: 1.0625rem; line-height: 1; }
.hero__proof strong { color: var(--ink); font-weight: 700; }

.hero__skyline {
  position: absolute; inset: 0; opacity: var(--skyline-opacity);
  background: url('/images/Apex-Water-Tower-Urban-Silhouette.jpg') no-repeat right bottom -4px;
  background-size: cover;
}

.hero__stage { position: relative; padding-block: clamp(28px, 4vw, 56px); overflow: hidden; }
.hero__stage::before { content: ''; position: absolute; inset: 0; background: var(--band); opacity: var(--skyline-opacity); }
.hero__frames { position: relative; display: grid; grid-template-columns: 1fr 1.32fr 1fr; gap: clamp(14px, 2vw, 28px); align-items: center; }
.hero__frames .browser { box-shadow: 0 18px 44px rgba(0, 0, 0, .2); }

/* Browser frame */
.browser { display: block; background: #fff; border: 1px solid var(--ink); text-decoration: none; }
.browser__bar {
  display: flex; align-items: center; gap: 5px; height: 32px; padding-inline: 12px;
  background: var(--mist); border-bottom: 1px solid var(--rule);
}
.browser__bar i { width: 8px; height: 8px; background: #bdbdbd; }
.browser__bar i:first-child { background: var(--red); }
.browser__bar span { margin-left: 10px; font-size: .8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; }

.browser__scroll { position: relative; aspect-ratio: 16 / 13; overflow: hidden; background: var(--mist); }
.browser__scroll img { position: absolute; top: 0; left: 0; animation: site-scroll 30s linear infinite; }
@keyframes site-scroll {
  0%, 4% { transform: translateY(0); }
  48%, 54% { transform: translateY(-50%); }
  96%, 100% { transform: translateY(0); }
}

/* Logos */
.logos { padding-block: clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.logos__title { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; color: var(--ink); margin-bottom: 22px; }
.logos__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--rule); }
.logos__row li { display: flex; align-items: center; justify-content: center; height: 92px; padding: 16px 20px; }
.logos__row li + li { border-left: 1px solid var(--rule); }
.logos__row img { max-height: 52px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: opacity .2s; }
.logos__row li:hover img { opacity: 1; }

/* Two-column split used by services and FAQ */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split__head { position: sticky; top: calc(var(--header-h) + 36px); }
.split__head .lede { margin-top: 22px; }
.split__head .btn-row { margin-top: 30px; }

/* Services */
.service { display: grid; grid-template-columns: 56px minmax(0, 1fr); padding-block: clamp(30px, 3.4vw, 46px); border-top: 1px solid var(--ink); }
.service:last-of-type { border-bottom: 1px solid var(--ink); }
.service__num { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--red); padding-top: .4em; }
.service h2 a { text-decoration: none; }
.service h2 a:hover { color: var(--red); }
.service p { margin-top: 14px; color: var(--text); }
.ticks { display: grid; gap: 6px; margin: 16px 0 20px; color: var(--muted); }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 9px; height: 8px; background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 36px; }
.extras p { margin-top: 8px; color: var(--muted); font-size: 1.0625rem; }

/* Work */
.work { background: var(--mist); }
.work__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.work__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.6vw, 36px); }
.project:nth-child(1) { grid-column: span 8; }
.project:nth-child(2) { grid-column: span 4; margin-top: clamp(0px, 9vw, 130px); }
.project:nth-child(3) { grid-column: span 5; }
.project:nth-child(4) { grid-column: span 7; margin-top: clamp(0px, -5vw, 0px); }
.project .browser { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.project .browser:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0, 0, 0, .16); }
.project__meta { margin-top: 18px; }
.project__where { font-family: var(--font-display); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.project .h4 { margin-top: 6px; font-size: clamp(1.25rem, 1.8vw, 1.625rem); }
.project .h4 a { text-decoration: none; }
.project .h4 a:hover { color: var(--red); }
.project p { margin-top: 6px; color: var(--muted); font-size: 1.0625rem; }
.work__foot { margin-top: clamp(40px, 5vw, 64px); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.about__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 72px), calc(100% - 72px) 100%, 0 100%);
}
.about__quote { margin-top: 22px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; letter-spacing: -.012em; color: var(--ink); }
.about__quote span { color: var(--red); }
.about__body .h2 { margin-bottom: 26px; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 36px; border-top: 1px solid var(--ink); }
.person { padding-top: 22px; }
.person__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.person__shot { flex: none; width: 68px; height: 68px; overflow: hidden; background: var(--mist); }
.person__shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.42); }
.person__head p { color: var(--muted); font-size: 1rem; line-height: 1.3; }
.person > p { color: var(--muted); font-size: 1.0625rem; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 30px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); }

/* Apex band and values */
.apex-band { position: relative; }
.apex-band img { width: 100%; height: clamp(240px, 38vw, 560px); object-fit: cover; object-position: center 60%; }
.apex-band figcaption { padding: 10px var(--gutter); font-size: .9375rem; color: var(--muted); border-bottom: 1px solid var(--rule); }
.values__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.values__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.value { padding: 26px clamp(18px, 2vw, 28px) 4px; }
.value:first-child { padding-left: 0; }
.value + .value { border-left: 1px solid var(--rule); }
.value p { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; }

/* Testimonials */
.voices { background: var(--band); color: #e8e8e8; clip-path: polygon(0 clamp(36px, 6vw, 96px), 34% 0, 100% clamp(60px, 9vw, 140px), 100% 100%, 0 100%); padding-top: calc(var(--section) + clamp(36px, 6vw, 96px)); padding-bottom: var(--section); }
.voices__lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: end; padding-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--rule-dark); }
.voices__lead .lede { margin-top: 20px; color: #cfcfcf; }
.quote-big .stars { font-size: 1.25rem; }
.quote-big p { margin-top: 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.7vw, 2.5rem); line-height: 1.14; letter-spacing: -.02em; color: #fff; }
.voices__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); }
.voice { padding-block: clamp(28px, 3vw, 42px); border-bottom: 1px solid var(--rule-dark); }
.voice > p { margin-top: 12px; }
.who { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.who img { width: 48px; height: 48px; object-fit: contain; background: #fff; }
.who__name { font-family: var(--font-display); font-weight: 800; color: #fff; line-height: 1.2; }
.who__role { font-size: 1rem; color: #bdbdbd; line-height: 1.3; }
.quote-big .who { margin-top: 18px; }

/* CTA band */
.cta { position: relative; background: var(--red); color: #fff; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: var(--red-deep); clip-path: polygon(44% 100%, 78% 0, 100% 36%, 100% 100%); }
.cta__inner { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding-block: clamp(56px, 7vw, 100px); }
.cta .h2 { color: #fff; }
.cta p { margin-top: 14px; font-size: clamp(1.15rem, 1.5vw, 1.3125rem); }
.cta .btn-row { justify-content: flex-end; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); padding-block: clamp(24px, 2.6vw, 34px); }
.faq:last-of-type { border-bottom: 1px solid var(--ink); }
.faq p { margin-top: 10px; color: var(--text); }
.faq-foot { margin-top: 26px; }

/* Contact */
.contact { background: var(--mist); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact__direct { margin-top: 32px; border-top: 1px solid var(--ink); }
.contact__direct a { display: block; padding-block: 16px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.contact__direct small { display: block; font-size: .9375rem; line-height: 1.35; color: var(--muted); }
.contact__direct strong + small { margin-top: 4px; }
.contact__direct strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.625rem); letter-spacing: -.015em; color: var(--ink); }
.contact__direct a:hover strong { color: var(--red); }

.form { background: #fff; border: 1px solid var(--ink); padding: clamp(22px, 3.4vw, 48px); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-family: var(--font-display); font-weight: 700; font-size: .9688rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; background: #fff; border: 1px solid #8c8c8c; border-radius: 0; font-size: 1.0625rem; line-height: 1.4;
}
.field input::placeholder, .field textarea::placeholder { color: #767676; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field select {
  width: 100%; padding: 14px 44px 14px 16px; border: 1px solid #8c8c8c; border-radius: 0; font-size: 1.0625rem; line-height: 1.4; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 7'%3E%3Cpath d='M0 0h10L5 7z' fill='%230d0d0d'/%3E%3C/svg%3E") no-repeat right 16px center / 10px 7px;
}
.field select:invalid { color: #767676; }
.field select option { color: var(--text); }
.field textarea { resize: vertical; min-height: 140px; }
.form .btn { flex: 1 1 220px; }

/* Service area */
.area__intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 5vw, 80px); align-items: end; padding-block: clamp(56px, 7vw, 96px) clamp(32px, 4vw, 52px); }
.area iframe { display: block; width: 100%; height: clamp(320px, 36vw, 480px); border: 0; filter: grayscale(1); transition: filter .3s; }
.area iframe:hover { filter: none; }

/* Footer */
.site-footer { background: var(--band); color: #c9c9c9; padding-block: clamp(56px, 6vw, 88px) 28px; font-size: 1.0625rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer img { height: 44px; width: auto; }
.site-footer__about p { margin-top: 18px; max-width: 34ch; }
.site-footer__insights { display: inline-flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: #fff; font-weight: 600; text-decoration: none; line-height: 1.35; }
.site-footer__insights::before { content: ''; flex: none; width: 10px; height: 9px; margin-top: .4em; background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.site-footer__insights:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer h3 { margin-bottom: 14px; font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; color: #fff; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { text-decoration: none; }
.site-footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--rule-dark); font-size: .9688rem; color: #a6a6a6; }
.site-footer__legal a:hover { color: #fff; }
.site-footer__legal span + span { margin-left: 16px; }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center; background: var(--ink); border: 1px solid #fff; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, background-color .2s;
}
.back-to-top::before { content: ''; width: 16px; height: 13px; background: #fff; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.back-to-top:hover { background: var(--red); }
.back-to-top.visible { opacity: 1; visibility: visible; }

/* Service pages */
.hero__stage--strip { padding-block: clamp(24px, 3vw, 40px); }
.site-strip { position: relative; display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content; animation: strip-marquee 40s linear infinite; }
.site-strip:hover { animation-play-state: paused; }
.site-strip .browser { flex: none; width: clamp(240px, 24vw, 380px); box-shadow: 0 14px 32px rgba(0, 0, 0, .16); }
.site-strip .browser__bar { height: 24px; padding-inline: 10px; }
.site-strip .browser__bar i { width: 7px; height: 7px; }
.site-strip img { aspect-ratio: 16 / 9; object-fit: cover; }
@keyframes strip-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

.features { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.features__shot { position: sticky; top: calc(var(--header-h) + 28px); }
.features__lede { margin-top: 20px; margin-bottom: clamp(28px, 3vw, 44px); }
.feature { padding-block: clamp(22px, 2.2vw, 30px); border-top: 1px solid var(--ink); }
.feature:last-child { border-bottom: 1px solid var(--ink); }
.feature p { margin-top: 8px; }

.statement { margin-top: clamp(40px, 5vw, 64px); max-width: 920px; font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.35; color: var(--text); }
.statement strong { font-family: var(--font-display); font-weight: 800; color: var(--ink); }

.tier { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 64px); padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--ink); }
.tier__amount { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.1rem, 3.8vw, 3.5rem); line-height: 1; letter-spacing: -.03em; color: var(--red); }
.tier__unit { display: block; margin-top: 10px; font-family: var(--font-display); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.tier__body > p { margin-top: 14px; }
.tier__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; border: 1px solid var(--rule); }
.tier__specs > div { padding: 16px 18px; }
.tier__specs > div + div { border-left: 1px solid var(--rule); }
.tier__specs strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--ink); }
.tier__specs span { display: block; margin-top: 2px; }
.tier__specs small { display: block; font-size: .9375rem; color: var(--muted); line-height: 1.35; }

.callout-dark { padding: clamp(28px, 4vw, 56px); margin-bottom: clamp(32px, 4vw, 56px); background: var(--band); color: #e8e8e8; }
.callout-dark p { margin-top: 14px; max-width: 900px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }

.plan { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 64px); padding: clamp(24px, 3.4vw, 48px); background: var(--mist); border: 1px solid var(--ink); }
.plan > div > p { margin-top: 12px; }
.plan .ticks { margin: 0; color: var(--text); }

.after { padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ink); }
.after__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(24px, 3vw, 40px); }
.option { padding: clamp(22px, 2.4vw, 32px); background: var(--mist); border: 1px solid var(--ink); }
.option__price { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.08; letter-spacing: -.025em; color: var(--red); }
.option .h4 { margin-top: 14px; }
.option p { margin-top: 8px; }
.after__note { margin-top: 18px; color: var(--muted); }

.cta__note { margin-top: 16px !important; font-size: 1rem !important; opacity: .85; }

.link-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.link-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 44px); background: #fff; border: 1px solid var(--ink); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.link-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(0, 0, 0, .12); }
.link-card:hover .arrow { transform: translateX(5px); }
.link-card p { margin: 14px 0 22px; flex: 1; }

.faq p + p { margin-top: .85em; }
.contact__lede { margin-top: 20px; }

/* Inner pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 26px; font-size: .9688rem; color: var(--muted); }
.crumbs a { color: var(--ink); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--red); }
.crumbs span + span::before, .crumbs a + span::before, .crumbs a + a::before { content: '/'; margin-right: 10px; color: var(--muted); }

.page-head { padding-block: clamp(40px, 5vw, 72px) clamp(36px, 4.4vw, 64px); border-bottom: 1px solid var(--ink); }
.page-head .display { font-size: clamp(2.3rem, 5vw, 4.75rem); line-height: 1.02; }
.page-head .lede { margin-top: 22px; max-width: 64ch; }
.page-head__meta { margin-top: 18px; font-size: 1rem; color: var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--ink); }
.stat { padding: clamp(20px, 2.4vw, 32px) clamp(14px, 2vw, 28px); }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.stat span { display: block; margin-top: 6px; font-size: 1rem; color: var(--muted); line-height: 1.3; }

.section__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(22px, 2.4vw, 32px); background: #fff; border: 1px solid var(--ink); }
.work .card, .card--mist { background: var(--mist); }
.work .card { background: #fff; }
.card > p { margin-top: 10px; }
.card > .ticks { margin-bottom: 0; }
.card > .more { margin-top: auto; padding-top: 18px; }
a.card { text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
a.card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(0, 0, 0, .12); }
a.card:hover .arrow { transform: translateX(5px); }
.card__media { width: calc(100% + 2 * clamp(22px, 2.4vw, 32px)); max-width: none; margin: calc(-1 * clamp(22px, 2.4vw, 32px)) calc(-1 * clamp(22px, 2.4vw, 32px)) 20px; border-bottom: 1px solid var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { padding: 4px 10px; border: 1px solid var(--rule); font-size: .9375rem; line-height: 1.35; color: var(--muted); }

.steps { counter-reset: step; }
.step { position: relative; padding: clamp(22px, 2.2vw, 30px) 0 clamp(22px, 2.2vw, 30px) 56px; border-top: 1px solid var(--ink); counter-increment: step; }
.step:last-child { border-bottom: 1px solid var(--ink); }
.step::before { content: counter(step); position: absolute; left: 0; top: clamp(22px, 2.2vw, 30px); font-family: var(--font-display); font-weight: 800; color: var(--red); line-height: 1.5; }
.step p { margin-top: 8px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--ink); }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 1.0625rem; line-height: 1.4; }
.table th, .table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table th + th, .table td + td { border-left: 1px solid var(--rule); }
.table thead th { font-family: var(--font-display); font-weight: 800; color: var(--ink); background: var(--mist); border-bottom: 1px solid var(--ink); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font-weight: 700; color: var(--ink); }

/* Long-form text: articles, legal pages, news */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: -.024em; color: var(--ink); text-wrap: balance; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { margin-top: 1.6em; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.18; letter-spacing: -.015em; color: var(--ink); }
.prose h4 { margin-top: 1.4em; font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { display: grid; gap: .5em; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 9px; background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.prose ol { padding-left: 1.4em; }
.prose ol li::marker { font-family: var(--font-display); font-weight: 800; color: var(--red); }
.prose a:not(.btn):not(.more) { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:not(.btn):not(.more):hover { color: var(--ink); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose img { border: 1px solid var(--rule); }
.prose figcaption { margin-top: 8px; font-size: .9688rem; color: var(--muted); }
.prose blockquote, .callout { padding: clamp(20px, 2.4vw, 32px); }
.prose blockquote > * + *, .callout > * + * { margin-top: .85em; }
.callout { background-color: var(--mist); background-image: var(--tex-veil), var(--tex-pixels); background-repeat: repeat-x; background-position: center bottom; background-size: auto, 1400px auto; background-blend-mode: normal, multiply; }
.prose blockquote { background: var(--band) var(--tex-cross); color: #f2f2f2; }
.prose blockquote strong { color: #fff; }
.prose .toc { padding-inline: 0; background: none; border-block: 1px solid var(--ink); }
.prose .toc a:not(.btn):not(.more) { color: var(--ink); text-decoration: none; }
.prose .toc a:not(.btn):not(.more):hover { color: var(--red); text-decoration: underline; }
.prose .float-img { float: right; width: min(46%, 440px); margin: .3em 0 1.2em clamp(20px, 3vw, 40px); }

.article-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(36px, 6vw, 96px); align-items: start; padding-block: clamp(40px, 5vw, 72px) var(--section); }
.article-aside { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: clamp(16px, 2vw, 24px); }
.aside-box { padding: clamp(20px, 2vw, 28px); background: var(--mist); }
.aside-box p { margin-top: 10px; font-size: 1.0625rem; }
.aside-box li + li { margin-top: 10px; }
.aside-box li a { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.aside-box li a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.aside-box .btn { width: 100%; margin-top: 16px; }

.aside-box--cta { position: relative; overflow: hidden; background: var(--red) var(--tex-cross); color: #fff; }
.aside-box--cta::before { content: ''; position: absolute; inset: 0; background: var(--red-deep); clip-path: polygon(30% 100%, 78% 28%, 100% 52%, 100% 100%); }
.aside-box--cta > * { position: relative; }
.aside-box--cta .h4 { color: #fff; font-size: 1.5rem; }

.aside-box--list { padding-inline: 0; background: none; }
.aside-box--list .ticks { margin-top: 12px; }
.aside-box--list .ticks li { padding-block: 10px; padding-left: 20px; border-top: 1px solid var(--rule); }
.aside-box--list .ticks li + li { margin-top: 0; }
.aside-box--list .ticks li::before { top: 1.15em; }

.aside-box--work { padding: 0; background: none; }
.aside-box--work .browser { margin-bottom: 16px; box-shadow: 0 14px 32px rgba(0, 0, 0, .14); }
.aside-box--work img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.aside-box--dark { background: var(--band) var(--tex-cross); color: #e8e8e8; }
.aside-box--dark .eyebrow, .aside-box--dark .h4 { color: #fff; }

.aside-box--quote { background-color: var(--mist); background-image: var(--tex-veil), var(--tex-pixels); background-repeat: repeat-x; background-position: center bottom; background-size: auto, 900px auto; background-blend-mode: normal, multiply; }
.aside-box--quote blockquote p { font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -.012em; color: var(--ink); }
.aside-box--quote .who { margin-top: 14px; font-size: 1rem; line-height: 1.3; }
.aside-box--quote .who strong { color: var(--ink); }

.aside-box--photo { position: relative; background: url('/images/background-apex-watertower.jpg') center 30% / cover; color: #fff; }
.aside-box--photo::before { content: ''; position: absolute; inset: 0; background: rgba(13, 13, 13, .72); }
.aside-box--photo > * { position: relative; }
.aside-box--photo .h4 { color: #fff; }
.aside-box--photo .ticks { margin-top: 12px; color: #fff; }
.aside-box--photo li a:hover { color: #fff; }

/* Textures */
.work, .contact { background-color: var(--mist); background-image: var(--tex-veil), var(--tex-pixels); background-repeat: repeat-x; background-position: center bottom; background-size: auto, 1920px auto; background-blend-mode: normal, multiply; }
.page-head { background-image: linear-gradient(rgba(255, 255, 255, .75), rgba(255, 255, 255, .75)), var(--tex-pixels); background-repeat: repeat-x; background-position: center bottom; background-size: auto, 1920px auto; }
.voices, .callout-dark { background-image: var(--tex-cross); }
.site-footer { position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ''; position: absolute; inset: 0; background: url('/images/Apex-Water-Tower-Urban-Silhouette.jpg') no-repeat right bottom / cover; filter: invert(1); opacity: .05; mix-blend-mode: screen; pointer-events: none; }
.site-footer > .wrap { position: relative; }
.cta { background-image: var(--tex-cross); }
.cta::before { background-image: var(--tex-cross); }

/* Contact pop-up */
html:has(.modal[open]) { overflow: hidden; }
.modal { width: min(680px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 0; background: #fff; color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.modal::backdrop { background: rgba(13, 13, 13, .72); }
.modal__head { position: relative; padding: clamp(22px, 3vw, 36px) clamp(56px, 7vw, 72px) clamp(22px, 3vw, 32px) clamp(20px, 3vw, 36px); background-color: var(--mist); background-image: var(--tex-veil), var(--tex-pixels); background-repeat: repeat-x; background-position: center bottom; background-size: auto, 1100px auto; background-blend-mode: normal, multiply; }
.modal__head .eyebrow { margin-bottom: 10px; }
.modal__head .h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.modal__head .h2 + p { margin-top: 10px; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; background: var(--ink); border: 0; cursor: pointer; }
.modal__close::before, .modal__close::after { content: ''; position: absolute; left: 12px; top: 21px; width: 20px; height: 2px; background: #fff; }
.modal__close::before { transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }
.modal__close:hover { background: var(--red); }
.modal .form { padding: clamp(20px, 3vw, 36px); border: 0; }
.modal .form__grid { margin-bottom: 20px; gap: 16px; }
.modal .field textarea { min-height: 110px; }
.modal .btn { width: 100%; }

/* Load-in */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .75s var(--ease) both; }
  @keyframes rise { from { transform: translateY(28px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .browser__scroll img, .site-strip { animation: none; }
  .project .browser, .arrow { transition: none; }
}

/* Tablet and down */
@media (max-width: 1120px) {
  .site-nav, .site-phone--wide { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header__cta { gap: 10px; }
}
@media (max-width: 960px) {
  .hero__top { padding-bottom: 0; }
  .hero__skyline { position: static; height: clamp(170px, 34vw, 300px); margin-top: 28px; }
  body { font-size: 1.0625rem; }
  .features, .tier, .plan, .link-cards, .after__grid, .section__head, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-aside { position: static; }
  .features__shot { position: static; }
  .hero__grid, .split, .work__head, .about, .values__head, .voices__lead, .cta__inner, .contact__grid, .area__intro { grid-template-columns: minmax(0, 1fr); }
  .split__head { position: static; }
  .logos__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logos__row li + li { border-left: 0; }
  .logos__row li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--rule); }
  .logos__row li:nth-child(n + 4) { border-top: 1px solid var(--rule); }
  .project:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value:nth-child(n) { padding-inline: 0 18px; border-left: 0; }
  .value:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--rule); }
  .voices__grid { grid-template-columns: minmax(0, 1fr); }
  .cta .btn-row { justify-content: flex-start; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__photo { max-width: 520px; }
}
@media (max-width: 640px) {
  .hero .eyebrow { font-size: .6875rem; letter-spacing: .09em; gap: 8px; }
  .hero__frames { grid-template-columns: minmax(0, 1fr); }
  .hero__frames .browser:nth-child(1), .hero__frames .browser:nth-child(3) { display: none; }
  .browser__scroll { aspect-ratio: 16 / 12; }
  .btn-row .btn { flex: 1 1 100%; }
  .logos__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos__row li:not(:nth-child(3n + 1)) { border-left: 0; }
  .logos__row li:nth-child(even) { border-left: 1px solid var(--rule); }
  .logos__row li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .logos__row li { height: 80px; }
  .service { grid-template-columns: minmax(0, 1fr); }
  .service__num { padding: 0 0 6px; }
  .extras, .people, .form__grid, .tier__specs, .cards, .cards--2 { grid-template-columns: minmax(0, 1fr); }
  .stat { padding-inline: 10px; }
  .stat span { font-size: .9375rem; }
  .prose .float-img { float: none; width: 100%; margin: 0; }
  .tier__specs > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .person + .person { margin-top: 10px; }
  .values__grid { grid-template-columns: minmax(0, 1fr); }
  .value:nth-child(n) { padding: 22px 0 22px; border-left: 0; }
  .value + .value { border-top: 1px solid var(--rule); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .site-logo img { height: 32px; }
  .modal .form__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer::before { background-size: auto 280px; }
}
