/* DKM Consulting Group: site styles
   Colors are tokens. Dark mode changes the tokens only. */

:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --band: #EDF2F7;
  --ink: #1C2B3A;
  --body: #3E4B57;
  --muted: #56636F;
  --rule: #DCE4EC;
  --accent: #4682B4;
  --btn: #2F5F86;
  --btn-hover: #24496A;
  --link: #2F5F86;
  --field: #B8C6D3;
  --fieldbg: #FFFFFF;
  --error: #B3261E;
  --navy: #1C2B3A;
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --gutter: 48px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; }
h2 { font-size: 38px; line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.25; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--btn); color: #FFFFFF; padding: 8px 14px; z-index: 10; }
.skip-link:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); padding: 18px var(--gutter); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 80px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; font-size: 16px; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; }
.main-nav a[aria-current="page"]:not(.btn) {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Buttons and links */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--btn);
  border: 0;
  border-radius: 3px;
  padding: 14px 26px;
  min-height: 48px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--btn-hover); color: #FFFFFF; }
.btn[disabled] { opacity: .6; cursor: progress; }
.main-nav a.btn { color: #FFFFFF; padding: 10px 20px; min-height: 0; font-weight: 500; }
.text-link { font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* Sections */
.section { padding: 96px var(--gutter); }
.section-top { padding-top: 88px; padding-bottom: 72px; }
.section-tight { padding-top: 0; }
.section-tight-top { padding-top: 0; }
.band { background: var(--band); }
.band h2 { margin-bottom: 48px; }
.rule { height: 4px; background: var(--accent); margin-bottom: 40px; }
.muted { color: var(--muted); }
.body-text { color: var(--body); }
.measure { max-width: 36em; }
.lede { font-size: 19px; color: var(--body); max-width: 38em; margin: 0; }
.page-title { font-size: 52px; line-height: 1.15; margin-bottom: 28px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 72px; align-items: end; margin-bottom: 48px; }
.section-head p { margin: 0; max-width: 36em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 72px; align-items: start; }
.split h2 { margin-bottom: 16px; }
.section-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 72px; }

/* Hero with circuit */
.hero { position: relative; overflow: hidden; background: var(--navy); }
.hero-text { position: relative; max-width: calc(1200px + 2 * var(--gutter)); padding: 150px var(--gutter) 160px; }
.hero-title { font-size: 46px; line-height: 1.14; margin: 0 0 28px; color: #FFFFFF; }
.hero-lede { margin: 0; font-size: 20px; line-height: 1.6; color: #D3DEE8; max-width: 28em; }
.keep-line { white-space: nowrap; }
.scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,43,58,.96) 0%, rgba(28,43,58,.92) 48%, rgba(28,43,58,.3) 62%, rgba(28,43,58,0) 72%);
}
.cta-bar { padding: 28px var(--gutter); border-bottom: 1px solid var(--rule); }

