:root {
  --paper: #f3eee3;
  --paper-2: #fbf8f1;
  --ink: #1b1a17;
  --ink-2: #55503f;
  --rule: #d8cfbd;
  --red: #c4321b;
  --red-text: #a92a15;
  --pine: #1e4a38;
  --on-ink: #f3eee3;
  --on-ink-2: #c9c2b2;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --display: 'Besley', Georgia, serif;
  --body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 7.4vw, 5.6rem); font-weight: 800; }
h2 { font-size: clamp(1.95rem, 4.6vw, 3.4rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--gutter); top: -64px; z-index: 10;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-size: 0.9rem; font-weight: 600; color: var(--ink-2);
  letter-spacing: 0.01em; margin-bottom: 16px;
}

.top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter);
}
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.top-link { font-weight: 600; font-size: 0.975rem; text-underline-offset: 4px; }

/* Hero */
.hero {
  display: grid; gap: 40px;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(56px, 9vw, 112px);
}
.circled { position: relative; display: inline-block; }
.circle {
  position: absolute; left: -8%; top: -6%; width: 116%; height: 118%;
  overflow: visible; pointer-events: none;
}
.circle path {
  fill: none; stroke: var(--red); stroke-width: 3.5;
  stroke-linecap: round; vector-effect: non-scaling-stroke;
}
.hero-lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 34em; margin-top: 24px; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

.button {
  display: inline-block; background: var(--ink); color: var(--on-ink);
  padding: 15px 26px; font-weight: 600; text-decoration: none;
  transition: background-color 0.18s ease;
}
.button:hover { background: var(--red-text); }
.text-link { font-weight: 600; text-underline-offset: 4px; }

