@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --parchment: #fdfdf7;
  --sand: #f5f2de;
  --ink: #0b0b0a;
  --graphite: #55554f;
  --sky: #0077cc;
  --sky-deep: #005fa3;
  --line: rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  /* comp is 1264px wide: 1u = 1px of the comp at that width, fluid elsewhere */
  --u: calc(min(100vw, 1600px) / 1264);
  --gutter: clamp(20px, 4vw, 52px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: rgba(0,0,0,.28) var(--parchment); }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: "lnum";
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sky); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- first viewport: the approved comp, measured ---------- */
.hero {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  aspect-ratio: 1264 / 848;
  overflow: hidden;
}
.hero > * { position: absolute; margin: 0; }

.plate { object-fit: cover; border-radius: calc(18 * var(--u)); }
.photo-left { border-radius: calc(18 * var(--u)); }
.chip-inline { display: none; }
.hero .r-subline, .hero .r-call-btn, .hero .r-estimate-link { translate: 0 calc(18 * var(--u)); }

.hero .display, .hero .svc-list { position: static; margin: 0; padding: 0; list-style: none; font-weight: inherit; font-size: inherit; }

.logo-mark {
  display: flex; align-items: center;
  font-size: calc(49 * var(--u)); font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  text-decoration: none;
}
.logo-word {
  display: flex; align-items: center;
  font-size: calc(19 * var(--u)); font-weight: 500; line-height: 1.02; letter-spacing: -0.01em;
}
.nav {
  display: flex; justify-content: space-between; align-items: center;
  font-size: calc(18.5 * var(--u)); font-weight: 400; letter-spacing: -0.01em; word-spacing: 0.08em;
}
.nav a { text-decoration: none; padding-block: calc(6 * var(--u)); }
.nav a:hover { color: var(--sky-deep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: calc(9 * var(--u));
  border-radius: calc(10 * var(--u)); text-decoration: none; font-weight: 400;
  font-size: calc(18.5 * var(--u)); letter-spacing: -0.015em; word-spacing: 0.08em; white-space: nowrap;
  transition: background-color 160ms cubic-bezier(.2,.7,.2,1), transform 160ms cubic-bezier(.2,.7,.2,1);
}
.btn-sky { background: var(--sky); color: #fff; }
.btn-sky:hover { background: var(--sky-deep); }
.btn-sky:active { transform: translateY(1px); }
.ico { width: calc(18 * var(--u)); height: calc(18 * var(--u)); flex: none; }

.display .line {
  display: flex; align-items: center; white-space: nowrap;
  font-size: calc(119 * var(--u)); font-weight: 300; line-height: 1; letter-spacing: -0.035em; word-spacing: 0.1em;
}
.subline {
  text-align: center; font-size: calc(22.5 * var(--u)); font-weight: 400; line-height: 1.3; letter-spacing: -0.02em;
}
.text-link {
  display: flex; align-items: center; justify-content: center;
  font-size: calc(19.5 * var(--u)); font-weight: 500; white-space: nowrap; letter-spacing: -0.035em; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: calc(5 * var(--u)); text-decoration-color: var(--sky);
}
.text-link:hover { color: var(--sky-deep); }
.label { display: flex; align-items: center; font-size: calc(19 * var(--u)); font-weight: 400; letter-spacing: -0.01em; }
.svc {
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
  font-size: calc(34 * var(--u)); font-weight: 400; line-height: 1; letter-spacing: -0.025em; word-spacing: 0.1em;
}
.note { display: flex; align-items: center; font-size: calc(13.5 * var(--u)); letter-spacing: -0.015em; white-space: nowrap; }

.hero .r-logo-mark, .hero .r-logo-word, .hero .r-nav, .hero .r-phone-cta,
.hero .r-head-any-job, .hero .r-chip-truss, .hero .r-head-any-scale, .hero .r-chip-path,
.hero .r-head-done, .hero .r-photo-left, .hero .r-photo-sliver, .hero .r-subline,
.hero .r-call-btn, .hero .r-estimate-link, .hero .r-photo-right, .hero .r-services-label,
.hero .r-svc-1, .hero .r-svc-2, .hero .r-svc-3, .hero .r-usdc-note { position: absolute; }

/* ---------- one authored moment: the work drops into the sentence ---------- */
@media (prefers-reduced-motion: no-preference) {
  .r-chip-truss, .r-chip-path { animation: chip-in 900ms var(--ease) both; }
  .r-chip-path { animation-delay: 140ms; }
  @keyframes chip-in { from { transform: scale(.82) rotate(-4deg); opacity: .001; filter: blur(6px); } }
}

/* ---------- sections below the first viewport ---------- */
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 120px); }
.section.flush-top { padding-top: 0; }
.h2 {
  margin: 0; font-weight: 300; font-size: clamp(40px, 4.8vw, 60px); line-height: 0.98; letter-spacing: -0.035em; word-spacing: 0.1em;
  text-wrap: balance;
}
.lead { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; letter-spacing: -0.01em; color: var(--graphite); max-width: 34em; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 48px; margin-bottom: clamp(36px, 5vw, 64px); }