.circuit { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.circuit .tr { fill: none; stroke: #4682B4; stroke-width: 1.5px; stroke-linejoin: round; opacity: .85; }
.circuit .ic, .circuit .body { fill: #20354A; stroke: #5C93C2; stroke-width: 1.2px; }
.circuit .pin { fill: none; stroke: #5C93C2; stroke-width: 1.5px; }
.circuit .pd, .circuit .jn { fill: #5C93C2; }
.circuit .sg { fill: none; stroke: #E2F2FF; stroke-width: 2.2px; stroke-linecap: round; animation: sg 1s linear infinite; }
.circuit .sg.rv { animation-name: sgr; }
.circuit .live { animation: life 10s linear infinite; }
.circuit .live .tr { stroke-dasharray: 1; animation: draw 10s ease-out infinite; }
.circuit .sgw { animation: flow 10s linear infinite; }
.circuit .live .pp { transform-box: fill-box; transform-origin: center; animation: pop 10s ease-out infinite; }
.circuit .chip { fill: #20354A; stroke: #9CC7E8; stroke-width: 2px; }
.circuit .screen { fill: #2A4A66; }
.circuit .ui { fill: #E2F2FF; animation: ui 3.2s ease-in-out infinite; }
.circuit .ui.u2 { animation-delay: -1.1s; }
.circuit .ui.u3 { animation-delay: -2.2s; }
.circuit .led { fill: #E2F2FF; transform-box: fill-box; transform-origin: center; animation: breathe 4s ease-in-out infinite; }
.circuit .halo { fill: none; stroke: #9CC7E8; stroke-width: 1.5px; transform-box: fill-box; transform-origin: center; animation: halo 4.5s ease-out infinite; }
.circuit .halo.h2 { animation-delay: -2.25s; }
@keyframes sg { from { stroke-dashoffset: 14; } to { stroke-dashoffset: -100; } }
@keyframes sgr { from { stroke-dashoffset: -100; } to { stroke-dashoffset: 14; } }
@keyframes life { 0% { opacity: 1; } 62% { opacity: 1; } 72% { opacity: 0; } 100% { opacity: 0; } }
@keyframes draw { 0%, 6% { stroke-dashoffset: 1; } 20%, 100% { stroke-dashoffset: 0; } }
@keyframes flow { 0%, 20% { opacity: 0; } 24%, 58% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes pop { 0% { transform: scale(0); } 4% { transform: scale(1.25); } 7%, 100% { transform: scale(1); } }
@keyframes ui { 0%, 100% { opacity: .95; } 50% { opacity: .35; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.3); } }
@keyframes halo { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .circuit .live, .circuit .live .tr, .circuit .live .pp, .circuit .sgw, .circuit .ui, .circuit .led, .circuit .halo { animation: none; }
  .circuit .halo { opacity: 0; }
  .circuit .sg { display: none; }
}

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: #2A3E52; margin: 0; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 72px 24px 22px;
  background: linear-gradient(to top, rgba(16,26,36,.94) 0%, rgba(16,26,36,.82) 55%, rgba(16,26,36,0) 100%);
}
.card-text h3 { color: #FFFFFF; margin-bottom: 8px; }
.card-text p { margin: 0; font-size: 15px; line-height: 1.5; color: #D3DEE8; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-bottom: 56px; }
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--ink); }
.quote figcaption { color: var(--muted); font-size: 15px; }
.section .quotes:last-child { margin-bottom: 0; }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400;
  border: 1px solid var(--field); background: var(--fieldbg); color: var(--ink);
  border-radius: 3px; padding: 12px; min-height: 44px; width: 100%;
}
.field textarea { resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.form-status { margin: 0; color: var(--body); min-height: 1.6em; }
.form-status.is-ok { color: var(--ink); font-weight: 500; }
.form-status.is-error { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* About */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.values p { margin: 10px 0 0; }
.value-title { font-size: 52px; line-height: 1.15; }
.band .value-title { margin-bottom: 0; }
.band .page-title { font-size: 64px; line-height: 1.1; margin-bottom: 56px; }
.bio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 72px; align-items: start; }
.bio-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; display: block; }
.bio h2 { margin-bottom: 6px; }
.bio-role { margin: 0 0 28px; }
.bio .body-text { margin: 0 0 20px; }
.closing { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.closing h2 { margin-bottom: 16px; }
.closing p { margin: 0; }

/* Our Experience */
.intro-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; align-items: end; }
.facts { margin: 0; border-left: 2px solid var(--accent); padding-left: 28px; display: grid; gap: 18px; }
.facts dt, .contact-list dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 26px; }
.table-note { margin: 12px 0 32px; }
.table-scroll { overflow-x: auto; }
.projects { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 16px; }
.projects th, .projects td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--rule); }
.projects th { font-weight: 500; color: var(--muted); font-size: 15px; border-bottom: 2px solid var(--accent); }
.projects .project-name { font-family: var(--serif); font-size: 19px; width: 30%; }
.systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 32px; }
.systems h3 { margin-bottom: 8px; }
.systems p { margin: 0; }
.ref-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; border: 1px solid var(--rule); padding: 40px; }
.ref-box p { margin: 0; font-family: var(--serif); font-size: 26px; }

/* Contact */
.contact-list { margin: 40px 0 0; display: grid; gap: 18px; }
.contact-list dd { margin: 0; font-size: 18px; }

/* Footer */
.site-footer { background: var(--navy); color: #C9D5E0; padding: 56px var(--gutter) 40px; font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer-row img { height: 72px; width: auto; display: block; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-nav a { color: #FFFFFF; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; color: #FFFFFF; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid #34465A; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Responsive */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-tight, .section-tight-top { padding-top: 0; }
  .section-head, .split, .section-split, .bio, .closing, .intro-split, .values, .quotes, .systems, .cards { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .main-nav { gap: 16px; }
  .brand img { height: 60px; }
  .hero-text { padding: 96px var(--gutter) 104px; }
  .hero-title { font-size: 36px; }
  .hero-lede { font-size: 18px; }
  .scrim { background: rgba(28,43,58,.82); }
  .page-title, .band .page-title { font-size: 40px; }
  .value-title { font-size: 40px; }
  h2 { font-size: 32px; }
  .bio-photo { max-width: 360px; }
}
@media (max-width: 760px) {
  .keep-line { white-space: normal; }
  .hero-br { display: none; }
}

/* Holding page (while under construction) */
.holding { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.holding-inner { width: 100%; padding-top: 72px; padding-bottom: 72px; }
.holding-logo { height: 100px; width: auto; display: block; margin-bottom: 64px; }
.holding .hero-title { max-width: 14em; }
.holding-contact { margin: 32px 0 0; font-size: 20px; }
.holding-contact a { color: #FFFFFF; text-decoration-color: #6FA3CF; text-underline-offset: 5px; }
.holding-contact a:hover { color: #D3DEE8; }
@media (max-width: 860px) { .holding-logo { height: 72px; margin-bottom: 40px; } }
