/* DAEBRO site styles */

@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-400i.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* brand palette */
  --black: #090D0B;
  --forest: #14251D;
  --emerald: #087F5B;
  --mint: #34D399;
  --paper: #F5F5F0;

  /* working tints of the palette */
  --muted: #4A534F;          /* body copy on paper */
  --muted-dark: #A9B5AF;     /* body copy on black/forest */
  --rule: #DCDDD5;           /* hairlines on paper */
  --rule-dark: rgba(245,245,240,.14);

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(64px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); font-size: 1.125rem; line-height: 1.6; color: var(--black); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--mint); color: var(--black); }

:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--mint); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--black); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,245,240,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--black); }
.brand img { width: 48px; height: auto; mix-blend-mode: darken; }
.brand span { font-size: 1.1875rem; font-weight: 700; letter-spacing: 0.08em; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.site-nav a { text-decoration: none; font-size: 1rem; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover { color: var(--black); }
.site-nav a[aria-current="page"] { color: var(--black); border-bottom-color: var(--emerald); }
.site-nav .btn, .site-nav .btn[aria-current="page"] { color: var(--paper); border-bottom: 0; padding: 10px 18px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font); font-weight: 700; font-size: 1rem; line-height: 1; padding: 16px 24px; border-radius: 6px; border: 0; cursor: pointer; background: var(--emerald); color: var(--paper); text-decoration: none; transition: background-color .15s ease; }
.btn:hover { background: var(--forest); }
.btn-mint { background: var(--mint); color: var(--black); }
.btn-mint:hover { background: #5FE0B0; }
.btn-black { background: var(--black); color: var(--paper); }
.btn-black:hover { background: var(--forest); }
.text-link { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--mint); }
.text-link:hover { text-decoration-color: currentColor; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 9ch; }
.hero h1 em { font-style: normal; color: var(--emerald); }
.hero .lede { margin-top: 28px; font-size: clamp(1.15rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--muted); max-width: 36ch; }
.hero .actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
/* darken keeps the logo untouched and lets its own off-white background disappear into the page */
.hero-logo img { width: 100%; max-width: 620px; margin-left: auto; mix-blend-mode: darken; }
@media (prefers-reduced-motion: no-preference) {
  .hero-logo img { animation: rise .9s cubic-bezier(.2,.7,.2,1) both .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* Page head (inner pages) */
.page-head { background: var(--forest); color: var(--paper); }
.page-head .wrap { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(48px, 6vw, 72px); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; max-width: 16ch; }
.page-head p { margin-top: 20px; font-size: 1.25rem; color: var(--muted-dark); max-width: 46ch; }

/* Sections */
.section { padding: var(--section) 0; }
.section + .section:not(.dark) { border-top: 1px solid var(--rule); }
.dark { background: var(--black); color: var(--paper); }
.dark.forest { background: var(--forest); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 22ch; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1875rem; max-width: 52ch; }
.dark .section-head p { color: var(--muted-dark); }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--black); padding-top: 24px; }
.steps li::before { content: counter(step); display: block; font-size: 3.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--emerald); margin-bottom: 20px; }
.steps h3 { font-size: 1.5rem; margin-bottom: 12px; }
.steps p { color: var(--muted); }

/* Capabilities + sample brief */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.capabilities { margin: 0; }
.capabilities div { padding: 22px 0; border-top: 1px solid var(--rule-dark); }
.capabilities div:last-child { border-bottom: 1px solid var(--rule-dark); }
.capabilities dt { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; }
.capabilities dd { margin: 6px 0 0; color: var(--muted-dark); }

.brief { margin: 0; background: var(--forest); border: 1px solid rgba(52,211,153,.22); border-radius: 12px; overflow: hidden; }
.brief-top { background: var(--emerald); color: var(--paper); padding: 18px 28px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.brief-top strong { font-size: 1.125rem; }
.brief-top span { font-size: .875rem; opacity: .85; }
.brief-body { padding: 8px 28px 28px; }
.brief-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9375rem; color: var(--muted-dark); padding: 16px 0; border-bottom: 1px solid var(--rule-dark); }
.brief-meta b { color: var(--paper); }
.finding { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule-dark); }
.finding .num { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--mint); }
.finding p { font-size: 1rem; line-height: 1.5; }
.finding p + p { color: var(--muted-dark); font-size: .9375rem; margin-top: 2px; }
.brief-next { margin-top: 20px; background: rgba(52,211,153,.12); border-left: 3px solid var(--mint); border-radius: 4px; padding: 14px 16px; font-size: .9375rem; line-height: 1.5; }
.brief-next b { display: block; font-size: 1rem; margin-bottom: 2px; color: var(--mint); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); }
.about h2 { font-size: clamp(2rem, 4vw, 3rem); }
.about .copy p { font-size: 1.1875rem; line-height: 1.65; color: var(--muted); max-width: 60ch; }
.about .copy p + p { margin-top: 1.1em; }

