/* Drimeadow: one small design system. Tokens first, then base, layout, components, pages, responsive. */
:root {
  --bg: #f4f1e6;
  --surface: #e8ead9;
  --surface-2: #dde2c9;
  --ink: #1f3126;
  --ink-soft: #4a5a4f;
  --accent: #3f6b4f;
  --accent-deep: #2d4a38;
  --gold: #9a7b3f;
  --line: #c9cdb8;
  --on-dark: #f4f1e6;
  --on-dark-soft: #d6dec9;

  --font-head: 'Newsreader', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --r1: 6px; --r2: 14px;
  --shadow-1: 0 1px 2px rgba(31, 49, 38, .08), 0 6px 16px -8px rgba(31, 49, 38, .25);
  --shadow-2: 0 2px 4px rgba(31, 49, 38, .08), 0 24px 40px -24px rgba(31, 49, 38, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--s5); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea { font: inherit; }
::selection { background: var(--surface-2); color: var(--ink); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: clamp(44px, 5.6vw, 84px); margin-bottom: var(--s5); }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(34px, 3.8vw, 56px); margin-bottom: var(--s5); }
h3 { font-size: 28px; letter-spacing: -.01em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
.skip-link { position: absolute; top: -120px; left: var(--s4); background: var(--ink); color: #fff; padding: var(--s3) var(--s4); z-index: 10; border-radius: var(--r1); }
.skip-link:focus { top: var(--s3); }

.eyebrow, .section-marker, .service-number, .hero-bottom, .art-topline, .art-caption, .journal-label, .case-eyebrow, .review-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.section-marker { grid-column: 1 / 5; color: var(--accent); padding-top: var(--s2); }

/* layout */
.page-shell { max-width: calc(var(--wrap) + 10%); margin: 0 auto; padding: 0 5%; }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); min-height: 104px; border-bottom: 1px solid var(--ink); }
.wordmark { font-family: var(--font-head); font-size: 32px; font-weight: 500; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.brand-dot { font-family: var(--font-body); font-size: 12px; vertical-align: super; margin-left: var(--s1); color: var(--gold); }
.site-header nav { display: flex; align-items: center; gap: var(--s6); font-size: 14px; font-weight: 500; }
.site-header nav a { text-decoration: none; padding: var(--s1) 0; border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), color .2s var(--ease); }
.site-header nav a:hover { border-bottom-color: currentColor; }
.site-header .nav-cta { background: var(--accent); color: #fff; padding: var(--s2) var(--s4); border-radius: 999px; border: 0; transition: background .2s var(--ease), transform .2s var(--ease); }
.site-header .nav-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
.nav-cta span { margin-left: var(--s2); }
.back { text-decoration: none; font-weight: 500; }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: var(--s5); background: var(--accent); color: #fff; padding: var(--s4) var(--s5); border: 0; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.button:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.light-button { background: var(--bg); color: var(--ink); justify-self: start; margin-top: var(--s2); }
.light-button:hover { background: #fff; }
.text-link { font-size: 15px; font-weight: 600; }
.text-link span { margin-left: var(--s3); }

/* hero */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); padding-top: var(--s7); }
.hero-label { grid-column: 1 / -1; margin-bottom: var(--s6); color: var(--accent); }
.hero-copy { grid-column: 1 / 8; padding-bottom: var(--s7); }
.hero-copy > p { max-width: 520px; font-size: 19px; color: var(--ink-soft); }
.offer-line { font-size: 15px !important; font-weight: 600; color: var(--ink) !important; margin: var(--s5) 0 !important; }
.hero-copy > .fine-print, .fine-print { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin: var(--s4) 0 0; max-width: 380px; }
.hero-art { grid-column: 8 / -1; align-self: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; box-shadow: var(--shadow-2); }
.hero-art svg { display: block; width: 100%; height: auto; }
.art-topline, .art-caption { display: flex; justify-content: space-between; padding: var(--s4) var(--s5); font-size: 11px; }
.art-topline { border-bottom: 1px solid var(--line); }
.art-caption { border-top: 1px solid var(--line); letter-spacing: .02em; text-transform: none; font-weight: 500; }
.hero-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: var(--s4); border-top: 1px solid var(--line); padding: var(--s5) 0; margin-top: var(--s6); font-size: 11px; color: var(--ink-soft); }

/* sections */
.narrative, .proof, .reviews, .cta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); padding: var(--s8) 0; border-top: 1px solid var(--ink); }
.story-copy, .proof-intro, .reviews-intro, .cta-copy { grid-column: 5 / 12; }
.story-copy p, .proof-intro p, .reviews-intro p { max-width: 640px; color: var(--ink-soft); }
.story-note { font-size: 14px; }

