/* ============================================================
   Beau the Builder — beauthebuilder.com
   Hand-built in Boerne, TX. Styled as a set of construction
   documents: sheet tags, field notes, a quote sheet, a title
   block. No frameworks, no page builders.
   ============================================================ */

:root {
  --paper: #F7F1E5;
  --paper-dark: #EFE6D3;
  --ink: #22303A;
  --ink-soft: #52606C;
  --rust: #B4531F;
  --rust-dark: #93411550;
  --rust-deep: #8F3E14;
  --wheat: #D9A441;
  --blueprint: #16324F;
  --blueprint-deep: #0F2438;
  --blueprint-line: rgba(214, 228, 240, 0.32);
  --lumber: #B98F55;
  --pencil: #3C4A56;
  --white: #FFFDF8;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --font-hand: "Caveat", cursive;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  line-height: 1.68;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }

.container { max-width: 70rem; margin: 0 auto; padding: 0 1.5rem; }
section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.light { color: var(--paper); }

p { max-width: 40rem; }

/* ---------- Sheet tags (blueprint title-block chips) ---------- */
.sheet-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  border: 1px solid currentColor;
  padding: 0.3rem 0.7rem 0.25rem;
  margin-bottom: 1.4rem;
  max-width: none;
}
.sheet-tag.tag-light { color: var(--wheat); }

/* ---------- Handwritten annotations ---------- */
.annotation {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--pencil);
  line-height: 1.25;
}
.annotation .arrow {
  width: 44px; height: 30px;
  stroke: var(--pencil);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
}
.btn:hover { transform: translate(-1px, -2px); }
.btn:active { transform: none; }

.btn-primary {
  background: var(--rust);
  color: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-primary:hover { background: var(--rust-deep); box-shadow: 4px 5px 0 var(--ink); }

.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-big { font-size: 1.08rem; padding: 1rem 2rem; }
.btn-nav { padding: 0.55rem 1.1rem; font-size: 0.9rem; box-shadow: 2px 2px 0 var(--ink); }

/* ---------- Progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--rust);
  z-index: 200;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(247, 241, 229, 0.93);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(34, 48, 58, 0.14);
}
.nav-inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.logo-b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--paper);
  background: var(--blueprint);
  width: 2.1rem; height: 2.1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  box-shadow: 2px 2px 0 var(--rust);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.logo-text em { display: contents; font-style: italic; color: var(--rust); }
.logo-text small {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.94rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--rust); }

/* ---------- Hero (Sheet 01) ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 7rem 0 5rem;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 50, 79, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 50, 79, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(115deg, black 20%, transparent 70%);
  -webkit-mask-image: linear-gradient(115deg, black 20%, transparent 70%);
}
.hero-inner { position: relative; }
.hero-title {
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  font-weight: 700;
  margin-bottom: 1.6rem;
  max-width: 56rem;
}
.hero-title span { display: block; }

.squiggle { position: relative; display: inline-block; color: var(--rust); }
.squiggle svg {
  position: absolute;
  left: 0; bottom: -0.12em;
  width: 100%; height: 0.18em;
  overflow: visible;
}
.squiggle svg path {
  stroke: var(--wheat);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
.squiggle svg path.drawn { animation: draw 2s 1.5s ease-in-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-sub {
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 36rem;
  margin-bottom: 2.4rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}
.hero-note {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  margin-left: 0.5rem;
  transform: rotate(-2deg);
}

.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid var(--ink-soft);
  border-radius: 12px;
  opacity: 0.5;
}
.scroll-cue span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--rust);
  border-radius: 2px;
  animation: cue 1.8s infinite var(--ease);
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(13px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Problem (Sheet 02) ---------- */
.problem { background: var(--paper-dark); }
.problem-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.problem-text p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.problem-text h2 { max-width: 30rem; }

/* field-notes card */
.fieldnotes {
  background: var(--white);
  border: 1px solid rgba(34, 48, 58, 0.2);
  padding: 2rem 1.8rem 1.4rem;
  font-family: var(--font-mono);
  transform: rotate(1.2deg);
  box-shadow: 5px 6px 0 rgba(34, 48, 58, 0.16);
  position: relative;
}
.fieldnotes::before {
  /* strip of masking tape */
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 110px; height: 26px;
  background: rgba(217, 164, 65, 0.4);
  border-left: 1px dashed rgba(34,48,58,0.15);
  border-right: 1px dashed rgba(34,48,58,0.15);
}
.fieldnotes figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(34, 48, 58, 0.25);
  padding-bottom: 0.7rem;
  margin-bottom: 1.1rem;
}
.note-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0;
  font-size: 0.88rem;
}
.note-dots {
  flex: 1;
  border-bottom: 2px dotted rgba(34, 48, 58, 0.35);
  transform: translateY(-4px);
}
.note-num {
  font-weight: 500;
  font-size: 1.15rem;
  min-width: 2ch;
  text-align: right;
}
.note-num.circled { position: relative; color: var(--rust); }
.note-num.circled::after {
  /* red-pencil circle */
  content: "";
  position: absolute;
  inset: -7px -10px;
  border: 2.5px solid var(--rust);
  border-radius: 50% 45% 55% 48% / 55% 50% 48% 45%;
  transform: rotate(-4deg);
  opacity: 0.85;
}
.note-remark {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--pencil);
  margin-top: 1rem;
  transform: rotate(-1.5deg);
}

