:root {
  --bg: #efede3;
  --text: #233b32;
  --text-secondary: #536259;
  --accent: #765521;
  --rule: #bfc5b8;
  --surface: #e5e3d8;
  --font: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; }
main, section, article, figure { min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { line-height: 1.6; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--text); color: var(--bg); }
.wrap { width: min(1200px, 90%); margin-inline: auto; }
.section { padding-block: 64px; }
.eyebrow { font-size: .8125rem; color: var(--accent); line-height: 1.5; letter-spacing: .025em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 5; background: var(--text); color: var(--bg); padding: 14px 20px; }
.skip:focus { top: 12px; }
.anchor { display: block; scroll-margin-top: 28px; }

/* Preserve the approved Useful Magic wordmark independently of the text scale. */
.brand { display: inline-flex; align-items: center; min-height: 44px; font: 700 1.5rem/1 Arial, Helvetica, sans-serif; letter-spacing: -.065em; white-space: nowrap; text-decoration: none; }
.brand span { font-family: Georgia, serif; font-size: 1.9rem; margin-left: 5px; line-height: 0; transform: translateY(3px); }
.brand:hover { text-decoration: none; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 24px; border-bottom: 1px solid var(--rule); }
.header nav { display: flex; align-items: center; gap: 32px; }
.header nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .9375rem; text-decoration: none; }
.header nav a:hover { text-decoration: underline; }

.hero { padding-block: 62px 66px; }
.hero h1 { max-width: 980px; font-size: clamp(2.25rem, 4.2vw, 3.75rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 500; margin-top: 22px; }
.hero-intro { max-width: 670px; font-size: 1.1875rem; color: var(--text-secondary); margin-top: 26px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 48px; padding: 12px 20px; background: var(--text); color: var(--bg); border: 1px solid var(--text); border-radius: 3px; font-size: .9375rem; text-decoration: none; }
.button:hover { background: var(--accent); border-color: var(--accent); text-decoration: none; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding-block: 8px; font-size: .9375rem; color: var(--accent); }

.work { border-block: 1px solid var(--rule); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; margin-bottom: 40px; }
.section-heading h2, .contact h2 { font-size: clamp(1.75rem, 2.5vw, 2.125rem); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.section-heading > p { font-size: .9375rem; color: var(--text-secondary); max-width: 390px; }
.product { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); align-items: center; gap: 64px; }
.product-copy h3 { font-size: 1.625rem; line-height: 1.25; font-weight: 500; letter-spacing: -.015em; margin-top: 14px; }
.product-copy .record-wordmark { font-family: ui-rounded, "Arial Rounded MT Bold", -apple-system, sans-serif; font-weight: 900; letter-spacing: -1.5px; font-size: 2.125rem; }
.status { font-size: .8125rem; color: var(--text-secondary); margin-top: 10px; }
.product-copy > p:not(.eyebrow, .status) { font-size: 1rem; color: var(--text-secondary); margin-top: 18px; max-width: 48ch; }
.product-copy > p.product-lead { color: var(--text); font-size: 1.1875rem; line-height: 1.45; margin-top: 24px; }
.product-copy > .text-link { margin-top: 18px; }
.image-link { display: block; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.image-link img { width: 100%; }
.product-image figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 20px; color: var(--text-secondary); font-size: .8125rem; line-height: 1.5; margin-top: 14px; }
.product-image figcaption > span { max-width: 290px; }
.product-image figcaption a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); white-space: nowrap; }
.engine { align-items: start; margin-top: 52px; padding-top: 48px; border-top: 1px solid var(--rule); }
.engine-approach { padding-top: 5px; }
.engine-approach > .eyebrow { padding-bottom: 18px; }
.engine-approach dl { margin: 0; }
.engine-approach dl > div { display: grid; grid-template-columns: 165px minmax(0, 1fr); gap: 20px; padding-block: 22px; border-top: 1px solid var(--rule); }
.engine-approach dt { font-size: 1rem; font-weight: 600; line-height: 1.5; }
.engine-approach dd { font-size: .9375rem; color: var(--text-secondary); line-height: 1.6; margin: 0; max-width: 40ch; }
.future { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: 64px; border-top: 1px solid var(--rule); margin-top: 42px; padding-top: 26px; }
.future h3 { font-size: 1rem; font-weight: 600; }
.future p { margin-top: 8px; font-size: .8125rem; color: var(--text-secondary); }
.future ul { margin: 0; padding: 0; list-style: none; display: flex; align-content: start; flex-wrap: wrap; gap: 12px 28px; }
.future li { font-size: .875rem; line-height: 1.5; }

