:root {
  --bg: #0D0E10;
  --surface: #16181B;
  --line: #23262A;
  --line-strong: #3A3E44;
  --text: #ECEBE6;
  --text-2: #C4C6C9;
  --muted: #A3A6AB;
  --ink: #111214;
  --paper: #ECEBE6;
  --paper-2: #F6F5F1;
  --paper-line: #C9C7BF;
  --paper-rule: #D8D6CF;
  --paper-accent: #6B5200;
  --accent: #E9C33B;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Archivo', 'Helvetica Neue', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--text); }
a:hover { color: #FFFFFF; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); }
.plain { text-decoration: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--accent); color: var(--ink); padding: 10px 14px; border-radius: 4px; font-weight: 700;
}
.skip:focus { top: 12px; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 16px 24px; border-radius: 4px; border: 0; cursor: pointer;
}
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { color: var(--ink); filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--line-strong); font-weight: 600; }
.btn-ghost:hover { border-color: var(--muted); }

/* Utility bar */
.utility { border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.utility .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13,14,16,0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header nav { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 16px 32px; }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 26px; flex: 1 1 auto; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; padding: 10px 0; }
.nav-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.nav-phone { text-decoration: none; font-family: var(--mono); font-size: 14px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 4px; white-space: nowrap; }
.nav-quote { font-size: 15px; padding: 12px 18px; white-space: nowrap; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; background: transparent; color: var(--text);
    border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer;
  }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .site-header.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-header.open .nav-links a:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .nav-phone { display: none; }
  .logo img { height: 34px; }
}

/* Section labels and headings */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); }
.on-paper .eyebrow { color: var(--paper-accent); }
.h2 { margin: 12px 0 0; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; font-weight: 800; font-stretch: 112%; }
.h3 { margin: 0; font-size: 22px; font-weight: 700; font-stretch: 110%; }
.section-head { margin-bottom: 36px; }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 { margin: 0; font-size: clamp(40px, 5.6vw, 76px); line-height: 0.98; font-weight: 800; font-stretch: 118%; letter-spacing: -0.01em; }
.hero-lede { margin: 26px 0 0; font-size: 20px; color: var(--text-2); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-media { flex: 1 1 520px; min-width: 0; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-radius: 6px; }
@media (max-width: 560px) {
  .hero { padding-top: 44px; gap: 36px; }
  .hero-media { flex-basis: 100%; }
  .hero-copy { flex-basis: 100%; }
}

/* Proof strip */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-item { padding: 24px 20px; }
.proof-item:first-child { padding-left: 0; }
.proof-item:last-child { padding-right: 0; }
.proof-item .label { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.proof-item .stars { display: flex; gap: 3px; color: var(--accent); }
.proof-item .big { font-weight: 700; margin-top: 6px; }
.proof-item .small { font-size: 14px; color: var(--muted); }
@media (max-width: 820px) {
  .proof .wrap { grid-template-columns: 1fr; }
  .proof-item, .proof-item:first-child, .proof-item:last-child { padding: 20px 0; }
  .proof-item + .proof-item { border-top: 1px solid var(--line); }
}

/* Services */
.services { padding-top: 96px; padding-bottom: 40px; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s ease;
}
.card:hover { border-color: var(--line-strong); }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover img { transform: scale(1.03); }
.card-media { overflow: hidden; }
.card-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body p { margin: 0; font-size: 15px; color: var(--muted); }
.card-more { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* Restyling */
.restyle { padding-top: 56px; padding-bottom: 96px; }
.tile {
  text-decoration: none; position: relative; border-radius: 6px; overflow: hidden;
  display: block; min-height: 300px; background: var(--surface);
}
.tile img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 20px; background: linear-gradient(to top, rgba(13,14,16,0.95), rgba(13,14,16,0)); }
.tile-cap p { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill { text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 18px; font-size: 15px; }
.pill:hover { border-color: var(--muted); }

/* Paper sections */
.on-paper { background: var(--paper); color: var(--ink); }
.on-paper a { color: var(--ink); }
.compare .wrap, .work .wrap, .steps, .faq .inner, .quote .wrap { padding-top: 96px; padding-bottom: 96px; }
.compare-lede { margin: 20px 0 0; font-size: 20px; max-width: 40em; }
.table-scroll { margin-top: 40px; overflow-x: auto; border: 1px solid var(--paper-line); border-radius: 6px; background: var(--paper-2); }
.table-scroll table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16px; }
.table-scroll thead tr { text-align: left; border-bottom: 2px solid var(--ink); }
.table-scroll thead th { padding: 18px 20px; font-size: 18px; }
.table-scroll thead th:first-child { width: 22%; }
.table-scroll tbody tr { border-bottom: 1px solid var(--paper-rule); }
.table-scroll tbody tr:last-child { border-bottom: 0; }
.table-scroll tbody th { padding: 16px 20px; text-align: left; font-weight: 600; }
.table-scroll td { padding: 16px 20px; }

/* Work */
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 36px; }
.work-head > a { font-weight: 600; font-size: 15px; }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
.work-grid figure { margin: 0; }
.work-grid img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 4px; }
.work-grid figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 8px; }