/* ---------- Scrolly intro (Sheet 03) ---------- */
.scrolly-intro { text-align: center; padding-bottom: 1rem; }
.scrolly-intro h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
.scrolly-hint {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--pencil);
  margin: 0 auto;
}

/* ---------- Scrollytelling: the build ---------- */
.scrolly {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.scrolly-graphic {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scrolly-steps { padding: 18vh 0 28vh; }
.step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 26rem;
  opacity: 0.25;
  transition: opacity 0.4s var(--ease);
}
.step.active { opacity: 1; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.5rem;
}
.step h3 { margin-bottom: 0.7rem; }
.step p { color: var(--ink-soft); }

/* ----- browser mock ----- */
.browser {
  width: min(33rem, 41vw);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(34, 48, 58, 0.25);
  box-shadow: 10px 12px 0 rgba(34, 48, 58, 0.15);
  transition: box-shadow 0.6s;
  background: var(--white);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  background: #E4DECE;
  border-bottom: 1px solid rgba(34, 48, 58, 0.15);
}
.browser-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #B7AF9C; }
.browser-url {
  margin-left: 10px;
  flex: 1;
  background: var(--white);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-soft);
  padding: 2px 10px;
}
.browser-body {
  position: relative;
  padding: 1.1rem;
  min-height: 23rem;
  transition: background 0.8s var(--ease);
}

.el { transition: all 0.8s var(--ease); border-radius: 3px; }