.services { grid-column: 5 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); margin-top: var(--s6); }
.service-card { border-top: 2px solid var(--gold); padding-top: var(--s5); }
.service-number { display: block; margin-bottom: var(--s5); color: var(--ink-soft); font-size: 11px; }
.service-card p, .service-card li { font-size: 15px; color: var(--ink-soft); }
.service-card ul { padding-left: var(--s5); margin: 0; }
.service-card li { padding: var(--s1) 0; }

.proof-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: var(--s6); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-card { padding: var(--s6) var(--s6) var(--s5) 0; }
.proof-card + .proof-card { border-left: 1px solid var(--line); padding-left: var(--s6); }
.proof-card > span { display: block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: var(--s6); }
.proof-card h3 { font-size: 26px; }
.proof-card p { font-size: 15px; max-width: 340px; margin: 0; color: var(--ink-soft); }

.journal { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s8); padding: var(--s6); background: var(--surface); border-radius: var(--r2); }
.journal-label span { display: block; font-size: 11px; color: var(--ink-soft); margin-top: var(--s3); letter-spacing: .08em; }
.journal > div:last-child { grid-column: 2 / 4; }
.journal h3 { font-size: 36px; }
.journal p { max-width: 560px; color: var(--ink-soft); }

/* case studies */
.casestudies { padding: var(--s8) 0; border-top: 1px solid var(--ink); }
.casestudies .section-marker { grid-column: auto; margin-bottom: var(--s4); }
.cases-intro { max-width: 640px; margin-bottom: var(--s7); }
.cases-intro p { color: var(--ink-soft); }
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
.case { background: var(--surface); border-radius: var(--r2); padding: var(--s6); display: flex; flex-direction: column; gap: var(--s4); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.case:first-child { grid-column: 1 / -1; }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.case-eyebrow { color: var(--accent); margin: 0; font-size: 11px; }
.case h3 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); }
.case > p:not(.case-eyebrow):not(.case-stat) { margin: 0; color: var(--ink-soft); font-size: 16px; }
.case dl { margin: 0; display: grid; gap: var(--s3); }
.case dl div { display: grid; grid-template-columns: 96px 1fr; gap: var(--s4); font-size: 15px; }
.case dt { font-weight: 700; }
.case dd { margin: 0; color: var(--ink-soft); }
.case-stat { margin: auto 0 0; padding-top: var(--s4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3); }
.case-stat span { flex: 1 1 100%; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.case-stat b { font: 500 34px var(--font-head); color: var(--ink); }
.case-stat b:last-of-type { color: var(--accent); }
.case-stat i { font-style: normal; color: var(--ink-soft); font-size: 20px; }

/* reviews */
.reviews-intro { margin-bottom: 0; }
.review-track { grid-column: 1 / -1; display: flex; gap: var(--s5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--accent) var(--line); padding: var(--s6) 0 var(--s4); overscroll-behavior-x: contain; }
.review-card { flex: 0 0 min(44vw, 560px); scroll-snap-align: start; background: var(--surface); border-radius: var(--r2); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.review-card:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.review-card video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 6%; background: var(--ink); }
.review-card-copy { padding: var(--s5) var(--s5) var(--s6); }
.review-card-copy img { display: block; width: auto; height: 40px; max-width: 180px; object-fit: contain; object-position: left center; margin-bottom: var(--s5); background: #fff; border-radius: var(--r1); padding: 4px 8px; }
.reviews .review-card-copy p { font-family: var(--font-head); font-size: 23px; line-height: 1.25; letter-spacing: -.01em; margin: 0; }
.reviews .review-card-copy .review-attribution { font: 600 11px/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: var(--s5) 0 0; }

/* contact */
.cta { background: var(--accent); color: var(--on-dark); margin-inline: calc(50% - 50vw); padding: var(--s8) calc(50vw - 50%); border-top: 0; }
.cta .section-marker { color: var(--on-dark-soft); }
.cta-copy > p { max-width: 600px; color: var(--on-dark-soft); }
.contact-box { border-top: 1px solid rgba(244, 241, 230, .35); padding-top: var(--s5); margin-top: var(--s6); }
.contact-box h3 { font-size: 28px; }
.contact-box p { font-size: 15px; color: var(--on-dark-soft); }
form { display: grid; gap: var(--s2); }
label { font-size: 13px; font-weight: 600; margin-top: var(--s2); }
input, textarea { width: 100%; max-width: 100%; border: 1px solid transparent; border-radius: var(--r1); background: var(--bg); color: var(--ink); padding: var(--s3) var(--s4); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(154, 123, 63, .35); }
input::placeholder, textarea::placeholder { color: #6b756d; opacity: 1; }
textarea { resize: vertical; }
#form-status { margin: 0; font-weight: 600; }
details { border-top: 1px solid rgba(244, 241, 230, .35); border-bottom: 1px solid rgba(244, 241, 230, .35); margin-top: var(--s5); padding: var(--s4) 0; font-size: 15px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: var(--s4) 0 0; }

/* footer */
.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s5); padding: var(--s7) 0 var(--s6); align-items: start; }
.site-footer p, .site-footer div { font-size: 13px; color: var(--ink-soft); }
.site-footer p { margin: 0; }
.site-footer div { text-align: right; }
.site-footer div a { margin-left: var(--s4); }
.site-footer div span { display: block; margin-top: var(--s3); }

/* article and legal pages */
.article, .legal { max-width: 780px; margin: var(--s8) auto var(--s9); }
.article h1, .legal h1 { font-size: clamp(40px, 5vw, 64px); margin-top: var(--s5); }
.article h2, .legal h2 { font-size: 30px; margin: var(--s7) 0 var(--s4); }
.article p, .legal p, .article li, .legal li { color: var(--ink-soft); }
.article .eyebrow, .legal .eyebrow { color: var(--accent); }
.article aside, .legal aside { padding: var(--s5); border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 var(--r1) var(--r1) 0; margin: var(--s6) 0; }
.article aside, .legal aside p { color: var(--ink); }
.article .button { margin-top: var(--s5); }
.article li, .legal li { margin: var(--s3) 0; }

/* reviews page */
.reviews-page { padding: var(--s8) 0 var(--s9); }
.reviews-page h1 { max-width: 730px; }
.reviews-page .intro { max-width: 620px; margin: var(--s5) 0 var(--s7); color: var(--ink-soft); }
.reviews-page .review-card { flex-basis: min(430px, 82vw); }
.review-video video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 6%; background: var(--ink); }
.reviews-page .review-card blockquote { font: 500 28px/1.15 var(--font-head); margin: 0 0 var(--s4); }
.reviews-page .review-card-copy p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.review-kicker { color: var(--accent); }
.reviews-page .review-card img { margin: var(--s4) 0; }