.slip {
  background: var(--paper-2); border: 1px solid var(--rule);
  padding: 24px; max-width: 420px; transform: rotate(-1.2deg);
  box-shadow: 0 1px 0 var(--rule), 0 18px 34px -24px rgba(27, 26, 23, 0.45);
}
.slip-title {
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.slip li {
  display: flex; gap: 12px; align-items: center; padding: 11px 0;
  border-bottom: 1px solid var(--rule); font-size: 1rem;
}
.slip svg { width: 24px; height: 21px; flex: none; overflow: visible; }
.slip svg path {
  fill: none; stroke: var(--red); stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.slip-foot { font-family: var(--hand); font-size: 1.5rem; font-weight: 600; color: var(--red-text); margin-top: 14px; line-height: 1.1; }

/* Sample review */
.review { background: var(--paper-2); border-block: 1px solid var(--rule); }
.review-inner {
  display: grid; gap: 32px;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
}
.review-lede { margin-top: 16px; color: var(--ink-2); max-width: 32em; }

.notes { display: grid; gap: 20px; margin-top: 28px; counter-reset: note; }
.note { padding-left: 40px; position: relative; counter-increment: note; }
.note h3 { font-size: 1.15rem; }
.note p { margin-top: 6px; color: var(--ink-2); }
.note::before {
  content: counter(note); position: absolute; left: 0; top: -4px;
  font-family: var(--hand); font-weight: 700; font-size: 1.9rem; color: var(--red-text); line-height: 1.1;
}
.note-final::before { content: '\2713'; font-family: var(--body); font-size: 1.3rem; color: var(--pine); top: 0; }

.browser {
  background: #fff; border: 1px solid var(--ink); border-radius: 8px; overflow: hidden;
  box-shadow: 0 26px 50px -34px rgba(27, 26, 23, 0.6);
}
.browser-bar {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px;
  background: #e7e1d5; border-bottom: 1px solid var(--ink);
}
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); border: 1px solid #a89f8d; }
.address {
  display: flex; align-items: center; gap: 10px; background: #fff; padding: 4px 12px;
  border-radius: 99px; font-size: clamp(0.72rem, 2.8vw, 0.86rem); min-width: 0; white-space: nowrap;
}
.lock { color: var(--red-text); font-weight: 600; }
.url { color: #4b4b4b; overflow: hidden; text-overflow: ellipsis; }

.pane { position: relative; container-type: inline-size; }

.marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; display: none; }
.marks path {
  fill: none; stroke: var(--red); stroke-width: 2.8;
  stroke-linecap: round; vector-effect: non-scaling-stroke;
}
.hand {
  position: absolute; display: none; font-family: var(--hand); font-weight: 700;
  font-size: clamp(1.15rem, 3.4cqw, 1.7rem); color: var(--red); white-space: nowrap; line-height: 1;
  transform: rotate(-3deg); background: rgba(255, 255, 255, 0.82); padding: 1px 6px;
}

/* The dated site. Sizes are in em on a root tied to the pane's width, so it scales as a whole. */
.old { font-family: 'Times New Roman', Times, serif; font-size: clamp(11px, 2.3cqw, 16px); background: #fff; color: #222; }
.old-head {
  background: linear-gradient(#27477f, #122c5b); color: #ffe89a; text-align: center;
  font-size: 2.1em; font-weight: 700; padding: 0.6em 0.5em; text-shadow: 2px 2px 0 #000;
}
.old-nav { background: #dfe5f1; text-align: center; padding: 0.45em; color: #1a33a8; }
.old-body { padding: 1.5em 1.8em 1.4em; }
.old-h { width: fit-content; margin: 0 auto 1em; font-size: 1.8em; font-weight: 700; color: #122c5b; }
.old-row { display: flex; gap: 1.2em; align-items: flex-start; }
.old-row p { line-height: 1.35; }
.old-photo {
  flex: none; width: 11em; height: 7em; display: grid; place-items: center;
  background: #e2e2e2; color: #777; font-size: 0.85em; border: 1px dashed #999;
}
.old-call { text-align: center; color: #777; font-size: 0.8em; margin-top: 1.5em; }
.old-foot { text-align: center; color: #777; font-size: 0.72em; padding: 0.7em; border-top: 1px solid #ddd; }

/* The rebuilt site */
.new {
  font-family: var(--body); font-size: clamp(11px, 2.3cqw, 16px);
  background: #fff; color: #fff; display: flex; flex-direction: column;
}
.new-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8em 1.4em; background: #fff; color: #17333d;
}
.new-logo { font-weight: 700; font-size: 1.2em; }
.new-call { background: #e8622a; color: #fff; font-weight: 700; padding: 0.5em 1em; border-radius: 6px; }
.new-hero { position: relative; background: #17333d; padding: 2.2em 1.6em 3.4em; flex: 1; overflow: hidden; }
.new-roof { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; }
.new-roof path { fill: #21474f; }
.new-h, .new-hero p, .new-actions { position: relative; }
.new-h { font-size: 2.5em; font-weight: 700; line-height: 1.08; max-width: 13em; letter-spacing: -0.02em; }
.new-hero p { margin-top: 0.7em; font-size: 1.1em; color: #d5e2e3; max-width: 26em; line-height: 1.35; }
.new-actions { display: flex; gap: 0.7em; margin-top: 1.2em; }
.new-btn { background: #e8622a; color: #fff; font-weight: 700; padding: 0.6em 1.1em; border-radius: 6px; }
.new-btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px #d5e2e3; }
.new-foot { text-align: center; color: #5b6b70; font-size: 0.72em; padding: 0.7em; background: #fff; }

/* Below the pin, the two sites stack. */
.new { border-top: 1px solid var(--rule); }

/* Numbers */
.numbers { background: var(--ink); color: var(--on-ink); }
.numbers-inner { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter); }
.numbers h2 { max-width: 15em; }
.numbers-sub { margin-top: 16px; color: var(--on-ink-2); max-width: 38em; }
.stats { display: grid; gap: 32px; margin: 48px 0 0; }
.stats div { border-top: 1px solid #4d493f; padding-top: 18px; }
.stats dt { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 5.4vw, 4rem); line-height: 1; color: #f0a48f; }
.stats dd { margin: 12px 0 0; color: var(--on-ink); max-width: 24em; }
.numbers-note { margin-top: 40px; font-size: 0.875rem; color: var(--on-ink-2); max-width: 46em; }

/* Work */
.work { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 48px; }
.work-grid { display: grid; gap: 24px; margin-top: 36px; }
.work article { background: var(--paper-2); border: 1px solid var(--rule); padding: clamp(24px, 3.4vw, 40px); }
.work article .eyebrow { margin-bottom: 12px; color: var(--red-text); }
.work article > p:not(.eyebrow) { margin-top: 14px; color: var(--ink-2); }
.work article ul { margin-top: 20px; border-top: 1px solid var(--rule); }
.work article li { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.work-note { margin-top: 28px; max-width: 36em; font-size: 1.15rem; }

/* Trades */
.trades { overflow: hidden; padding: 32px 0 40px; border-block: 1px solid var(--rule); position: relative; }
.trades-track { display: flex; gap: 40px; width: max-content; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.6rem); white-space: nowrap; }
.trades-track span:nth-child(even) { color: var(--red-text); }

/* Steps */
.steps { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter); }
.steps ol { display: grid; gap: 32px; margin-top: 36px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 14px; }
.step-n { display: block; font-family: var(--hand); font-weight: 700; font-size: 2.4rem; color: var(--red-text); line-height: 1; margin-bottom: 10px; }
.steps li p { margin-top: 8px; color: var(--ink-2); max-width: 26em; }

/* FAQ */
.faq { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 9vw, 120px); display: grid; gap: 24px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; font-size: 1.1rem;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 12px;
  font-family: var(--display); font-size: 1.5rem; color: var(--red-text);
}
.faq details[open] summary::after { content: '\2013'; }
.faq details p { padding: 0 32px 18px 0; color: var(--ink-2); max-width: 38em; }

/* Send */
.send { background: var(--pine); color: var(--on-ink); padding: clamp(72px, 10vw, 136px) var(--gutter); text-align: center; }
.send h2 { font-size: clamp(2.4rem, 6.4vw, 4.8rem); }
.send p { margin-top: 16px; color: #d3dfd7; }
.send-mail {
  display: inline-block; margin-top: 28px; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.25rem, 3.6vw, 2.2rem); text-underline-offset: 6px; overflow-wrap: anywhere;
}
.copy {
  display: block; margin: 20px auto 0; background: none; border: 1px solid #93a99c; color: var(--on-ink);
  padding: 9px 16px; font: inherit; font-size: 0.925rem; cursor: pointer;
}
.copy:hover { background: #2b5c48; }
.send :focus-visible { outline-color: #f3eee3; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter); font-size: 0.925rem; color: var(--ink-2);
}

/* Motion setup: hidden only when JS will reveal them. */
.js .hero h1, .js .hero-lede, .js .hero-actions {
  visibility: hidden;
  animation: show-anyway 0s 2.5s forwards;      /* if the scripts never load, the hero still appears */
}
@keyframes show-anyway { to { visibility: visible; } }
.circle path, .slip svg path { visibility: hidden; }
html:not(.js) .circle path, html:not(.js) .slip svg path { visibility: visible; }

/* Pinned review, desktop only */
.is-pinned .review-inner { align-items: center; min-height: 100svh; padding-block: 40px; }
.is-pinned .notes { position: relative; min-height: 9.5em; display: block; }
.is-pinned .note { position: absolute; inset: 0 0 auto 0; }
.is-pinned .marks, .is-pinned .hand { display: block; }
.is-pinned .new { position: absolute; inset: 0; border-top: 0; }

.marks-shown .marks, .marks-shown .hand { display: block; }
.marks-shown .old-head { padding-top: 1.5em; }
.marks-shown .old-h { margin-bottom: 1.9em; }

/* Privacy page */
.prose { max-width: 42em; margin: 0 auto; padding: clamp(24px, 6vw, 64px) var(--gutter) 96px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.prose h2 { font-size: 1.4rem; margin-top: 40px; letter-spacing: -0.005em; }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li { margin-top: 6px; }
.prose .updated { color: var(--ink-2); margin-top: 12px; }

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
  .steps ol { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); align-items: end; gap: 56px; }
  .slip { justify-self: end; margin-bottom: 8px; }
  .review-inner { grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.25fr); gap: 56px; }
  .faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr); gap: 56px; }
}

@media (min-width: 1200px) {
  .stats { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}
