/* ==========================================================================
   Leaptexle — design tokens
   Paper + ink sketchbook system. One accent (brick-red pen), one utility
   blue reserved for focus states only.
   ========================================================================== */

:root {
  --paper: #f3eee0;
  --paper-2: #eae2c9;
  --paper-deep: #e1d7ba;
  --ink: #1c1a16;
  --ink-soft: #464034;
  --graphite: #746c5b;
  --accent: #bd3a22;
  --accent-dark: #94301c;
  --focus: #1857a6;
  --line: #2c2a24;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hand: "Caveat", cursive;

  --frame-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cpath d='M9,15 C64,6 226,3 391,11 C397,88 395,182 389,285 C302,292 118,296 11,289 C5,199 3,101 9,15 Z' fill='none' stroke='%231c1a16' stroke-width='2.4'/%3E%3C/svg%3E");
  --frame-accent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cpath d='M6,10 C70,3 300,2 394,9 C397,45 396,80 393,111 C300,117 90,118 7,110 C4,80 3,42 6,10 Z' fill='none' stroke='%23bd3a22' stroke-width='2.6'/%3E%3C/svg%3E");
  --circle-scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 90' preserveAspectRatio='none'%3E%3Cpath d='M14,52 C10,20 46,6 108,7 C168,8 206,18 210,45 C213,68 178,84 110,83 C50,82 12,74 16,54' fill='none' stroke='%23bd3a22' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  --underline-wavy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2,8 C30,2 60,12 100,7 C140,2 168,12 198,6' fill='none' stroke='%231c1a16' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------------------------------- reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body, h1, h2, h3, h4, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea { font: inherit; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* subtle paper grain, applied once, cheap */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(28,26,22,0.05) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 32px;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

/* ---------------------------------- type ---------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.02; font-weight: 560; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1; }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { color: var(--ink-soft); max-width: 62ch; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }

.kicker {
  font-family: var(--hand);
  font-size: 1.5rem;
  color: var(--accent);
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: 4px;
}

.circled { position: relative; white-space: nowrap; padding: 0 0.15em; }
.circled::after {
  content: "";
  position: absolute;
  left: -6%; right: -6%; top: -18%; bottom: -12%;
  background-image: var(--circle-scribble);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
}

.underline-wavy {
  background-image: var(--underline-wavy);
  background-repeat: no-repeat;
  background-position: bottom 2px left;
  background-size: 100% 10px;
  padding-bottom: 6px;
}

/* --------------------------------- buttons -------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--paper);
  transition: transform 0.15s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: -4px -8px;
  background: var(--ink);
  -webkit-mask-image: var(--frame-accent);
  mask-image: var(--frame-accent);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  z-index: -1;
}
.btn.primary::before { background: var(--accent); }
.btn.ghost { color: var(--ink); }
.btn.ghost::before { background: transparent; border: 2px solid var(--ink); border-radius: 2px; inset: -2px -10px; mask-image: none; -webkit-mask-image: none; }
.btn:hover { transform: translateY(-2px) rotate(-0.4deg); }
.btn:active { transform: translateY(0); }

/* ---------------------------------- header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}
.brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.brand .dot { color: var(--accent); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a:not(.btn) {
  position: relative;
  font-weight: 500;
  padding-bottom: 3px;
}
.nav-links a:not(.btn).active {
  background-image: var(--underline-wavy);
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 100% 8px;
}
.nav-links a:not(.btn):hover {
  background-image: var(--underline-wavy);
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 100% 8px;
}

.nav-toggle { display: none; }

/* ---------------------------------- footer -------------------------------- */
.site-footer {
  border-top: 2px solid var(--line);
  padding-block: 56px 28px;
  margin-top: 120px;
  background: var(--paper-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-grid h4 { font-size: 1rem; margin-bottom: 14px; font-family: var(--sans); font-weight: 700; }
.footer-grid p, .footer-grid address { font-style: normal; font-size: 0.95rem; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1.5px dashed var(--graphite);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--graphite);
}
.social-row { display: flex; gap: 14px; }
.social-row a { width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; transition: background 0.15s, color 0.15s; }
.social-row a:hover { background: var(--ink); color: var(--paper); }

/* --------------------------------- helpers -------------------------------- */
.stamp {
  position: absolute;
  font-family: var(--hand);
  color: var(--accent);
  transform: rotate(-8deg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  padding: 14px 10px;
  font-size: 0.85rem;
  line-height: 1.1;
  text-align: center;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  opacity: 0.9;
}

.divider-wave {
  width: 100%;
  height: 28px;
  display: block;
  color: var(--line);
}

.section-pad { padding-block: 96px; }
@media (max-width: 720px) { .section-pad { padding-block: 64px; } }

.eyebrow-hand {
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--accent);
  transform: rotate(-1.5deg);
  display: inline-block;
}

/* ----------------------------------- hero ---------------------------------- */
.hero {
  padding-block: 72px 60px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { margin-block: 18px 22px; }
.hero .lede { margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero-art { position: relative; width: 100%; }
.hero-art svg { width: 100%; height: auto; }
.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1.5px dashed var(--graphite);
}
.hero-meta div { font-size: 0.92rem; color: var(--graphite); max-width: 220px; }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--ink); font-weight: 600; }

/* --------------------------------- process --------------------------------- */
.process-list { display: grid; gap: 0; margin-top: 48px; }
.process-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding-block: 30px;
  border-top: 1.5px solid var(--line);
}
.process-item:last-child { border-bottom: 1.5px solid var(--line); }
.process-num { font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--accent); }
.process-item h3 { margin-bottom: 8px; }

