:root {
  --ink: #15382e;
  --ink-deep: #0c241d;
  --ink-soft: #224a3e;
  --paper: #f7f2e7;
  --paper-bright: #fffdf7;
  --paper-deep: #e9dfcf;
  --sky: #d9ebe5;
  --signal: #d9ff43;
  --signal-dark: #a9cc24;
  --roof: #ed6b45;
  --roof-dark: #bd482b;
  --road: #91a89f;
  --muted: #596a62;
  --line: rgba(21, 56, 46, 0.18);
  --line-dark: rgba(247, 242, 231, 0.2);
  --display: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page: min(92vw, 1440px);
  --lift: 0 0 0 1px rgba(21, 56, 46, 0.05), 0 8px 24px rgba(21, 56, 46, 0.08), 0 24px 58px rgba(21, 56, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink-deep);
}

body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--ink-deep);
  background: var(--signal);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--ink-deep);
  background: var(--signal);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.roofline-pattern {
  position: absolute;
  z-index: 0;
  top: 94px;
  right: 0;
  width: min(58vw, 900px);
  height: 640px;
  pointer-events: none;
  opacity: 0.34;
  background:
    linear-gradient(135deg, transparent 46%, rgba(237, 107, 69, 0.24) 47%, rgba(237, 107, 69, 0.24) 50%, transparent 51%) 0 24px / 160px 92px,
    linear-gradient(225deg, transparent 46%, rgba(237, 107, 69, 0.16) 47%, rgba(237, 107, 69, 0.16) 50%, transparent 51%) 80px 24px / 160px 92px;
  -webkit-mask-image: linear-gradient(to bottom left, #000 15%, transparent 76%);
  mask-image: linear-gradient(to bottom left, #000 15%, transparent 76%);
}

.site-header,
.hero,
.handoff,
.approach,
.closing,
footer {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand:focus-visible,
.text-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(21, 56, 46, 0.16);
}

.brand-name {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.build-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.build-status span {
  width: 8px;
  height: 8px;
  background: var(--roof);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(237, 107, 69, 0.17);
}

.hero {
  min-height: calc(100svh - 96px);
  padding: clamp(54px, 7vw, 112px) 0 clamp(76px, 9vw, 138px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(50px, 7vw, 116px);
  align-items: center;
}

.eyebrow,
.section-number,
.flow-board-top,
.principle > p:first-child {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 25px;
  border: 5px solid var(--roof);
  border-bottom: 0;
  transform: rotate(45deg) scale(0.58);
  transform-origin: center;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--display);
  margin-top: 0;
}

h1 {
  max-width: 930px;
  margin: 28px 0 32px;
  font-size: clamp(3.55rem, 6.8vw, 7.35rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  font-weight: 700;
}

.hero-intro {
  max-width: 700px;
  margin: 0 0 34px;
  color: #455e54;
  font-size: clamp(1.06rem, 1.42vw, 1.35rem);
  line-height: 1.56;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.text-link span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--paper-bright);
  background: var(--ink);
  border-radius: 50%;
  transition: transform 160ms ease, background 160ms ease;
}

.text-link:hover span {
  color: var(--ink-deep);
  background: var(--signal-dark);
  transform: translate(3px, 3px);
}

.home-service-map {
  position: relative;
  min-height: 650px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink-deep);
  border-radius: 28px;
  box-shadow: 18px 18px 0 var(--roof), var(--lift);
}

.home-service-map::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 77% 18%, rgba(217, 255, 67, 0.12), transparent 24%),
    linear-gradient(rgba(247, 242, 231, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 242, 231, 0.035) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
}

.flow-board-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  color: #c7d4ce;
  border-bottom: 1px solid var(--line-dark);
}

.flow-board-top span:last-child {
  color: var(--signal);
}

.neighborhood-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  margin: 16px 0 4px;
  overflow: visible;
}

.street {
  fill: none;
  stroke: rgba(145, 168, 159, 0.22);
  stroke-width: 36;
  stroke-linecap: round;
}