/* Coverage list */
.coverage { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--mint); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.coverage li { padding: 22px 0; border-bottom: 1px solid var(--rule-dark); }
.coverage h3 { font-size: 1.375rem; letter-spacing: -0.01em; }
.coverage p { margin-top: 6px; color: var(--muted-dark); }

/* Article lists */
.entries { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--black); }
.entry { border-bottom: 1px solid var(--rule); }
.entry a { display: grid; grid-template-columns: 140px 190px minmax(0, 1fr); gap: 8px 32px; padding: 24px 0; text-decoration: none; align-items: baseline; }
.entry time, .entry .cat { font-size: .9375rem; color: var(--muted); }
.entry .cat { color: var(--emerald); font-weight: 700; }
.entry h2, .entry h3 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.015em; }
.entry p { margin-top: 6px; color: var(--muted); font-size: 1.0625rem; max-width: 62ch; }
.entry a:hover h2, .entry a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--mint); }
.list-foot { margin-top: 32px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters button { font: inherit; font-size: 1rem; font-weight: 700; color: var(--black); background: transparent; border: 1.5px solid var(--rule); border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.filters button:hover { border-color: var(--black); }
.filters button[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--paper); }
.filters button span { font-weight: 400; opacity: .7; margin-left: 4px; }
.entry[hidden] { display: none; }

/* CTA band */
.cta-band { background: var(--emerald); color: var(--paper); }
.cta-band .wrap { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); letter-spacing: -0.03em; max-width: 18ch; }
.cta-band p { margin-top: 14px; font-size: 1.1875rem; color: #D7EFE5; max-width: 44ch; }
.cta-band :focus-visible { outline-color: var(--paper); }

/* Footer */
.site-footer { background: var(--black); color: var(--muted-dark); font-size: 1rem; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--rule-dark); }
.footer-name { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.08em; color: var(--paper); text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--paper); }
.footer-links a:hover { color: var(--mint); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .9375rem; }
.footer-bottom a { color: var(--paper); }
.footer-bottom a:hover { color: var(--mint); }
.footer-bottom svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; fill: currentColor; }

