:root {
  --paper: #eef0ec;
  --panel: #ffffff;
  --ink: #1e2a2f;
  --ink-soft: #5b6a70;
  --accent: #d3560a;
  --accent-ink: #ffffff;
  --steel: #2c5f6f;
  --line: #d2d6ce;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(var(--line) 1px, transparent 1px) 0 0/24px 24px,
    var(--paper);
  color: var(--ink);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.55;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand .tick {
  color: var(--accent);
  font-family: 'Courier New', monospace;
}

nav.links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 600;
}

nav.links a {
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

nav.links a:hover, nav.links a:focus-visible { color: var(--ink); border-color: var(--accent); }

.call-btn {
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}
.call-btn:hover { background: var(--accent); }

@media (max-width: 720px) {
  nav.links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 16ch;
}

.hero p.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 32px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--ink);
}

.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #b8460a; border-color: #b8460a; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.measure-line {
  margin-top: 48px;
  height: 22px;
  background-image: repeating-linear-gradient(
    to right, var(--ink) 0, var(--ink) 1px, transparent 1px, transparent 24px
  );
  background-position: bottom;
  background-size: 100% 1px;
  background-repeat: no-repeat;
  position: relative;
}
.measure-line::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100%;
  background-image: repeating-linear-gradient(
    to right, transparent 0, transparent 22px, var(--ink) 22px, var(--ink) 24px
  );
}

/* ---------- Section shell ---------- */
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 36px; }

.section-num {
  font-family: 'Courier New', monospace;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

h2 { font-size: 1.6rem; font-weight: 800; margin: 0; letter-spacing: -0.01em; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.service-card .icon {
  width: 34px; height: 34px;
  margin-bottom: 14px;
}

.service-card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.service-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.job-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.job-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.job-thumb.t1 { background: linear-gradient(135deg, var(--steel), #1c3e48); }
.job-thumb.t2 { background: linear-gradient(135deg, var(--accent), #8a3406); }
.job-thumb.t3 { background: linear-gradient(135deg, #4a5568, #1e2a2f); }

.job-body { padding: 16px 18px 20px; }
.job-body h3 { margin: 0 0 4px; font-size: 1rem; }
.job-body p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }

.job-note {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Form ---------- */
.form-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 640px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--steel);
  outline-offset: 1px;
}

textarea { resize: vertical; min-height: 96px; }

.field { margin-bottom: 16px; }

.submit-row { margin-top: 8px; }

.form-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 12px;
}

#lead-status { font-size: 0.88rem; margin-top: 14px; display: none; }
#lead-status.ok { color: #1a7f4a; display: block; }
#lead-status.err { color: #b8460a; display: block; }

/* ---------- Payment ---------- */
.pay-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pay-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.pay-card p { margin: 0; color: rgba(255,255,255,0.7); font-size: 0.92rem; max-width: 42ch; }

.pay-btn {
  background: var(--accent);
  color: #fff;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  font-size: 0.95rem;
}
.pay-btn:hover { background: #b8460a; }

/* ---------- Footer ---------- */
footer.site {
  padding: 40px 0 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

footer.site a { text-decoration: none; color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }