/*
  KDQC website layout and type. Based on home page design A2r (blue), 2026-10-01.
  No colour values here: every colour comes from colors.css.
  Fonts are self-hosted from /assets/fonts (licences in that folder).
*/
@font-face { font-family: "KD Serif"; src: url("/assets/fonts/LiberationSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "KD Sans"; src: url("/assets/fonts/UbuntuSans-Variable.ttf") format("truetype"); font-weight: 100 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }

:root {
  --serif: "KD Serif", "Liberation Serif", Georgia, "Times New Roman", serif;
  --sans: "KD Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --space-section: clamp(72px, 8vw, 104px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-weight: 380; font-size: 16px; line-height: 1.65; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--navy); color: var(--on-navy-strong); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

/* header (mobile first) */
header.site { border-bottom: 1px solid var(--rule); background: var(--paper); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand .mark { font-family: var(--serif); font-size: 26px; letter-spacing: .06em; line-height: 1; }
.brand .name { display: none; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.35; font-weight: 450; }
nav.primary { display: none; }
.menu { display: block; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 12px 4px; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: 48px; background: var(--paper); border: 1px solid var(--rule); padding: 10px 0; min-width: 240px; z-index: 5; box-shadow: 0 12px 30px var(--shadow); }
.menu nav a { display: block; padding: 11px 20px; text-decoration: none; color: var(--text); }
.menu nav a[aria-current="page"] { color: var(--steel); font-weight: 500; }
.menu nav a.btn { margin: 8px 16px 6px; text-align: center; color: var(--on-navy-strong); }

.btn { display: block; text-align: center; text-decoration: none; font-family: var(--sans); font-weight: 520; font-size: 15px; letter-spacing: .01em; padding: 14px 26px; border-radius: 2px; background: var(--navy); color: var(--on-navy-strong); border: 1px solid var(--navy); transition: background .2s; }
.btn:hover { background: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 10px 18px; font-size: 14px; }
.btn-num { font-weight: 400; margin-left: .55em; padding-left: .7em; border-left: 1px solid var(--on-navy-muted); white-space: nowrap; }
.btn.light { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn.light:hover { background: var(--on-navy); }
.btn.ghost { background: transparent; color: var(--on-navy-strong); border-color: var(--on-navy-muted); }
.btn.ghost:hover { background: var(--navy); }
.actions { display: flex; flex-direction: column; gap: 14px; }

/* type */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.012em; }
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; margin: 0 0 32px; }
h2 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.12; margin: 0; }
.eyebrow { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); font-weight: 500; margin: 0 0 24px; }
.lede { font-size: 17px; line-height: 1.7; max-width: 36em; color: var(--text); margin: 0 0 40px; }

/* hero */
.hero { padding: 64px 0 72px; }
.hero .grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.hero-art { display: none; aspect-ratio: 4 / 5; width: 100%; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.art-bg { fill: var(--mist); }
.art-lines { stroke: var(--art-line); }
.art-frame { fill: none; stroke: var(--navy); }
.art-frame2 { fill: var(--navy); fill-opacity: .06; stroke: var(--steel); }
.art-base { fill: var(--navy); stroke: var(--navy); }

/* inner page head */
.page-head { padding: 64px 0 56px; border-bottom: 1px solid var(--rule); }
.page-head h1 { margin-bottom: 20px; }
.page-head .lede { margin-bottom: 0; }

/* sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: 1fr; gap: 28px; }
.label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 22px; }
.body p { margin: 0 0 26px; max-width: 40em; }
.intro { font-size: 18px; line-height: 1.65; color: var(--ink); margin: 0; max-width: 38em; }
.body .intro { margin-bottom: 26px; }

/* "On this page" bar (Services) */
.subnav { border-bottom: 1px solid var(--rule); background: var(--paper); }
.subnav .wrap { display: flex; flex-wrap: wrap; gap: 4px 26px; padding-top: 10px; padding-bottom: 10px; }
.subnav a { display: inline-block; padding: 8px 0; font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--steel); text-decoration: none; border-bottom: 1px solid transparent; }
.subnav a:hover { border-bottom-color: currentColor; }
.subnav + section { border-top: 0; }

/* card grids (Services, About): hairline-topped blocks, no boxes */
.cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 56px; }
.cards li { padding: 26px 0 30px; border-top: 1px solid var(--rule); }
.cards h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 23px; line-height: 1.25; margin: 0 0 10px; }
.cards p { margin: 0; max-width: 34em; }
.steps-label { margin: 56px 0 0; }
.steps-label + .steps { margin-top: 28px; }
.start-cta { margin-top: 48px; }
.creds-line { margin: 30px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.creds-line .label { margin: 0; }
.creds-line .creds { font-size: 20px; }
.leader { max-width: 40em; }
.leader-name { font-family: var(--serif); font-size: 30px; line-height: 1.2; color: var(--ink); margin: 0 0 6px; }
.leader .label { margin-bottom: 20px; }
.leader p:last-child { margin: 0; }
.body p:last-child { margin-bottom: 0; }

.pain { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
.pain li { padding: 22px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.6; }
.pain h3, .services h3, .steps h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); }
.pain h3 { font-size: 21px; line-height: 1.3; margin: 0 0 10px; }

.services { list-style: none; margin: 0; padding: 0; }
.services li { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 30px 0; border-top: 1px solid var(--rule); }
.services li:last-child { border-bottom: 1px solid var(--rule); }
.services h3 { font-size: 24px; line-height: 1.25; margin: 0; }
.services p { margin: 0; }
.text-link { display: inline-block; margin-top: 30px; font-size: 15px; font-weight: 500; color: var(--steel); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link::after { content: "\00a0\00a0\2192"; }
.more { margin-top: 56px; }

.mist { background: var(--mist); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: 1fr; row-gap: 36px; }
.steps li { counter-increment: step; font-size: 16px; line-height: 1.6; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--steel); margin-bottom: 22px; }
.steps h3 { font-size: 21px; margin: 0 0 8px; }
@media (max-width: 760px) {
  /* compact steps on phones: number beside the heading, not above it */
  .steps { row-gap: 28px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; align-items: start; }
  .steps li::before { grid-row: span 2; font-size: 30px; margin: 0; }
}

/* Why the Standard Matters */
.standard { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.standard li { position: relative; padding: 18px 0 18px 34px; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 20px; line-height: 1.35; color: var(--ink); }
.standard li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 12px; height: 7px; border-left: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(-45deg); }

.pair { display: grid; grid-template-columns: 1fr; }
.pair > div { padding: 72px 0; }
.pair > div + div { border-top: 1px solid var(--rule); }
.pair h2 { margin-bottom: 26px; }
.pair p { margin: 0; max-width: 34em; }
.tight { padding: 0; }
.standards { list-style: none; margin: 0; padding: 0; }
.standards li { padding: 14px 0; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: 19px; color: var(--ink); }
.standards li:last-child { border-bottom: 1px solid var(--rule); }

.also { columns: 1; margin: 0; padding-left: 20px; }
.also li { margin: 0 0 10px; break-inside: avoid; }
.creds { font-family: var(--serif); font-size: 24px; color: var(--ink); letter-spacing: .04em; margin: 0; }