.service-route {
  fill: none;
  stroke: var(--signal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 3 12;
}

.map-home {
  fill: rgba(237, 107, 69, 0.12);
  stroke: var(--roof);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-van {
  fill: var(--signal);
  stroke: var(--ink-deep);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-stop {
  fill: var(--paper-bright);
  stroke: var(--roof);
  stroke-width: 5;
}

.flow-list {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.flow-list li {
  min-height: 104px;
  padding: 16px;
  display: grid;
  align-content: start;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.flow-list span {
  font-family: var(--mono);
  color: var(--roof);
  font-size: 0.68rem;
}

.flow-list strong {
  margin-top: 7px;
  font-family: var(--display);
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.flow-list small {
  margin-top: 2px;
  color: #aebdb7;
  font-size: 0.76rem;
}

.handoff {
  padding: clamp(68px, 9vw, 136px) clamp(34px, 6vw, 94px);
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 46%, rgba(237, 107, 69, 0.12) 47%, rgba(237, 107, 69, 0.12) 50%, transparent 51%) right -12px top 28px / 170px 96px repeat-x,
    var(--sky);
  border-radius: 32px;
}

.section-number {
  color: var(--muted);
}

.handoff > .section-number {
  align-self: start;
  justify-self: start;
  padding: 7px 10px;
  color: var(--ink-deep);
  background: var(--paper-bright);
  border-radius: 6px;
}

.handoff > div {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.8fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: end;
}

.handoff h2,
.approach h2,
.closing h2 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5vw, 5.65rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.handoff > div > p {
  margin: 0;
  color: #405a50;
  font-size: 1.04rem;
}

.handoff > div > p:last-child {
  padding: 22px;
  color: var(--paper-bright);
  background: var(--ink);
  border-radius: 18px;
  box-shadow: 10px 10px 0 rgba(237, 107, 69, 0.74);
}

.signal-strip {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: clamp(70px, 9vw, 120px);
  padding: 22px 4vw;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2.6vw, 42px);
  overflow: hidden;
  color: var(--paper-bright);
  background: var(--roof-dark);
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1vw, 0.91rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.signal-strip i {
  color: var(--signal);
  font-style: normal;
}

.approach {
  padding: clamp(88px, 11vw, 170px) 0;
}

.approach-heading {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
  margin-bottom: clamp(64px, 8vw, 112px);
}

.approach h2 {
  max-width: 1120px;
}

.principles {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 20px;
}

.principle {
  position: relative;
  min-height: 410px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper-bright);
  border-radius: 24px;
  box-shadow: var(--lift);
}

.principle::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 74px;
  right: -32px;
  width: 170px;
  height: 110px;
  opacity: 0.12;
  background: var(--roof);
  clip-path: polygon(0 48%, 50% 0, 100% 48%, 84% 48%, 84% 100%, 16% 100%, 16% 48%);
}

.principle > * {
  position: relative;
  z-index: 1;
}

.principle-primary {
  color: var(--paper-bright);
  background: var(--ink);
}

.principle-primary::after {
  opacity: 0.28;
  background: var(--signal);
}

.principle > p:first-child {
  color: var(--roof-dark);
}

.principle-primary > p:first-child {
  color: var(--signal);
}

.principle h3 {
  margin: auto 0 22px;
  font-size: clamp(1.65rem, 2.15vw, 2.42rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.principle > p:last-child {
  margin: 0;
  color: #4f6259;
  font-size: 0.96rem;
}

.principle-primary > p:last-child {
  color: #c8d4cf;
}

.closing {
  position: relative;
  padding: clamp(72px, 9vw, 130px) clamp(30px, 5vw, 72px);
  overflow: hidden;
  color: var(--paper-bright);
  background: var(--ink-soft);
  border-radius: 32px 32px 0 0;
}

.closing::before,
.closing::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.closing::before {
  right: -4%;
  bottom: -20px;
  width: 56%;
  height: 58%;
  opacity: 0.16;
  background:
    linear-gradient(135deg, transparent 46%, var(--signal) 47%, var(--signal) 50%, transparent 51%) 0 0 / 160px 92px,
    linear-gradient(225deg, transparent 46%, var(--signal) 47%, var(--signal) 50%, transparent 51%) 80px 0 / 160px 92px;
}

.closing::after {
  right: 6%;
  bottom: 0;
  width: 220px;
  height: 135px;
  opacity: 0.75;
  background: var(--roof);
  clip-path: polygon(0 45%, 50% 0, 100% 45%, 84% 45%, 84% 100%, 16% 100%, 16% 45%);
}

.closing .section-number {
  color: #b8c9c1;
}

.closing h2 {
  position: relative;
  z-index: 1;
  margin-top: clamp(82px, 12vw, 164px);
  max-width: 1120px;
  color: var(--paper-bright);
}

.closing-meta {
  position: relative;
  z-index: 1;
  margin-top: clamp(70px, 9vw, 126px);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line-dark);
}

.closing-meta p {
  margin: 0;
}

.domain {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: var(--signal);
  background: var(--ink-deep);
  border-radius: 6px;
  font-family: var(--mono);
  font-weight: 700;
}

footer {
  min-height: 160px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}

.brand-footer {
  color: var(--ink);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 1080px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 900px;
  }

  .home-service-map {
    min-height: 620px;
  }

  .handoff,
  .approach-heading {
    grid-template-columns: 1fr;
  }

  .handoff > div {
    grid-template-columns: 1fr;
  }

  .principles {
    grid-template-columns: 1fr 1fr;
  }

  .principle-primary {
    grid-column: 1 / -1;
    min-height: 350px;
  }
}

@media (max-width: 640px) {
  :root {
    --page: min(90vw, 1440px);
  }

  .roofline-pattern {
    top: 76px;
    width: 100%;
    height: 480px;
    opacity: 0.25;
  }

  .site-header {
    min-height: 78px;
  }

  .build-status {
    font-size: 0;
    gap: 0;
  }

  .build-status::after {
    content: "In development";
    font-size: 0.62rem;
  }

  .build-status span {
    margin-right: 8px;
  }

  .hero {
    padding-top: 50px;
    gap: 60px;
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 5.2rem);
  }

  .home-service-map {
    min-height: 600px;
    padding: 17px;
    border-radius: 22px;
    box-shadow: 10px 10px 0 var(--roof), var(--lift);
  }

  .flow-board-top {
    font-size: 0.61rem;
  }

  .neighborhood-map {
    margin-block: 12px 0;
  }

  .flow-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-list li {
    min-height: 94px;
    padding: 13px;
  }

  .handoff {
    width: 90vw;
    padding: 54px 26px;
    border-radius: 24px;
  }

  .handoff > div > p:last-child {
    box-shadow: 8px 8px 0 rgba(237, 107, 69, 0.74);
  }

  .signal-strip {
    justify-content: flex-start;
  }

  .signal-strip span:nth-of-type(n+4),
  .signal-strip i:nth-of-type(n+3) {
    display: none;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle-primary {
    grid-column: auto;
    min-height: 350px;
    padding: 26px;
  }

  .closing {
    width: 100%;
    padding-inline: 5vw;
    border-radius: 0;
  }

  .closing::after {
    right: -54px;
  }

  .closing-meta,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    min-height: 190px;
    padding: 50px 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