/* Process page: case study */
.case { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); }
.case h2 { font-size: clamp(2rem, 4vw, 3rem); }
.case > div > p { margin-top: 14px; color: var(--muted-dark); }
.case dl { margin: 0; border-top: 2px solid var(--mint); }
.case dl > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 32px; padding: 28px 0; border-bottom: 1px solid var(--rule-dark); }
.case dt { font-weight: 700; color: var(--mint); }
.case dd { margin: 0; font-size: 1.25rem; line-height: 1.5; }
.case .signal { display: inline-block; margin-top: 14px; font-size: 1rem; background: var(--forest); border-left: 3px solid var(--mint); padding: 10px 14px; }
.case .verdict { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.case .verdict + p { margin-top: 10px; font-size: 1.0625rem; color: var(--muted-dark); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: calc(100vh - 72px); }
.contact-side { background: var(--forest); color: var(--paper); padding: clamp(48px, 7vw, 96px) var(--gutter); }
.contact-side h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
.contact-side p { margin-top: 20px; color: var(--muted-dark); font-size: 1.1875rem; max-width: 36ch; }
.contact-side ol { margin: 32px 0 0; padding-left: 1.2em; color: var(--muted-dark); }
.contact-side ol li::marker { color: var(--mint); font-weight: 700; }
.contact-side ol li + li { margin-top: 8px; }
.contact-form { padding: clamp(48px, 7vw, 96px) var(--gutter); max-width: 720px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 1rem; }
.field input, .field textarea { font: inherit; font-size: 1.0625rem; color: var(--black); background: #FFFFFF; border: 1.5px solid #CBCDC4; border-radius: 6px; padding: 13px 14px; width: 100%; }
.field textarea { min-height: 168px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(8,127,91,.18); }
.field .hint { font-size: .9375rem; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; }
.field .hint [data-ok="true"] { color: var(--emerald); font-weight: 700; }
.form-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.form-actions p { font-size: .9375rem; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Article */
.article-head { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 48px); }
.article-head .wrap, .article-body .wrap, .article-end .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.crumbs { font-size: 1rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 28px; }
.crumbs a { color: var(--emerald); font-weight: 700; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-head h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.02; letter-spacing: -0.03em; }
.article-head .standfirst { margin-top: 24px; font-size: 1.3125rem; line-height: 1.5; color: var(--muted); max-width: 40em; }
.article-body { padding-bottom: 32px; }
.prose { font-size: 1.1875rem; line-height: 1.72; color: #2A302D; }
.prose > * + * { margin-top: 1.15em; }
.prose > p:first-child { font-size: 1.3125rem; line-height: 1.6; color: var(--black); border-top: 2px solid var(--black); padding-top: 32px; }
.prose h2 { font-size: 1.875rem; color: var(--black); margin-top: 1.9em; }
.prose h3 { font-size: 1.4375rem; color: var(--black); margin-top: 1.6em; }
.prose h4 { font-size: 1.1875rem; color: var(--black); margin-top: 1.4em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--emerald); text-underline-offset: 4px; }
.prose strong, .prose b { color: var(--black); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--emerald); font-size: 1.375rem; line-height: 1.5; color: var(--black); }
.prose pre { background: var(--black); color: var(--paper); padding: 20px 24px; border-radius: 8px; overflow-x: auto; font-size: .9375rem; line-height: 1.6; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.prose th, .prose td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { border-bottom: 2px solid var(--black); }
.prose .callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.prose .callout { background: #EAEBE4; border-radius: 8px; padding: 20px 22px; font-size: 1.0625rem; line-height: 1.55; }
.prose .callout > * + * { margin-top: .5em; }
.prose .callout h4, .prose .callout h3 { margin-top: 0; font-size: 1.125rem; }
.prose .facts { margin: .9em 0 0; border-top: 2px solid var(--black); }
.prose .facts div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; }
.prose .facts dt { color: var(--muted); }
.prose .facts dd { margin: 0; font-weight: 700; text-align: right; }
.perspective { margin-top: 56px; background: var(--forest); color: var(--paper); border-radius: 12px; padding: clamp(28px, 4vw, 44px); }
.perspective h2 { font-size: 1.125rem; color: var(--mint); margin-bottom: 14px; letter-spacing: 0; }
.perspective p { font-size: 1.3125rem; line-height: 1.55; }
.perspective p + p { margin-top: .8em; }
.sources { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); }
.sources h2 { font-size: 1.25rem; margin-bottom: 14px; letter-spacing: 0; }
.sources ol { margin: 0; padding-left: 1.4em; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.sources li + li { margin-top: 10px; }
.sources a { color: var(--emerald); text-underline-offset: 3px; }
.article-end { padding: 24px 0 var(--section); }
.article-end h2 { font-size: 1.75rem; margin-bottom: 20px; }
.article-end .entry a { grid-template-columns: 150px minmax(0, 1fr); }

/* About: timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--black); }
.timeline li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 48px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.timeline .when { display: flex; flex-direction: column; gap: 2px; font-size: 1rem; color: var(--muted); }
.timeline .when .date { color: var(--black); font-weight: 700; }
.timeline h3 { font-size: 1.5rem; letter-spacing: -0.015em; }
.timeline .org { margin-top: 4px; color: var(--emerald); font-weight: 700; }
.timeline .org + p { margin-top: 8px; color: var(--muted); max-width: 60ch; }
.field .optional { font-weight: 400; color: var(--muted); }
@media (max-width: 960px) { .timeline li { grid-template-columns: 1fr; } }

/* About: roadmap */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.roadmap li { border-top: 2px solid var(--mint); padding-top: 20px; }
.roadmap .stage { display: block; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; color: var(--mint); margin-bottom: 10px; }
.roadmap p { color: var(--muted-dark); }
.goal { margin-top: clamp(48px, 6vw, 80px); max-width: 24ch; font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; color: var(--paper); }
@media (max-width: 960px) { .roadmap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .roadmap { grid-template-columns: 1fr; } }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 420px; margin: 0 auto 0 0; }
  .split, .about, .case, .contact { grid-template-columns: 1fr; }
  .contact { min-height: 0; }
  .steps, .coverage { grid-template-columns: 1fr; }
  .entry a, .article-end .entry a { grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; }
  .entry a > div { grid-column: 1 / -1; margin-top: 4px; }
}
@media (max-width: 400px) { .site-nav { gap: 10px; } .site-nav a { font-size: .875rem; } .brand img { width: 36px; } }
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .site-header .wrap { height: 64px; gap: 12px; }
  .brand img { width: 42px; }
  .brand span { display: none; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: .9375rem; }
  .site-nav .btn { padding: 9px 12px; font-size: .9375rem; }
  .hero-logo img { max-width: 300px; }
  .form-grid { grid-template-columns: 1fr; }
  .case dl > div { grid-template-columns: 1fr; }
  .finding { grid-template-columns: 56px minmax(0, 1fr); }
  .brief-top, .brief-body { padding-left: 20px; padding-right: 20px; }
  .prose { font-size: 1.125rem; }
  .prose table { display: block; overflow-x: auto; }
}
