/* Homepage styles. The consulting page retains its recovered styles. */
:root {
  color-scheme: dark;
  --background: #102824;
  --surface: #16332e;
  --surface-deep: #0c211e;
  --text: #f4f3e9;
  --muted: #b8cbc4;
  --accent: #81ddbf;
  --line: #3b554d;
  --paper: #eaf0e6;
  --ink: #173a30;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--background); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.14; font-weight: 620; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.4rem, 2.3vw, 1.95rem); letter-spacing: -.025em; }
p { margin-bottom: 1rem; }
.container { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 88px; }
.eyebrow, .project-label, .career-period, .experiment-type { font-size: .76rem; font-weight: 650; line-height: 1.5; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { color: var(--accent); margin-bottom: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 10; left: 16px; top: -100px; padding: 12px 20px; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 12px; color: var(--ink); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.wordmark { text-decoration: none; font-weight: 650; font-size: 1.32rem; letter-spacing: -.04em; white-space: nowrap; }
.wordmark span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 27px; align-items: center; }
nav a { display: inline-flex; align-items: center; min-height: 48px; font-size: .88rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 265px; gap: 72px; align-items: center; padding-block: 68px; }
.hero h1 { margin-bottom: 27px; font-size: clamp(2.8rem, 4.8vw, 4.3rem); letter-spacing: -.048em; line-height: 1.05; }
.hero h1 span { color: var(--accent); }
.hero-description { max-width: 640px; color: var(--muted); font-size: 1.04rem; line-height: 1.65; }
.byline { font-size: .92rem; color: var(--text); margin-block: 19px 24px; }
.byline span { color: var(--accent); margin-inline: 10px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 17px; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 19px; border: 1px solid transparent; border-radius: 4px; font-size: .86rem; line-height: 1.5; font-weight: 650; text-decoration: none; }
.button-primary { background: var(--accent); color: var(--surface-deep); }
.button-primary:hover { background: #a4ecd4; color: var(--surface-deep); }
.button-secondary { border-color: #78958a; color: var(--text); }
.button-secondary:hover { background: var(--surface); }
.text-link { min-height: 44px; max-width: 100%; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: .9rem; font-weight: 550; text-decoration-thickness: 1px; }
.hero-email { font-size: .86rem; }
.current-work { padding-block: 22px; border-block: 1px solid var(--line); }
.current-work .eyebrow { color: var(--muted); }
.current-work h2 { font-size: 1.72rem; }
.current-work ul { list-style: none; padding: 0; margin: 22px 0; }
.current-work li { margin-top: 13px; padding-left: 18px; position: relative; color: var(--muted); font-size: .93rem; }
.current-work li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.experience-band { background: var(--surface-deep); border-block: 1px solid var(--line); }
.band-inner { display: flex; align-items: center; gap: 36px; padding-block: 23px; }
.band-inner p { flex-shrink: 0; font-size: .76rem; color: var(--muted); margin: 0; }
.band-inner ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 26px; list-style: none; margin: 0; padding: 0; width: 100%; }
.band-inner li { font-size: 1.15rem; font-weight: 550; letter-spacing: -.02em; }
.section-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: end; margin-bottom: 33px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 380px; margin: 0 0 3px auto; color: var(--muted); }
.research-feature { display: grid; grid-template-columns: 1.65fr 1fr; border-radius: 6px; overflow: hidden; background: var(--paper); color: var(--ink); }
.research-copy { padding: 40px; }
.project-label { margin-bottom: 18px; color: var(--muted); letter-spacing: .06em; }
.project-label span { margin-inline: 5px; }
.research-copy .project-label { color: #426457; }
.research-copy h3 { max-width: 510px; }
.research-copy > p:not(.project-label) { font-size: .97rem; }
.research-feature a:hover { color: #006c53; }
.research-feature a:focus-visible { outline-color: #006c53; }
.link-group { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 21px; }
.research-note { display: flex; flex-direction: column; justify-content: center; padding: 40px; background: #dce7dc; border-left: 1px solid #bed0c1; }
.research-note .eyebrow { color: #426457; margin-bottom: 14px; }
.research-number { font-size: clamp(4rem, 7vw, 6.2rem); font-weight: 600; letter-spacing: -.065em; line-height: 1; margin-bottom: 8px; }
.research-caption { font-size: 1.04rem; font-weight: 600; margin-bottom: 22px; }
.research-context { font-size: .92rem; }
.research-source { font-size: .74rem; margin: 10px 0 0; color: #426457; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.work-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.work-card > img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; object-position: center; background: #080f0d; }
.card-copy { padding: 30px; }
.card-copy > p:not(.project-label) { color: var(--muted); font-size: .96rem; }
.card-copy h3 { font-size: 1.65rem; }
.leadership-section { background: var(--surface-deep); border-block: 1px solid var(--line); padding-block: 72px; }
.leadership-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.leadership-grid > div > p:last-child { max-width: 490px; color: var(--muted); margin-bottom: 0; }
.practice-list { margin: 0; }
.practice-list > div { border-bottom: 1px solid var(--line); padding-block: 19px; }
.practice-list > div:first-child { padding-top: 0; }
.practice-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.practice-list dt { font-size: 1.03rem; font-weight: 600; }
.practice-list dd { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.experience-section { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; }
.section-intro { color: var(--muted); max-width: 450px; }
.career-list article { position: relative; padding: 0 0 25px 23px; border-left: 1px solid var(--line); }
.career-list article::before { content: ""; position: absolute; left: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.career-period { color: var(--muted); margin-bottom: 8px; font-size: .71rem; }
.career-list h3 { margin-bottom: 5px; font-size: 1.36rem; }
.career-role { font-weight: 550; margin-bottom: 6px; font-size: .96rem; }
.career-list article > p:last-child, .earlier-work { color: var(--muted); font-size: .91rem; margin-bottom: 0; }
.earlier-work { padding-left: 23px; }
.file-label { font-size: .7rem; letter-spacing: .04em; text-decoration: none; }
.tools-section { padding-top: 0; display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; }
.tools-intro { border-top: 1px solid var(--line); padding-top: 36px; }
.tools-intro p:not(.eyebrow) { color: var(--muted); font-size: .96rem; }
.experiment-list { border-top: 1px solid var(--line); padding-top: 18px; }
.experiment { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.experiment-type, .experiment-title, .experiment-description { display: block; }
.experiment-type { font-size: .7rem; color: var(--muted); }
.experiment-title { font-size: 1.35rem; font-weight: 550; margin-block: 6px; }
.experiment-description { font-size: .92rem; color: var(--muted); }
.experiment > span:last-child { font-size: 1.5rem; color: var(--accent); }
.experiment:hover .experiment-title { text-decoration: underline; text-underline-offset: .2em; }
.contact-section { background: #1b3a31; border-block: 1px solid var(--line); padding-block: 65px; }
.contact-inner { display: grid; grid-template-columns: 1fr 265px; gap: 90px; align-items: center; }
.contact-inner h2 { max-width: 670px; }
.contact-inner > div > p:last-child { max-width: 580px; color: var(--muted); margin: 0; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.contact-actions .button { min-width: 190px; margin-bottom: 7px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding-block: 22px; color: var(--muted); font-size: .79rem; }
.footer-inner p { margin: 0; }
.footer-inner a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .hero { gap: 40px; grid-template-columns: minmax(0, 1fr) 220px; }
  .hero h1 { font-size: clamp(2.8rem, 5vw, 3.5rem); }
  .section-heading, .leadership-grid, .experience-section, .tools-section, .contact-inner { gap: 48px; }
  .research-copy, .research-note { padding: 30px; }
  .band-inner { align-items: flex-start; gap: 24px; }
  .band-inner ul { justify-content: flex-start; }
}
@media (max-width: 800px) {
  .hero { display: block; padding-block: 44px; }
  .hero h1 { max-width: 660px; }
  .hero-description { max-width: 640px; }
  .current-work { display: none; }
  .section { padding-block: 60px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .section-heading > p { max-width: 560px; margin: 0; }
  .research-feature { grid-template-columns: 1.4fr 1fr; }
  .research-copy, .research-note { padding: 26px; }
  .research-copy h3 { font-size: 1.55rem; }
  .case-grid { gap: 18px; }
  .card-copy { padding: 24px; }
  .card-copy h3 { font-size: 1.43rem; }
  .leadership-grid, .experience-section, .tools-section { grid-template-columns: 1fr; gap: 32px; }
  .leadership-section { padding-block: 55px; }
  .section-intro, .leadership-grid > div > p:last-child { max-width: 640px; }
  .tools-section { padding-top: 0; }
  .tools-intro { padding-top: 0; border-top: 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
  .contact-actions .button { margin: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 40px); }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 14px; padding-bottom: 2px; }
  .wordmark { font-size: 1.23rem; }
  nav { width: 100%; justify-content: space-between; gap: 12px; }
  nav a { font-size: .9rem; }
  .hero { padding-block: 30px; }
  .hero .eyebrow { font-size: .66rem; letter-spacing: .075em; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(2.05rem, 9.1vw, 2.7rem); line-height: 1.09; letter-spacing: -.04em; margin-bottom: 20px; }
  .hero-description { font-size: .96rem; line-height: 1.55; }
  .byline { font-size: .86rem; margin-block: 15px 18px; }
  .actions { gap: 9px; }
  .actions .button { flex: 1 1 145px; padding-inline: 10px; font-size: .81rem; }
  .hero-email { min-height: 44px; }
  .band-inner { display: block; padding-block: 18px; }
  .band-inner p { margin-bottom: 10px; font-size: .7rem; }
  .band-inner ul { column-gap: 19px; row-gap: 7px; }
  .band-inner li { font-size: .98rem; }
  .section { padding-block: 43px; }
  .eyebrow { margin-bottom: 12px; font-size: .7rem; }
  h2 { font-size: 1.9rem; }
  .section-heading { margin-bottom: 24px; gap: 14px; }
  .section-heading > p { font-size: .95rem; }
  .research-feature { grid-template-columns: 1fr; }
  .research-copy { padding: 25px 23px; }
  .research-copy h3 { font-size: 1.65rem; }
  .research-copy .project-label { font-size: .63rem; line-height: 1.6; }
  .research-copy > p:not(.project-label) { font-size: .95rem; }
  .research-note { padding: 23px; border-left: 0; border-top: 1px solid #bed0c1; }
  .research-number { font-size: 4.4rem; }
  .research-caption { margin-bottom: 13px; }
  .research-context { margin-bottom: 0; }
  .case-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 22px; }
  .card-copy { padding: 24px; }
  .card-copy h3 { font-size: 1.6rem; }
  .project-label { font-size: .66rem; }
  .leadership-section { padding-block: 43px; }
  .tools-section { padding-top: 0; }
  .contact-section { padding-block: 43px; }
  .contact-inner h2 { font-size: 1.9rem; }
  .contact-actions { flex-direction: column; align-items: flex-start; gap: 5px; }
  .contact-actions .button { margin-bottom: 9px; }
  .footer-inner { justify-content: flex-start; gap: 3px 20px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  :root { color-scheme: light; }
  body { background: white; color: black; font-size: 10pt; }
  .container { width: 100%; }
  .site-header, .skip-link, .hero .actions, .current-work, .contact-actions, .site-footer { display: none; }
  .hero, .section, .leadership-section, .contact-section { padding-block: 18pt; }
  .hero h1 { max-width: 100%; font-size: 28pt; }
  h2 { font-size: 20pt; }
  h3, .card-copy h3 { font-size: 16pt; }
  .hero h1 span, .eyebrow, .project-label, .career-period, .experiment-type, p, li, dd, a { color: black !important; }
  .hero, .section-heading, .leadership-grid, .experience-section, .tools-section, .contact-inner { display: block; }
  .section-heading > p { margin: 0 0 12pt; max-width: 100%; }
  .research-feature, .research-note, .work-card, .experience-band, .leadership-section, .contact-section { background: white; color: black; }
  .research-feature, .work-card, .career-list article, .experiment { break-inside: avoid; }
  .research-copy, .research-note, .card-copy { padding: 12pt; }
  .work-card > img { max-height: 110pt; object-fit: contain; }
  .case-grid { display: block; }
  .work-card { margin-top: 14pt; }
  .research-number { font-size: 40pt; }
  .practice-list { margin-top: 15pt; }
  .career-list { margin-top: 15pt; }
  .tools-intro { border: 0; padding: 0; }
  .experiment-list { margin-top: 10pt; }
  .band-inner { padding-block: 10pt; }
  .contact-inner::after { content: "dan.bettinger@gmail.com | www.danbettinger.com"; display: block; margin-top: 12pt; }
}