.site-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; }
.site-logo { width: 82px; height: 22px; }
.site-nav { display: flex; gap: 8px; }
.site-nav span { width: 40px; height: 12px; display: block; }
.site-hero {
  padding: 1.6rem 1.2rem;
  margin-bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.site-hero-title { width: 70%; height: 22px; }
.site-hero-sub { width: 50%; height: 12px; }
.site-hero-btn { padding: 6px 14px; font-size: 0.7rem; font-weight: 600; font-family: var(--font-body); }
.site-hero-btn span { opacity: 0; transition: opacity 0.6s 0.3s; }
.site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.site-card { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.card-img { height: 50px; }
.card-line { height: 8px; width: 90%; }
.card-line.short { width: 55%; }

/* stage 0/1 — blueprint */
.browser[data-stage="0"] .browser-body,
.browser[data-stage="1"] .browser-body {
  background-color: var(--blueprint);
  background-image:
    linear-gradient(var(--blueprint-line) 0.5px, transparent 0.5px),
    linear-gradient(90deg, var(--blueprint-line) 0.5px, transparent 0.5px);
  background-size: 26px 26px;
}
.browser[data-stage="0"] .el,
.browser[data-stage="1"] .el {
  background: transparent;
  border: 1.5px dashed var(--blueprint-line);
}

/* stage 2 — framing */
.browser[data-stage="2"] .browser-body { background: #F4EBD9; background-image: none; }
.browser[data-stage="2"] .el {
  background: rgba(185, 143, 85, 0.13);
  border: 2px solid var(--lumber);
}

/* stages 3 & 4 — finishes */
.browser[data-stage="3"] .browser-body,
.browser[data-stage="4"] .browser-body { background: var(--white); background-image: none; }
.browser[data-stage="3"] .el,
.browser[data-stage="4"] .el { border: 2px solid transparent; }
.browser[data-stage="3"] .site-logo,
.browser[data-stage="4"] .site-logo { background: var(--rust); }
.browser[data-stage="3"] .site-nav span,
.browser[data-stage="4"] .site-nav span { background: var(--paper-dark); }
.browser[data-stage="3"] .site-hero,
.browser[data-stage="4"] .site-hero { background: var(--blueprint); }
.browser[data-stage="3"] .site-hero-title,
.browser[data-stage="4"] .site-hero-title { background: rgba(255, 253, 248, 0.92); }
.browser[data-stage="3"] .site-hero-sub,
.browser[data-stage="4"] .site-hero-sub { background: rgba(255, 253, 248, 0.5); }
.browser[data-stage="3"] .site-hero-btn,
.browser[data-stage="4"] .site-hero-btn { background: var(--rust); color: var(--white); }
.browser[data-stage="3"] .site-hero-btn span,
.browser[data-stage="4"] .site-hero-btn span { opacity: 1; }
.browser[data-stage="3"] .card-img,
.browser[data-stage="4"] .card-img { background: linear-gradient(135deg, var(--wheat), var(--lumber)); }
.browser[data-stage="3"] .site-card,
.browser[data-stage="4"] .site-card { background: var(--white); box-shadow: 0 1px 6px rgba(34, 48, 58, 0.16); }
.browser[data-stage="3"] .card-line,
.browser[data-stage="4"] .card-line { background: var(--paper-dark); }

/* stage 4 — open for business */
.browser[data-stage="4"] { box-shadow: 10px 12px 0 rgba(180, 83, 31, 0.35); }
.open-sign {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -40%) rotate(-7deg) scale(0.6);
  opacity: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.9rem 1.7rem;
  border: 3px solid var(--wheat);
  border-radius: 6px;
  text-align: center;
  font-family: var(--font-display);
  box-shadow: 6px 8px 0 rgba(34, 48, 58, 0.3);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.open-sign span { display: block; font-size: 0.68rem; letter-spacing: 0.2em; font-family: var(--font-mono); }
.open-sign strong { display: block; font-size: 1.55rem; color: var(--wheat); letter-spacing: 0.04em; }
.browser[data-stage="4"] .open-sign {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-4deg) scale(1);
}

/* ---------- Offer (Sheet 04) ---------- */
.offer {
  background-color: var(--blueprint);
  background-image:
    linear-gradient(rgba(214, 228, 240, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 228, 240, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.offer h2 { max-width: 34rem; }
.quote-wrap { padding: 2.5rem 0 1.5rem; }

.quote-sheet {
  position: relative;
  background: var(--white);
  max-width: 44rem;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  transform: rotate(-0.8deg);
  box-shadow: 8px 10px 0 rgba(15, 36, 56, 0.55);
  border: 1px solid rgba(34, 48, 58, 0.25);
}
.quote-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}
.quote-line {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.55rem 0;
  font-size: 0.97rem;
  border-bottom: 1px solid rgba(34, 48, 58, 0.07);
}
.quote-line span:first-child { color: var(--ink); }
.quote-line span:last-child {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rust);
}
.quote-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}
.quote-total strong {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--rust);
  letter-spacing: 0;
  text-transform: none;
}

.stamp {
  position: absolute;
  right: clamp(0.5rem, 4vw, 2.5rem);
  top: 30%;
  transform: rotate(9deg);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rust);
  border: 3px double var(--rust);
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  opacity: 0.75;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -0.35'/%3E%3C/filter%3E%3Crect width='120' height='120' fill='white' filter='url(%23r)'/%3E%3C/svg%3E");
}
.offer-note {
  color: rgba(247, 241, 229, 0.85);
  max-width: 38rem;
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

/* ---------- About (Sheet 05) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about-text h2 { max-width: 28rem; }
.about-text p { margin-bottom: 1.1rem; color: var(--ink-soft); }

.creed {
  list-style: none;
  margin-top: 1.5rem;
  border-left: 3px solid var(--rust);
  padding-left: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.creed li { color: var(--ink-soft); font-size: 0.98rem; }
.creed strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

/* ---------- Punch list (Sheet 06) ---------- */
.punchlist-section { background: var(--paper-dark); }
.punchlist {
  list-style: none;
  margin-top: 2.2rem;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.punchlist li { display: flex; gap: 1.2rem; align-items: flex-start; color: var(--ink-soft); }
.punchlist strong { color: var(--ink); }
.punchlist .box {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  width: 3.2rem; height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(34, 48, 58, 0.2);
}
.punchlist .box.free {
  background: var(--rust);
  color: var(--white);
  border-color: var(--rust-deep);
  transform: rotate(-3deg);
}

/* ---------- Contact (Sheet 07) ---------- */
.contact { background: var(--blueprint-deep); }
.contact-lede { color: rgba(247, 241, 229, 0.8); font-size: 1.1rem; margin-bottom: 2.2rem; }

.contact-form {
  max-width: 42rem;
  background: var(--paper);
  border: 1px solid rgba(34, 48, 58, 0.3);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.35);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: block; margin-bottom: 1.1rem; }
.contact-form label span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.contact-form label span em { text-transform: none; opacity: 0.65; font-style: normal; letter-spacing: 0; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(34, 48, 58, 0.4);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 2px 2px 0 rgba(180, 83, 31, 0.3);
}
.contact-form button { width: 100%; margin-top: 0.3rem; }
.form-status {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--rust);
  min-height: 1.6rem;
}
.contact-note { margin-top: 2rem; color: rgba(247, 241, 229, 0.6); font-size: 0.95rem; max-width: none; }
.contact-note a { color: var(--wheat); }