/* services: rows, not cards */
.svc-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) clamp(140px, 22vw, 280px);
  gap: clamp(16px, 3vw, 48px); align-items: center;
  padding-block: clamp(22px, 3vw, 36px); border-bottom: 1px solid var(--line);
}
.svc-row h3 { margin: 0; font-weight: 300; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.03em; word-spacing: 0.1em; }
.svc-row p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--graphite); }
.svc-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--ink); }
.steps li::before { content: counter(step); font-size: 15px; color: var(--graphite); }
.steps h3 { margin: 0; font-weight: 400; font-size: 23px; letter-spacing: -0.02em; }
.steps p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--graphite); }

/* payments: the warm sand card */
.pay {
  background: var(--sand); border-radius: 18px; box-shadow: rgba(0,0,0,.12) 0 .5px 2px 0;
  padding: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
}
.pay-facts { list-style: none; margin: 0; padding: 0; }
.pay-facts li { font-variant-numeric: tabular-nums; display: flex; justify-content: space-between; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); font-size: 17px; }
.pay-facts li:first-child { border-top: 1px solid var(--line); }
.pay-facts span:last-child { color: var(--graphite); text-align: right; }

/* contact: dark banner */
.contact { background: #000; color: #fff; }
.contact .h2 { font-size: clamp(44px, 6.4vw, 96px); line-height: .92; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.phone-big {
  display: inline-block; margin-top: 28px; color: #fff; text-decoration: none;
  font-weight: 300; font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -0.02em; word-spacing: 0.08em; line-height: 1;
  border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 8px;
  transition: border-color 200ms var(--ease);
}
.phone-big:hover { border-color: #fff; }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; font-size: 17px; line-height: 1.45; }
.contact dt { color: rgba(255,255,255,.62); }
.contact dd { margin: 0; }
.contact a:not(.phone-big) { text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 4px; }
.contact a:not(.phone-big):hover { text-decoration-color: #fff; }
.contact :focus-visible { outline-color: #fff; }
.footer { background: #000; color: rgba(255,255,255,.62); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 28px; border-top: 1px solid rgba(255,255,255,.14); }

@media (max-width: 900px) {
  .svc-row { grid-template-columns: minmax(0, 1fr) clamp(110px, 30vw, 200px); }
  .svc-row p { grid-column: 1; }
  .svc-row img { grid-column: 2; grid-row: 1 / span 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- phone: the first viewport reflows, same parts, same order of reading ---------- */
@media (max-width: 1023px) {
  :root { --u: calc(100vw / 390); }
  .hero { max-width: 760px; }
  .hero .r-chip-truss, .hero .r-chip-path { display: none; }
  .chip-inline { display: inline-block; height: 0.78em; width: auto; aspect-ratio: 1; object-fit: cover; border-radius: 0.14em; margin-left: 0.18em; vertical-align: -0.02em; }
  .hero .r-subline, .hero .r-call-btn, .hero .r-estimate-link { translate: none; }
  .hero {
    aspect-ratio: auto; overflow: visible;
    display: grid; grid-template-columns: auto auto minmax(0, 1fr);
    column-gap: 10px; row-gap: 0;
    padding: 16px 16px 8px;
  }
  .hero > *, .hero .r-logo-mark, .hero .r-logo-word, .hero .r-nav, .hero .r-phone-cta,
  .hero .r-head-any-job, .hero .r-chip-truss, .hero .r-head-any-scale, .hero .r-chip-path,
  .hero .r-head-done, .hero .r-photo-left, .hero .r-photo-sliver, .hero .r-subline,
  .hero .r-call-btn, .hero .r-estimate-link, .hero .r-photo-right, .hero .r-services-label,
  .hero .r-svc-1, .hero .r-svc-2, .hero .r-svc-3, .hero .r-usdc-note {
    position: static; left: auto; top: auto; width: auto; height: auto;
  }
  .logo-mark { grid-row: 1; grid-column: 1; font-size: 34px; }
  .logo-word { grid-row: 1; grid-column: 2; font-size: 13px; }
  .hero .r-phone-cta { grid-row: 1; grid-column: 3; justify-self: end; }
  .btn { font-size: 16px; gap: 8px; border-radius: 10px; }
  .hero .btn-sm { padding: 10px 12px; font-size: 14px; gap: 6px; }
  .ico { width: 15px; height: 15px; }
  .nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: 6px 20px; flex-wrap: wrap; font-size: 15px; margin-top: 14px; }
  .nav a { padding-block: 10px; }
  .hero .display { grid-row: 3; grid-column: 1 / -1; margin-top: 28px; }
  .display .line { display: block; font-size: clamp(52px, 12.5vw, 96px); line-height: 1.04; white-space: normal; }
  .hero .r-chip-truss { grid-row: 4; grid-column: 1; width: 76px; height: 76px; margin-top: 16px; border-radius: 14px; }
  .hero .r-chip-path { grid-row: 4; grid-column: 2; width: 68px; height: 76px; margin-top: 16px; border-radius: 14px; }
  .subline { grid-row: 5; grid-column: 1 / -1; text-align: left; font-size: clamp(18px, 2.6vw, 21px); line-height: 1.45; margin-top: 22px; }
  .r-call-btn { grid-row: 6; grid-column: 1 / -1; padding: 16px; margin-top: 22px; }
  .text-link { grid-row: 7; grid-column: 1 / -1; font-size: 16px; padding: 14px 0; text-underline-offset: 5px; }
  .hero .r-photo-left { grid-row: 8; grid-column: 1 / -1; margin-top: 18px; width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; }
  .r-photo-sliver, .r-photo-right { display: none; }
  .label { grid-row: 9; grid-column: 1 / -1; margin-top: 36px; font-size: 15px; color: var(--graphite); }
  .hero .svc-list { grid-row: 10; grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
  .svc { justify-content: flex-start; font-size: 27px; white-space: normal; }
  .note { grid-row: 11; grid-column: 1 / -1; margin-top: 20px; font-size: 14px; white-space: normal; }
  .svc-row { grid-template-columns: minmax(0, 1fr) 104px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .contact dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .contact dd { margin-bottom: 14px; }
}

/* owner portrait in the contact band */
.contact-side { display: flex; flex-direction: column; gap: 36px; }
.owner { margin: 0; display: flex; align-items: flex-end; gap: 22px; }
.owner img { width: clamp(140px, 14vw, 200px); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: var(--radius); flex: none; }
.owner figcaption { display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px; }
.owner-name { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
.owner-role { font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.62); max-width: 24em; }