/* Reviews */
.reviews .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.reviews-score { flex: 1 1 320px; min-width: 0; }
.reviews-score .num { font-size: 120px; line-height: 1; font-weight: 800; font-stretch: 120%; margin-top: 12px; }
.reviews-score p { margin: 12px 0 0; font-size: 20px; }
.reviews-score a { display: inline-block; margin-top: 20px; font-weight: 600; }
.reviews blockquote { flex: 1.4 1 420px; min-width: 0; margin: 0; background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: 6px; padding: 40px; }
.reviews blockquote p { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; font-weight: 600; }
.reviews blockquote footer { margin-top: 20px; font-family: var(--mono); font-size: 12px; color: #4A4D52; }
@media (max-width: 560px) { .reviews blockquote { padding: 28px 24px; } .reviews-score .num { font-size: 96px; } }

/* How it works */
.steps ol { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .steps ol { grid-template-columns: 1fr; gap: 32px; } }
.steps li { border-top: 2px solid var(--accent); padding-top: 20px; }
.steps .step-n { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.steps h3 { margin: 8px 0; font-size: 22px; font-stretch: 110%; }
.steps p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq .inner { max-width: 900px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.faq .h2 { margin-bottom: 32px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { color: var(--accent); font-size: 26px; line-height: 1; transition: transform .2s ease; flex: none; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--text-2); }

/* Quote */
.quote { background: var(--surface); border-top: 1px solid var(--line); }
.quote .wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.quote-info { flex: 1 1 360px; min-width: 0; }
.quote-info > p { margin: 20px 0 32px; color: var(--muted); }
.quote-facts { border-top: 1px solid var(--line-strong); padding-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.quote-facts .label { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.quote-facts .val { margin-top: 4px; }
.quote-facts a { font-size: 14px; }
.quote-form { flex: 1.4 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-content: start; }
@media (max-width: 600px) { .quote-form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full, .quote-form fieldset, .form-actions { grid-column: 1 / -1; }
.field label, .quote-form legend { font-size: 14px; font-weight: 600; }
.field input:not([type=file]), .field textarea {
  background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 4px; padding: 14px; width: 100%;
}
.field input:not([type=file]):focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }
.field input[type=file] { color: var(--muted); font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
.quote-form fieldset { border: 0; margin: 0; padding: 0; }
.quote-form legend { margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; font-size: 15px; cursor: pointer; }
.chip input { accent-color: var(--accent); margin: 0; }
.chip:has(input:checked) { border-color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions .btn { padding: 16px 28px; font-size: 17px; }
.form-status { font-size: 15px; color: var(--text-2); }
.form-status.error { color: #FF8A7A; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-grid { padding-top: 56px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; font-size: 15px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid img { height: 44px; width: auto; display: block; }
.footer-grid p { margin: 16px 0 0; color: var(--muted); }
.footer-grid .label { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.footer-grid .links { display: flex; flex-direction: column; gap: 8px; }
.footer-grid .links a { text-decoration: none; }
.footer-base { padding-top: 20px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
