:root {
  --forest: #202E15;
  --forest-2: #34462a;
  --sand: #efe9dc;
  --sand-2: #e2dccd;
  --gold: #BFA163;
  --gold-dark: #7a6330;
  --ink: #1f2a24;
  --muted: #5b6158;
  --line: #cfc8b6;
  --on-forest: #e3e8d6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--sand); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
/* <picture> wraps every image for the WebP sources. Taking it out of the
   layout keeps every rule below targeting the <img> itself. */
picture { display: contents; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 32px; font-weight: 800; margin-bottom: 28px; }
a { color: var(--forest); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 820px; }
.gold { color: var(--gold); }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit; }
.btn-lg { font-size: 16px; padding: 16px 28px; }
.btn-block { display: block; width: 100%; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #cfb47a; }
.btn-forest { background: var(--forest); color: var(--sand); font-size: 14px; font-weight: 600; padding: 11px 18px; }
.btn-forest:hover { background: #2e4120; }
/* Focus ring. Gold on a light background only reaches 2:1, so the default
   ring is forest and the gold one is used on the dark sections. */
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.hero a:focus-visible, .footer a:focus-visible { outline-color: var(--gold); }

/* Hero */
.hero { background: var(--forest); color: var(--sand); padding: 72px 0; }
.hero-text { max-width: 880px; margin: 0 auto; padding: 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hero h1 { font-size: 58px; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
.hero p { font-size: 19px; line-height: 1.6; color: var(--on-forest); margin: 0; max-width: 640px; text-wrap: pretty; }
.hero h1 { text-wrap: balance; }

/* Sections */
.section { padding: 72px 0; }
.steps { padding-bottom: 0; }
.card { background: #fff; border-radius: 20px; padding: 24px; }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.step { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step-num { font-size: 14px; font-weight: 700; color: var(--gold-dark); }
.step h3 { font-size: 22px; }
.step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Work */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 32px; }
.app { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.phone { width: 230px; height: 480px; border: 10px solid var(--forest); background: #141b0d; padding: 6px; border-radius: 44px; margin-bottom: 12px; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: var(--sand-2); }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.9s ease; }
.screen img.on { opacity: 1; }

.platform { color: var(--gold-dark); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.app h3 { font-size: 19px; font-weight: 700; }
.type { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
/* An app on both stores gets two buttons; they wrap on a narrow card. */
.store-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
/* Three links need a little less padding to stay on one row, which keeps
   the card level with its neighbours in the grid. */
.store-links:has(> :nth-child(3)) .btn { font-size: 13px; padding: 9px 12px; }
.badge { display: inline-block; border: 1.5px dashed #8c8470; color: #4a4536; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }

.more-work { display: flex; justify-content: center; margin-top: 44px; }

/* Websites page */
.hero-short { padding: 40px 0 56px; }
.hero-short .hero-text { gap: 14px; }
.hero-short h1 { font-size: 46px; }
.back-link { color: var(--on-forest); text-decoration: none; font-size: 15px; font-weight: 600; }
.back-link:hover { color: var(--sand); text-decoration: underline; text-underline-offset: 3px; }
.group-heading { font-size: 24px; margin-bottom: 20px; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 32px; }
.site { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.site-shot { display: block; width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; margin-bottom: 14px; }
.site-shot img { display: block; width: 100%; height: auto; }
.site-shot:hover { border-color: var(--forest); }
.site h3 { font-size: 21px; font-weight: 700; margin-bottom: 2px; }
/* Descriptions run to different lengths, so push the address button to the
   bottom of the card and they all sit on one line. */
.site .btn { margin-top: auto; }
.site .type { margin-bottom: 14px; }
.cta-block { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-block h2 { color: var(--sand); margin-bottom: 0; }

/* Contact */
.contact { background: var(--forest); padding: 72px 0; }
.contact h2 { color: var(--sand); margin-bottom: 24px; }
.form { background: var(--sand); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form input:not([type=checkbox]):not([type=radio]), .form textarea, .form select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.form .pill { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 500; margin: 0; background: #fff; cursor: pointer; min-height: 44px; }
.pill input { accent-color: var(--forest); width: 16px; height: 16px; margin: 0; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.form .tier { border-radius: 12px; padding: 12px; align-items: flex-start; }
.tier small { color: var(--muted); font-size: 13px; }

/* Native select arrows differ between browsers, so draw our own. */
.form select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231f2a24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 40px;
  cursor: pointer;
}

/* A ticked pill or budget tier should read as chosen at a glance. */
.form .pill:has(input:checked) {
  border-color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--forest);
  background: #e9eee0;
}
.form .pill:has(input:focus-visible) { outline: 3px solid var(--forest); outline-offset: 2px; }
.form .tier:has(input:checked) small { color: #3f4a39; }

/* The box for "Other" only appears once it is ticked. */
.other-detail { display: none; margin-top: 12px; }
.form fieldset:has(input[value="Other"]:checked) .other-detail { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #2d5a2a; }
.form-status.err { color: #9b2c1f; }

/* About */
.about { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.portrait { width: 220px; height: 220px; object-fit: cover; border-radius: 24px; display: block; margin-bottom: 24px; }
.about h2 { margin-bottom: 16px; }
.about-intro p { font-size: 17px; line-height: 1.7; color: #4a4f46; margin: 0; }
.about-intro a { font-weight: 600; text-underline-offset: 3px; }
.about-cards { display: flex; flex-direction: column; gap: 16px; }
.big { font-size: 32px; font-weight: 800; color: var(--forest); }
.about-cards p { margin: 4px 0 0; color: var(--muted); }
.about-cards h3 { font-size: 18px; margin-bottom: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--sand); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; }

/* Footer */
.footer { background: var(--forest); color: var(--on-forest); font-size: 14px; padding: 28px 0; }
/* Not flex: the year sits in its own <span>, and flex would make each text
   run a separate item, collapsing the spaces around it. */
.footer .wrap { text-align: right; }

/* Phone */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  h2 { font-size: 28px; margin-bottom: 20px; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 17px; }
  .section { padding: 56px 0; }
  .steps { padding-bottom: 0; }
  .steps h2, .work h2 { text-align: center; }
  .step { padding: 22px; align-items: center; text-align: center; gap: 8px; }
  .step-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .contact { padding: 56px 0; }
  .form { padding: 20px; }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .about { padding: 56px 0; }
  .site-grid { grid-template-columns: 1fr; }
  .hero-short h1 { font-size: 34px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-intro { text-align: center; }
  .portrait { margin: 0 auto 24px; }
  .about-cards .card { text-align: center; }
  .chips { justify-content: center; }
  .footer .wrap { text-align: center; }
}

/* Turnstile will not render narrower than 300px, which is wider than the
   form's inner width on a 320px screen and caused sideways scroll. Scale it
   down there instead; the widget stays fully usable. */
@media (max-width: 359px) {
  .cf-turnstile { transform: scale(0.78); transform-origin: top center; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen img { transition: none; }
}
