:root {
  --bg: #faf7f2;
  --bg-alt: #ffffff;
  --ink: #18021e;
  --ink-muted: #6b6470;
  --accent: #ff0001;
  --accent-deep: #b20103;
  --rule: rgba(24, 2, 30, 0.12);
  --max-w: 1180px;
  --pad-x: clamp(20px, 5vw, 64px);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(rgba(24, 2, 30, 0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- Top bar ---------- */

.topbar {
  position: relative;
  border-bottom: 1px solid var(--rule);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand img {
  height: 34px;
  width: auto;
  transform: translateY(-3px); /* visually center text within flex line */
}

.brand-tag {
  font-size: 9px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  border-left: 1.5px solid var(--accent);
  padding-left: 10px;
  margin-left: 0;
  line-height: 1.2;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  font-weight: 500;
}

.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
}

@media (max-width: 720px) {
  .brand-tag { display: none; }
  .nav { gap: 18px; font-size: 13px; }
  .brand img { height: 28px; }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(60px, 11vw, 140px);
  padding-bottom: clamp(80px, 14vw, 180px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.h-display {
  font-family: var(--font-sans);
  font-size: clamp(40px, 7.4vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0;
  max-width: 16ch;
}

.h-display .accent { color: var(--accent); }

.h-display .em-stroke {
  position: relative;
  display: inline-block;
}

.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 32px 0 0 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translate(0, -1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn .arrow { transition: transform 0.18s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero side ornament */
.hero-mark {
  position: absolute;
  right: var(--pad-x);
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--ink-muted);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .hero-mark { display: none; }
}

/* ---------- Section primitives ---------- */

.section {
  padding-top: clamp(72px, 10vw, 130px);
  padding-bottom: clamp(72px, 10vw, 130px);
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 56px;
}

@media (min-width: 880px) {
  .section-head { grid-template-columns: 280px 1fr; gap: 60px; align-items: end; }
  .section-cta { padding-left: 340px; } /* 280px label col + 60px gap */
}

.section-cta { margin-top: 8px; }

.section-label {
  font-size: 11px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0;
  max-width: 22ch;
}

/* ---------- Service tiles (home) ---------- */

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 720px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

.tile {
  background: var(--bg);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background 0.2s ease;
  min-height: 220px;
}

.tile:hover { background: var(--bg-alt); }
.tile:hover .tile-arrow { color: var(--accent); transform: translate(4px, -4px); }

.tile-num {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
}

.tile-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

.tile-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0 0 auto 0;
}

.tile-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 18px;
  color: var(--ink-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  display: inline-block;
}

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 56px; } }

.pillar { display: flex; flex-direction: column; gap: 14px; }

.pillar-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
}

.pillar-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.pillar-body { color: var(--ink-muted); font-size: 16px; line-height: 1.55; margin: 0; }

/* ---------- Confirmidy strip ---------- */

.partner {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(56px, 8vw, 96px) 0;
}

.partner-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 880px) {
  .partner-inner { grid-template-columns: 240px 1fr; gap: 60px; }
}

.partner-label {
  font-size: 11px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.partner-text {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0;
  max-width: 60ch;
}

.partner-text em { color: var(--accent); font-style: normal; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0 36px;
  background: var(--bg);
}

.foot-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 720px) {
  .foot-inner { flex-direction: row; justify-content: space-between; align-items: end; }
}

.foot-tag {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 28ch;
  line-height: 1.15;
}

.foot-tag .accent { color: var(--accent); }

.foot-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

.foot-meta a { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.foot-meta a:hover { color: var(--accent); }

.foot-est {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Page hero (slim) ---------- */

.page-hero {
  padding-top: clamp(60px, 9vw, 110px);
  padding-bottom: clamp(48px, 7vw, 80px);
}

.page-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0;
  max-width: 18ch;
}

.page-hero .lede { margin-top: 28px; }

/* ---------- Services list ---------- */

.svc-list {
  display: flex;
  flex-direction: column;
}

.svc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: clamp(48px, 6vw, 72px) 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 880px) {
  .svc { grid-template-columns: 100px 1fr 1fr; gap: 56px; }
}

.svc-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
}

.svc-title {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 16px 0;
  line-height: 1.05;
}

.svc-desc { color: var(--ink-muted); font-size: 16px; line-height: 1.6; margin: 0; }

.svc-includes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-includes li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.5;
}

.svc-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1.5px;
  background: var(--accent);
}

/* ---------- About prose ---------- */

.prose {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 64ch;
}

.prose p {
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
  color: var(--ink);
}

.prose p.muted { color: var(--ink-muted); }

.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 16px 0;
  max-width: 24ch;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}

@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.stat-num {
  font-family: var(--font-sans);
  font-size: clamp(56px, 9vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.stat-num .accent { color: var(--accent); }

.stat-label {
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  margin: 12px 0 0 0;
}

/* ---------- Contact ---------- */

.contact-card {
  margin-top: 24px;
  padding: clamp(40px, 6vw, 72px);
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
  background: var(--accent);
}

.contact-label {
  font-size: 11px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  margin: 0 0 18px 0;
}

.email-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 6px;
  word-break: break-word;
  transition: color 0.18s ease;
}

.email-link:hover { color: var(--accent); }

.contact-meta { margin-top: 32px; color: var(--ink-muted); font-size: 16px; line-height: 1.6; max-width: 50ch; }

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  z-index: 1000;
}

.skip:focus { left: 12px; top: 12px; }