/* Built in Oklahoma band */
.on-navy { background: var(--navy); color: var(--on-navy); }
.on-navy h2 { color: var(--on-navy-strong); }
.ok { padding: 0; position: relative; overflow: clip; }
.ok .inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 40px; }
.ok h2 { font-size: clamp(42px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
.ok p { font-size: 17px; line-height: 1.7; max-width: 32em; margin: 0; color: var(--on-navy); }
.ok .land { display: block; width: 100%; height: clamp(96px, 15.28vw, 220px); }
.land .horizon { stroke: var(--art-horizon); }
.land .s1 { fill: var(--art-strata-1); }
.land .s2 { fill: var(--art-strata-2); }
.land .s3 { fill: var(--art-strata-3); }
.land .s4 { fill: var(--art-strata-4); }
.land .crest { fill: none; stroke: var(--art-crest); stroke-opacity: .55; }
.ok + .closing { border-top-color: var(--ink); }

/* closing band */
.closing { background: var(--ink); color: var(--on-navy); padding: 80px 0; text-align: center; border-top: 1px solid var(--dark-rule); }
.closing h2 { color: var(--on-navy-strong); font-size: clamp(34px, 4vw, 54px); margin-bottom: 18px; }
.closing p { margin: 0 auto 40px; color: var(--on-navy-muted); font-size: 18px; max-width: 32em; }
.closing .actions { max-width: 420px; margin: 0 auto; }

/* contact */
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.contact-list li { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.contact-list .label { margin-bottom: 8px; }
.contact-list a { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration-color: var(--steel); }
.notice { margin: 40px 0 0; padding: 20px 24px; border-left: 3px solid var(--navy); background: var(--mist); color: var(--ink); max-width: 40em; }
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin: 0; }

/* legal and plain text pages */
.prose { max-width: 44em; }
.prose h2 { font-size: 28px; margin: 48px 0 16px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { margin: 0 0 18px; }
.prose a { color: var(--steel); }

/* footer */
footer.site { background: var(--ink); color: var(--on-navy-muted); font-size: 14px; padding: 40px 0 44px; border-top: 1px solid var(--dark-rule); }
footer.site .cols { display: grid; grid-template-columns: 1fr; gap: 24px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
footer.site a { display: inline-block; padding: 10px 0; color: var(--on-navy); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site p { margin: 0; }

a:focus-visible, summary:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }
.on-navy a:focus-visible, .closing a:focus-visible, footer.site a:focus-visible, .skip:focus-visible { outline-color: var(--focus-on-dark); }

@media (min-width: 761px) {
  body { font-size: 17px; }
  .wrap { padding: 0 28px; }
  .bar { height: 84px; }
  .brand .mark { padding-right: 14px; border-right: 1px solid var(--rule); }
  .brand .name { display: block; }
  .menu { display: none; }
  nav.primary { display: flex; align-items: center; gap: 22px; font-size: 14.5px; }
  nav.primary a { text-decoration: none; color: var(--text); padding: 8px 0; }
  nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--steel); }
  nav.primary a.btn, nav.primary a.btn:hover { color: var(--on-navy-strong); padding: 10px 18px; }
  .btn { display: inline-block; }
  .actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .closing .actions { max-width: none; justify-content: center; }
  .lede { font-size: 19px; }
  .hero { padding: 96px 0 104px; }
  .hero-art { display: block; aspect-ratio: 16 / 9; }
  .page-head { padding: 88px 0 72px; }
  section { padding: var(--space-section) 0; }
  .pain { grid-template-columns: repeat(3, 1fr); }
  .pain li { padding: 28px 28px 0 0; border-bottom: 0; }
  .pain li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
  .services li { grid-template-columns: 4fr 8fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .cards.two, .cards.three { grid-template-columns: 1fr 1fr; }
  .intro { font-size: 20px; }
  .subnav { position: sticky; top: 0; z-index: 4; }
  main [id] { scroll-margin-top: 72px; }
  .steps li { padding: 0 28px 0 0; }
  .steps li:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--rule); }
  .pair { grid-template-columns: 1fr 1fr; }
  .pair > div { padding: var(--space-section) 56px var(--space-section) 0; }
  .pair > div + div { padding: var(--space-section) 0 var(--space-section) 56px; border-left: 1px solid var(--rule); border-top: 0; }
  .also { columns: 2; column-gap: 48px; }
  .ok .inner { padding-top: var(--space-section); padding-bottom: 64px; }
  .ok p { font-size: 19px; }
  .closing { padding: var(--space-section) 0; }
  footer.site .cols { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1001px) {
  .wrap { padding: 0 40px; }
  nav.primary { gap: 32px; }
  .hero .grid { grid-template-columns: 7fr 5fr; gap: 72px; }
  .hero-art { aspect-ratio: 4 / 5; }
  .split { grid-template-columns: 4fr 8fr; gap: 72px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps.three { grid-template-columns: repeat(3, 1fr); }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .steps li, .steps li:nth-child(even) { padding: 0 28px 0 0; border-left: 0; }
  .steps li:not(:first-child) { padding-left: 28px; border-left: 1px solid var(--rule); }
  .ok .inner { grid-template-columns: 6fr 6fr; gap: 72px; }
}

/* Motion. Two layers, both progressive enhancement; content is fully visible without them.
   1. Scroll reveal (all current browsers): /assets/js/reveal.js adds "reveal-on" to <html>
      and "is-in" to each [data-reveal] element as it enters the viewport. Without the
      script, or with reduced motion, nothing is hidden.
   2. Oklahoma strata settle as the band scrolls in: native CSS scroll-driven animation,
      only where animation-timeline is supported. Decorative only. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on [data-reveal].is-in { transition: opacity .7s cubic-bezier(.2, .6, .25, 1), transform .7s cubic-bezier(.2, .6, .25, 1); }
  .reveal-on [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }
  @supports (animation-timeline: view()) {
    @keyframes kd-settle { from { transform: translateY(34px); } to { transform: none; } }
    @keyframes kd-draw { from { stroke-dashoffset: 1440; } to { stroke-dashoffset: 0; } }
    .ok .land { view-timeline: --land block; }
    .ok .land .s { animation: kd-settle both cubic-bezier(.2, .6, .25, 1); animation-timeline: --land; }
    .ok .land .s1 { animation-range: entry 0% entry 60%; }
    .ok .land .s2 { animation-range: entry 10% entry 75%; }
    .ok .land .s3 { animation-range: entry 20% entry 90%; }
    .ok .land .s4 { animation-range: entry 30% entry 100%; }
    .ok .land .horizon { stroke-dasharray: 1440; animation: kd-draw both ease-out; animation-timeline: --land; animation-range: entry 0% entry 55%; }
  }
}
@media print {
  .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; }
}