.business .section-heading { align-items: start; margin-bottom: 32px; }
.business .section-heading h2 { margin-top: 14px; }
.business .section-heading > p { max-width: 570px; font-size: 1rem; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.services article { border-top: 1px solid var(--rule); padding-top: 22px; }
.services h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; text-wrap: initial; }
.services p { font-size: .9375rem; margin-top: 14px; color: var(--text-secondary); }
.contact { border-block: 1px solid var(--rule); padding-block: 52px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.contact h2 { margin-top: 14px; }
.contact p:not(.eyebrow) { max-width: 490px; margin-top: 18px; font-size: 1rem; color: var(--text-secondary); }
.contact-action { justify-self: end; }
.contact-email { display: inline-flex; align-items: baseline; gap: 12px; min-height: 44px; font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.5; letter-spacing: -.02em; color: var(--accent); overflow-wrap: anywhere; }
.contact-action > span { display: block; font-size: .8125rem; color: var(--text-secondary); margin-top: 4px; }
.footer { display: flex; align-items: center; gap: 30px; padding-block: 28px; }
.footer .brand { font-size: 1.25rem; }
.footer .brand span { font-size: 1.7rem; }
.footer p { color: var(--text-secondary); font-size: .8125rem; }
.back-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .8125rem; margin-left: auto; white-space: nowrap; text-decoration: none; }
.back-top:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .product, .future, .contact-grid { gap: 36px; }
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .engine-approach dl > div { grid-template-columns: 135px minmax(0, 1fr); gap: 16px; }
  .services { gap: 24px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header { display: block; padding-block: 15px 8px; }
  .header .brand { font-size: 1.4rem; }
  .header nav { justify-content: space-between; gap: 18px; margin-top: 6px; max-width: 440px; }
  .header nav a { font-size: .875rem; min-height: 44px; }
  .hero { padding-block: 36px 42px; }
  .hero h1 { font-size: clamp(1.95rem, 8.5vw, 2.375rem); line-height: 1.15; letter-spacing: -.025em; margin-top: 18px; max-width: 650px; }
  .hero-intro { font-size: 1.0625rem; margin-top: 22px; }
  .hero-actions { margin-top: 24px; gap: 12px 20px; }
  .button { gap: 18px; padding-inline: 16px; }
  .section { padding-block: 42px; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading h2, .contact h2 { font-size: 1.75rem; }
  .section-heading > p { margin-top: 12px; font-size: .9375rem; max-width: 48ch; }
  .product, .future, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .product-copy h3 { font-size: 1.625rem; }
  .product-copy .record-wordmark { font-size: 1.875rem; }
  .product-copy > p.product-lead { font-size: 1.125rem; margin-top: 20px; }
  .product-copy > p:not(.eyebrow, .status) { max-width: 60ch; }
  .product-copy > .text-link { margin-top: 12px; }
  .product-image figcaption { align-items: start; margin-top: 12px; gap: 12px; }
  .product-image figcaption > span { max-width: 225px; }
  .product-image figcaption a { min-height: 44px; margin-top: -8px; }
  .engine { margin-top: 32px; padding-top: 32px; }
  .engine-approach { padding-top: 0; }
  .engine-approach > .eyebrow { padding-bottom: 14px; }
  .engine-approach dl > div { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 18px; }
  .engine-approach dd { max-width: 60ch; }
  .future { margin-top: 24px; padding-top: 24px; gap: 20px; }
  .future ul { display: grid; gap: 12px; }
  .business .section-heading { margin-bottom: 26px; }
  .business .section-heading > p { margin-top: 20px; }
  .services { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .services article { padding-top: 20px; }
  .services p { margin-top: 10px; }
  .contact-action { justify-self: start; }
  .contact-email { font-size: 1.1875rem; gap: 8px; }
  .contact p:not(.eyebrow) { margin-top: 16px; }
  .footer { flex-wrap: wrap; gap: 10px 20px; padding-block: 20px; }
  .footer p { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