/* responsive */
@media (min-width: 1500px) { .hero-copy { padding-top: var(--s5); } }
@media (max-width: 960px) {
  .site-header { flex-wrap: wrap; min-height: auto; padding: var(--s5) 0; gap: var(--s3) var(--s5); }
  .site-header nav { flex-wrap: wrap; gap: var(--s2) var(--s5); }
  .hero-copy { grid-column: 1 / -1; padding-bottom: var(--s5); }
  .hero-art { grid-column: 1 / -1; }
  .section-marker { grid-column: 1 / -1; margin-bottom: var(--s5); }
  .story-copy, .services, .proof-intro, .reviews-intro, .cta-copy { grid-column: 1 / -1; }
  .narrative, .proof, .reviews, .casestudies, .cta { padding: var(--s7) 0; }
  .cases { grid-template-columns: 1fr; }
  .review-card { flex-basis: 82vw; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .page-shell { padding: 0 6%; }
  .wordmark { font-size: 28px; }
  .hero { padding-top: var(--s5); }
  .hero-bottom { align-items: start; font-size: 10px; }
  .hero-bottom span { max-width: 48%; }
  .services, .proof-grid { grid-template-columns: 1fr; }
  .proof-card, .proof-card + .proof-card { padding: var(--s5) 0; border-left: 0; }
  .proof-card + .proof-card { border-top: 1px solid var(--line); }
  .proof-card > span { margin-bottom: var(--s3); }
  .proof-card p { max-width: none; }
  .journal { grid-template-columns: 1fr; padding: var(--s5); margin-top: var(--s6); }
  .journal > div:last-child { grid-column: 1; }
  .journal h3 { font-size: 29px; }
  .case { padding: var(--s5); }
  .case dl div { grid-template-columns: 1fr; gap: 2px; }
  .review-track { gap: var(--s4); }
  .review-card-copy { padding: var(--s4) var(--s4) var(--s5); }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer .wordmark { grid-column: 1 / -1; }
  .site-footer div { text-align: left; }
  .site-footer div a { margin: 0 var(--s4) 0 0; }
  .article, .legal { margin: var(--s7) auto var(--s8); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .button:hover, .case:hover, .review-card:hover, .nav-cta:hover { transform: none; }
}
