/* Mustard Seed Design Co. — bold studio
   Mustard carries the brand; near-black pine for type and dark bands; white and stone for reading. */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap;
  font-weight: 200 800; font-stretch: 75% 100%;
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-display: swap;
  font-weight: 400 700; font-stretch: 75% 100%;
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2-variations");
}
:root {
  --mustard: #e9b11b;
  --mustard-deep: #c8920a;
  --ink: #0f1712;
  --pine: #1e3b2f;
  --white: #ffffff;
  --stone: #eceee9;
  --muted: #56615a;
  --line: #d5d9d2;
  --focus: #2f6fdb;

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  --step-4: clamp(2.8rem, 1.2rem + 6.4vw, 6.6rem);
  --step-5: clamp(3.1rem, 1rem + 6.8vw, 7rem);

  --wrap: 78rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display); font-weight: 800; line-height: 0.98;
  letter-spacing: -0.035em; margin: 0 0 0.5em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0 0 1em; max-width: 62ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header sits on mustard everywhere */
.site-header { background: var(--mustard); color: var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem; flex-wrap: wrap; }
.wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
}
.seed { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--ink); flex: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.4rem; }
.site-nav a { font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.site-nav .nav-cta a { background: var(--ink); color: var(--mustard); padding: 0.55rem 1rem; border-radius: 999px; border: 0; }
.site-nav .nav-cta a:hover { background: var(--pine); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  padding: 0.95rem 1.5rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; line-height: 1.1; cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--pine); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: rgba(15,23,18,0.08); }
.btn-accent { background: var(--mustard); color: var(--ink); }
.btn-accent:hover { background: #f4c440; }
.btn-ghost-light { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Browser frame for real screenshots */
.browser {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15,23,18,0.45), 0 0 0 1px rgba(15,23,18,0.12);
}
.browser-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.8rem; background: #f3f3f1; border-bottom: 1px solid #e2e2de; }
.browser-bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #d2d2cd; }
.browser-bar span { margin-left: 0.6rem; font-size: 0.75rem; color: #6b6f6a; background: var(--white); border-radius: 999px; padding: 0.15rem 0.8rem; border: 1px solid #e2e2de; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Home hero */
.hero { background: var(--mustard); padding: clamp(2.5rem, 7vw, 6rem) 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: end; }
@media (min-width: 64rem) { .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 2rem; } }
.hero h1 { font-size: var(--step-5); margin-bottom: 0.35em; }
.hero .lede { font-size: var(--step-1); max-width: 34ch; line-height: 1.45; }
.hero-copy { padding-bottom: clamp(4rem, 9vw, 8rem); }
.hero-stack { position: relative; min-height: 30rem; margin-bottom: -1px; margin-right: calc(var(--gutter) * -1); }
.hero-stack .browser { position: absolute; width: 100%; }
.hero-stack .b1 { right: -6%; bottom: 7rem; transform: rotate(2.5deg); z-index: 1; }
.hero-stack .b2 { left: 0; bottom: -2.5rem; transform: rotate(-2deg); z-index: 2; width: 90%; }
@media (max-width: 63.99rem) {
  .hero-stack { min-height: 0; aspect-ratio: 16 / 12; margin-right: 0; }
  .hero-stack .browser { width: 88%; }
}

/* Statement band */
.statement { background: var(--ink); color: var(--white); padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem); }
.statement h2 { font-size: var(--step-4); max-width: 14ch; margin-bottom: 0.6em; }
.statement h2 em { font-style: normal; color: var(--mustard); }
.offer { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.offer > div { border-top: 4px solid var(--mustard); padding-top: 1.25rem; }
.offer h3 { font-size: var(--step-2); }
.offer p { color: #c9d1cb; margin: 0; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--white); }
.section-stone { background: var(--stone); }
.section-intro { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-intro p { color: var(--muted); font-size: var(--step-1); }

/* Work */
.work-list { display: grid; gap: clamp(3.5rem, 8vw, 6rem); }
.work-item { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) {
  .work-item { grid-template-columns: 1.5fr 1fr; gap: 3.5rem; }
  .work-item.flip .work-shot { order: 2; }
}
.work-item h3 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin-bottom: 0.25em; }
.work-kind { font-family: var(--font-display); font-weight: 600; color: var(--muted); margin-bottom: 1rem; }
.work-item .visit { font-family: var(--font-display); font-weight: 700; display: inline-block; margin-top: 0.5rem; }
.work-shot a { display: block; text-decoration: none; transition: transform 0.25s ease; }
.work-shot a:hover { transform: translateY(-4px); }

/* Process — a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.75rem; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before {
  content: counter(step); display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -0.05em; color: var(--mustard-deep); margin-bottom: 0.75rem;
}
.steps h3 { margin-bottom: 0.4em; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Closing call to action */
.cta-band { background: var(--mustard); padding: clamp(4.5rem, 10vw, 8rem) 0; }
.cta-band h2 { font-size: var(--step-5); max-width: 12ch; margin-bottom: 0.3em; }
.cta-band p { font-size: var(--step-1); }

/* Inner page hero */
.page-hero { background: var(--mustard); padding: clamp(3rem, 8vw, 6rem) 0 clamp(4.5rem, 11vw, 8.5rem); }
.page-hero h1 { max-width: 15ch; }
.page-hero p { font-size: var(--step-1); max-width: 46ch; margin-bottom: 0; }
.page-hero a { font-weight: 600; }

/* Two-column prose */
.split { display: grid; gap: 3rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split h2 { font-size: var(--step-2); line-height: 1.05; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { padding: 0.7rem 0 0.7rem 1.9rem; position: relative; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--mustard); }

.faq { margin: 0; display: grid; gap: 0 3rem; }
@media (min-width: 56rem) { .faq { grid-template-columns: 1fr 1fr; } }
.faq div { border-top: 2px solid var(--ink); padding: 1.25rem 0 1.75rem; }
.faq dt { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); letter-spacing: -0.015em; margin-bottom: 0.4rem; }
.faq dd { margin: 0; color: var(--muted); }

.about-name { font-size: var(--step-4); }

/* Forms */
.form-wrap { max-width: 48rem; }
.intake fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.intake fieldset.field { margin-bottom: 1.6rem; }
.intake > fieldset { padding-bottom: 0.5rem; }
.intake > fieldset > legend {
  float: left; width: 100%; font-family: var(--font-display); font-weight: 800; font-size: var(--step-2);
  letter-spacing: -0.03em; border-top: 2px solid var(--ink); padding: 2.25rem 0 0; margin-bottom: 1.4rem;
}
.intake > fieldset > legend + * { clear: both; }
.intake > fieldset:first-of-type > legend { border-top: 0; padding-top: 0; }
.field { margin-bottom: 1.35rem; }
.field > label, .field > .q { display: block; font-family: var(--font-display); font-weight: 700; margin-bottom: 0.4rem; line-height: 1.3; }
.hint { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 0.95rem; margin-top: 0.1rem; }
.req { color: #a2470b; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 2px solid #b9c0b8; border-radius: 10px; padding: 0.75rem 0.85rem;
}
input:hover, textarea:hover { border-color: #8d978e; }
textarea { min-height: 7rem; resize: vertical; }
input:focus, textarea:focus { border-color: var(--ink); outline: 3px solid var(--mustard); outline-offset: 1px; }
.options { display: grid; gap: 0.5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.options label { display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; line-height: 1.4; }
.options input { margin-top: 0.15rem; width: 1.15rem; height: 1.15rem; accent-color: var(--ink); flex: none; }
.two { display: grid; gap: 0 1.25rem; }
@media (min-width: 40rem) { .two { grid-template-columns: 1fr 1fr; } }
.hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { border-top: 2px solid var(--ink); padding-top: 1.75rem; margin-top: 1rem; }
.form-foot p { color: var(--muted); font-size: 0.98rem; }

/* Prose pages */
.prose h2 { font-size: var(--step-2); margin-top: 2.25rem; line-height: 1.05; }

/* Footer */
.site-footer { background: var(--ink); color: #c4ccc6; padding: clamp(3rem, 7vw, 4.5rem) 0 2rem; font-size: 1rem; }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-footer a { color: var(--white); text-decoration-color: var(--mustard); }
.site-footer h2 { font-size: 1.05rem; color: var(--mustard); margin-bottom: 0.75rem; letter-spacing: -0.01em; line-height: 1.2; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer .footer-mark { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); color: var(--white); letter-spacing: -0.035em; line-height: 1; margin-bottom: 0.6rem; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1.25rem; font-size: var(--step--1); color: #94a097; }
.site-footer .fine p { margin: 0; max-width: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-stack .b1 { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) 0.1s both; }
  .hero-stack .b2 { animation: rise2 0.9s cubic-bezier(.2,.7,.2,1) 0.3s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(40px) rotate(2.5deg); } }
@keyframes rise2 { from { opacity: 0; transform: translateY(40px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .work-shot a { transition: none; } }

/* Angled seams between sections.
   Each section after the first (and the footer) overlaps the one above by --slant,
   adds the same height as a transparent top border so its own background fills it,
   then clip-path cuts that band on a diagonal. Directions alternate down the page. */
main > section + section,
.site-footer {
  --slant: clamp(2.25rem, 5.5vw, 5.5rem);
  position: relative;
  margin-top: calc(var(--slant) * -1);
  border-top: var(--slant) solid transparent;
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
main > section:nth-child(odd) + section {
  clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 100%);
}
