:root {
  --bg-canvas: #f3e9d8;
  --bg-surface: #fff9ef;
  --bg-surface-hover: #f7eddd;
  --text-primary: #262626;
  --text-muted: #5d5a52;
  --accent-primary: #c2410c;
  --accent-secondary: #6b7a3a;
  --border-subtle: #ded1bc;
  --ease-kinetic: cubic-bezier(.16,1,.3,1);
  --shadow-elevation: 0 14px 34px -12px rgba(38,38,38,.24);
  --glow-accent: 0 8px 22px -12px rgba(194,65,12,.7);
  --glass-backdrop: blur(12px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg-canvas); color: var(--text-primary);
  font: 17px/1.75 "Trebuchet MS", "Segoe UI", sans-serif;
  overflow-wrap: anywhere; hyphens: auto;
}
img { display: block; max-width: 100%; object-fit: cover; }
a { color: var(--accent-primary); text-underline-offset: .22em; }
a:hover { color: #8c2c08; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-secondary); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 20; background: var(--bg-surface); padding: .6rem 1rem; }
.skip-link:focus { left: 1rem; }
.site-header {
  position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 1rem auto; padding: .65rem 1.15rem;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 99px;
  box-shadow: 0 6px 22px rgba(38,38,38,.08);
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--text-primary); text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 2rem; height: 2rem; display: grid; place-items: center; background: var(--accent-primary); color: white; font-size: .85rem; }
.desktop-nav { display: flex; align-items: center; gap: clamp(.65rem, 2vw, 1.45rem); }
.desktop-nav a, .mobile-menu a { color: var(--text-primary); font-size: .91rem; font-weight: 700; text-decoration: none; }
.desktop-nav a:hover, .mobile-menu a:hover { color: var(--accent-primary); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--text-primary); font-size: 1.7rem; line-height: 1; padding: .35rem .6rem; }
.mobile-menu { display: none; position: absolute; top: calc(100% + .55rem); left: 0; right: 0; padding: .75rem; background: var(--bg-surface); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-elevation); }
.mobile-menu.open { display: grid; gap: .15rem; }
.mobile-menu a { padding: .7rem; }
.wrap { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }
.reading { max-width: 70ch; margin-inline: auto; }
.hero {
  min-height: min(760px, calc(100svh - 5rem)); position: relative; isolation: isolate;
  display: grid; place-items: center; text-align: center; color: #fff9ef; overflow: clip;
  background: #26211c; margin: 0 auto 3rem;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20,18,15,.67); }
.hero-content { width: min(850px, calc(100% - 2rem)); padding: 4rem 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; color: var(--accent-secondary); }
.hero .eyebrow { color: #f4c58d; }
h1, h2, h3 { line-height: 1.18; overflow-wrap: anywhere; hyphens: auto; }
h1 { font-size: clamp(2.7rem, 7vw, 6.2rem); letter-spacing: -.055em; margin: .4rem auto 1rem; max-width: 13ch; }
h2 { font-size: clamp(1.8rem, 3.7vw, 3rem); letter-spacing: -.04em; margin: 0 0 .8rem; }
h3 { font-size: 1.28rem; margin: 0 0 .55rem; }
p { margin: 0 0 1rem; }
.hero p { max-width: 62ch; margin: 0 auto 1.5rem; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.button {
  display: inline-flex; align-items: center; justify-content: center; border: 0;
  padding: .82rem 1.2rem; background: var(--accent-primary); color: #fff9ef;
  font-weight: 800; text-decoration: none; transition: transform .3s var(--ease-kinetic), box-shadow .3s var(--ease-kinetic), background .3s;
}
.button:hover { color: #fff; background: #a33309; transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-elevation), var(--glow-accent); }
.text-link { display: inline-block; font-weight: 800; text-decoration: none; border-bottom: 2px solid currentColor; transition: border-width .25s var(--ease-kinetic), color .25s; }
.text-link:hover { border-bottom-width: 5px; }
.section { padding: 3.8rem 0; }
.section-intro { max-width: 70ch; margin-bottom: 1.7rem; }
.section-kicker { color: var(--accent-secondary); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; margin-bottom: .45rem; }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); margin: 1.5rem 0; background: var(--text-primary); color: var(--bg-surface); }
.stat { padding: 1rem 1.2rem; border-right: 1px solid rgba(255,249,239,.2); }
.stat strong { display: block; color: #f4c58d; font-size: 1.35rem; line-height: 1.3; }
.stat span { font-size: .85rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1.2rem; }
.card { background: var(--bg-surface); box-shadow: 0 8px 24px rgba(38,38,38,.08); transition: transform .4s var(--ease-kinetic), box-shadow .4s var(--ease-kinetic); }
.card:hover { transform: translateY(-5px) scale(1.015); box-shadow: var(--shadow-elevation), var(--glow-accent); }
.card img { width: 100%; aspect-ratio: 4/3; }
.card-body { padding: 1.25rem; }
.feature-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-surface); box-shadow: var(--shadow-elevation); }
.feature-card img { width: 100%; height: 100%; min-height: 280px; aspect-ratio: 16/9; }
.feature-copy { padding: clamp(1.3rem,4vw,3rem); align-self: center; }
.split { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(260px,.9fr); gap: 2rem; align-items: center; }
.prompt-art { min-height: 300px; padding: 1.5rem; background: #302922; color: #fff9ef; display: flex; flex-direction: column; justify-content: space-between; }
.prompt-art .shape { width: 110px; height: 110px; background: var(--accent-primary); border-radius: 50%; box-shadow: 75px 36px 0 -15px #d7a44a, 142px 4px 0 -34px #a5a876; }
.prompt-art small { color: #e9d2b4; }
.tabs { display: flex; gap: .45rem; flex-wrap: wrap; margin: 1rem 0; }
.tab-button { border: 1px solid var(--border-subtle); background: var(--bg-surface); color: var(--text-primary); padding: .6rem .9rem; font-weight: 700; }
.tab-button[aria-selected="true"] { background: var(--accent-secondary); border-color: var(--accent-secondary); color: white; }
.tab-panel { padding: 1.3rem; background: var(--bg-surface); border-left: 4px solid var(--accent-primary); max-width: 70ch; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.before-after > div { background: var(--bg-surface); padding: 1.25rem; border-top: 4px solid var(--border-subtle); }
.before-after > div:last-child { border-color: var(--accent-secondary); }
.checklist { padding-left: 1.2rem; max-width: 70ch; }
.checklist li { padding: .25rem 0 .5rem .35rem; }
details { background: var(--bg-surface); margin: .65rem 0; padding: .9rem 1.1rem; box-shadow: 0 5px 16px rgba(38,38,38,.06); }
summary { cursor: pointer; font-weight: 800; }
details p { margin: .8rem 0 .1rem; }
.page-hero { padding: 3.5rem 0 2rem; background: #e8dbc5; }
.page-hero h1 { font-size: clamp(2.5rem,6vw,4.6rem); max-width: 17ch; margin-left: 0; }
.article-body { max-width: 70ch; margin: 0 auto; padding: 2.4rem 0 4rem; }
.article-body h2 { font-size: 1.75rem; margin-top: 2.2rem; }
.article-body h3 { margin-top: 1.4rem; }
.callout { margin: 1.5rem 0; padding: 1.2rem 1.4rem; background: #e8dbc5; border-left: 4px solid var(--accent-secondary); }
.contact-form { max-width: 720px; }
.contact-form label { display: block; font-weight: 800; margin: 1rem 0 .25rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: .75rem; border: 1px solid var(--border-subtle); border-radius: 0; background: var(--bg-surface); color: var(--text-primary); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; }
.form-status { min-height: 1.5em; color: var(--accent-secondary); }
.site-footer { margin-top: 3rem; padding: 2.4rem 0; background: #262626; color: #fff9ef; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #f4c58d; }
.site-footer h2 { font-size: 1.05rem; letter-spacing: 0; }
.footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .3rem 1rem; }
.copyright { margin: 1.6rem 0 0; padding-top: 1rem; border-top: 1px solid #625e58; font-size: .88rem; }
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); transition: all .7s var(--ease-kinetic); }
@media (min-width:1025px) { .wrap { width: min(1200px,calc(100% - 3rem)); } }
@media (min-width:769px) and (max-width:1024px) { .site-header { margin-inline: 1rem; } }
@media (max-width:768px) {
  .site-header { margin: .65rem; border-radius: 0; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .split, .feature-card { grid-template-columns: 1fr; }
  .feature-card img { min-height: 220px; }
  .hero { min-height: 76svh; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1/-1; }
}
@media (max-width:480px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 1.25rem); }
  .site-header { margin: .5rem; padding: .55rem .8rem; }
  .brand { font-size: .92rem; }
  .hero { min-height: 72svh; margin-bottom: 1.5rem; }
  .section { padding: 2.5rem 0; }
  .before-after { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}