/* ---------- Title-block footer ---------- */
.footer { background: var(--ink); padding: 2.2rem 0 1.8rem; }
.titleblock {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.6fr 1fr 1fr;
  border: 1.5px solid rgba(247, 241, 229, 0.4);
}
.tb-cell {
  padding: 0.55rem 0.9rem 0.6rem;
  border-right: 1.5px solid rgba(247, 241, 229, 0.4);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.tb-cell:last-child { border-right: none; }
.tb-cell span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 241, 229, 0.5);
  margin-bottom: 0.1rem;
}
.footer-line {
  color: rgba(247, 241, 229, 0.45);
  font-size: 0.85rem;
  margin-top: 1.1rem;
  max-width: none;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.26s; }
.reveal.d4 { transition-delay: 0.36s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }

  .problem-grid { grid-template-columns: 1fr; }
  .fieldnotes { transform: rotate(0.8deg); max-width: 26rem; }

  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly-graphic {
    height: 44svh;
    top: 3.6rem;
    z-index: 5;
    background: linear-gradient(var(--paper) 84%, transparent);
  }
  .browser { width: min(30rem, 88vw); }
  .browser-body { min-height: 16.5rem; }
  .card-img { height: 32px; }
  .site-hero { padding: 1rem 0.9rem; }
  .scrolly-steps { padding: 4vh 0 16vh; }
  .step {
    min-height: 58vh;
    max-width: none;
    justify-content: flex-start;
    padding-top: 1.5rem;
  }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .stamp { position: static; display: inline-block; margin-top: 1.2rem; transform: rotate(-3deg); }

  .titleblock { grid-template-columns: 1fr 1fr; }
  .tb-cell { border-bottom: 1.5px solid rgba(247, 241, 229, 0.4); }
  .tb-cell:nth-child(even) { border-right: none; }
  .tb-cell:nth-last-child(-n+1) { border-bottom: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .el, .browser-body, .open-sign, .step { transition: none !important; }
  .scroll-cue span { animation: none; }
  .squiggle svg path { stroke-dashoffset: 0; animation: none; }
}