/* --------------------------------- services grid --------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.service-card {
  position: relative;
  padding: 30px 26px 26px;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--frame-ink);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.service-card .icon { width: 46px; height: 46px; margin-bottom: 18px; color: var(--ink); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.96rem; }
.service-card a.more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.92rem; color: var(--accent); }
.service-card a.more:hover { text-decoration: underline; }

.service-card.wide { grid-column: span 1; }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* -------------------------------- local strip -------------------------------- */
.local-strip {
  background: var(--ink);
  color: var(--paper);
  padding-block: 90px;
}
.local-strip h2, .local-strip .kicker { color: var(--paper); }
.local-strip .kicker { color: #e7c9a9; }
.local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 20px;
}
.local-list { display: grid; gap: 18px; margin-top: 30px; }
.local-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; }
.local-list svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 3px; color: var(--accent); }
.local-strip p { color: #cfc8b6; }

/* -------------------------------- cards / testimonial -------------------------------- */
.quote-block {
  position: relative;
  padding: 50px 46px;
  margin-top: 50px;
}
.quote-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--frame-ink);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.quote-block p.quote { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink); max-width: 56ch; }
.quote-block .who { margin-top: 20px; font-size: 0.95rem; color: var(--graphite); font-family: var(--sans); }

/* ------------------------------------ CTA band ------------------------------------ */
.cta-band { text-align: center; padding-block: 100px; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; text-align: center; }
.cta-band .hero-ctas { justify-content: center; margin-top: 34px; }

/* --------------------------------- generic two-col --------------------------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 860px) { .two-col, .local-grid { grid-template-columns: 1fr; } .local-grid { gap: 40px; } }

/* --------------------------------- page hero (inner pages) --------------------------------- */
.page-hero { padding-block: 64px 40px; border-bottom: 2px solid var(--line); }
.page-hero h1 { margin-top: 14px; }
.page-hero .lede { margin-top: 18px; }

/* --------------------------------- team --------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 50px; }
.team-card { text-align: left; }
.team-photo {
  aspect-ratio: 1;
  background: var(--paper-deep);
  position: relative;
  margin-bottom: 16px;
}
.team-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--frame-ink);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.team-photo svg { width: 60%; height: 60%; margin: 20% auto; display: block; color: var(--ink); opacity: 0.55; }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { font-family: var(--hand); color: var(--accent); font-size: 1.15rem; }
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* --------------------------------- values / about --------------------------------- */
.value-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; margin-top: 50px; }
.value-item { padding: 26px 0; border-top: 1.5px solid var(--line); }
@media (max-width: 640px) { .value-list { grid-template-columns: 1fr; } }

/* --------------------------------- contact --------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 50px; align-items: start; }
.contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field textarea, .field select {
  border: none;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  padding: 10px 4px;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.contact-info { display: grid; gap: 30px; }
.contact-info .block { padding-bottom: 22px; border-bottom: 1.5px dashed var(--graphite); }
.contact-info h4 { font-family: var(--sans); font-size: 0.95rem; text-transform: none; margin-bottom: 8px; }
.map-frame { position: relative; margin-top: 10px; aspect-ratio: 16/10; background: var(--paper-deep); }
.map-frame::before { content: ""; position: absolute; inset: 0; background-image: var(--frame-ink); background-size: 100% 100%; background-repeat: no-repeat; }
.map-frame iframe { width: 100%; height: 100%; border: none; filter: grayscale(0.3) contrast(1.05); }

/* --------------------------------- FAQ --------------------------------- */
.faq-item { border-top: 1.5px solid var(--line); padding-block: 22px; }
.faq-item:last-child { border-bottom: 1.5px solid var(--line); }
.faq-item summary { cursor: pointer; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { font-size: 1.4rem; color: var(--accent); transition: transform 0.2s ease; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; }

/* --------------------------------- responsive header/hero --------------------------------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 340px; margin-inline: auto; }
  .process-item { grid-template-columns: 60px 1fr; }
}

@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 66px 0 0 0; background: var(--paper); flex-direction: column; padding: 40px 32px; gap: 26px; align-items: flex-start; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a:not(.btn) { font-size: 1.3rem; }
  .nav-toggle { display: block; width: 34px; height: 26px; position: relative; z-index: 60; }
  .nav-toggle span { position: absolute; left: 0; width: 100%; height: 2.4px; background: var(--ink); }
  .nav-toggle span:nth-child(1) { top: 0; }
  .nav-toggle span:nth-child(2) { top: 11px; }
  .nav-toggle span:nth-child(3) { top: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .wrap { padding-inline: 22px; }
}
