/* DPM Tech Group — site styles */
:root {
  --ink: #0f2a3d;
  --ink-2: #33495a;
  --paper: #f7f5f0;
  --card: #ffffff;
  --rule: #ddd8cc;
  --accent: #c8902a;
  --accent-soft: #f3e6cc;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247,245,240,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 700; text-decoration: none; letter-spacing: .01em; }
.brand span { color: var(--accent); }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a.link { text-decoration: none; font-size: .95rem; color: var(--ink-2); }
.nav a.link:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 120px 0 96px; background: #0b2231; color: #fff;
}
.hero-video, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-video { object-fit: cover; }
.hero::before {
  content: ""; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,34,49,.85) 0%, rgba(11,34,49,.55) 55%, rgba(11,34,49,.2) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #e8b04b; }
.hero .lede { color: #d3dde4; }
.hero .btn { background: #e8b04b; color: var(--ink); }
.hero .btn:hover { background: #f0c26b; }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn.ghost:hover { background: #fff; color: var(--ink); }
.hero .stat b { color: #fff; }
.hero .stat small { color: #b9c7d1; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } .hero { background: #0b2231 url(hero-poster.jpg) center/cover; } }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--accent); margin: 0 0 18px; }
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12; font-weight: 700; margin: 0 0 24px; max-width: 18ch;
}
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; margin: 0 0 36px; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 6px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #18405c; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); margin-left: 12px; }
.btn.ghost:hover { background: var(--ink); color: #fff; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; max-width: 760px; }
.stat b { display: block; font-family: Georgia, serif; font-size: 2rem; color: var(--ink); }
.stat small { color: var(--ink-2); font-size: .9rem; }

/* Sections */
section { padding: 88px 0; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; margin: 0 0 12px; }
.section-intro { color: var(--ink-2); max-width: 62ch; margin: 0 0 48px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 28px;
  border-top: 3px solid var(--accent);
}
.card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.card p { margin: 0 0 14px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: .78rem; background: var(--accent-soft); color: #6b4a10; padding: 3px 9px; border-radius: 999px; }

.about { background: var(--ink); color: #e9eef2; }
.about h2 { color: #fff; }
.about .cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about p { color: #c9d4dc; }
.about ul { padding-left: 1.1em; margin: 0; color: #c9d4dc; }
.about li { margin-bottom: 8px; }
.about h3 { color: var(--accent); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; }
.about .panel { border-left: 2px solid var(--accent); padding-left: 24px; }
.about .panel + .panel { margin-top: 32px; }

.approach ol { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.approach li { counter-increment: step; padding-top: 18px; border-top: 1px solid var(--rule); }
.approach li::before { content: "0" counter(step); font-family: Georgia, serif; font-size: 1.6rem; color: var(--accent); display: block; margin-bottom: 6px; }
.approach strong { display: block; margin-bottom: 4px; }
.approach span { color: var(--ink-2); font-size: .95rem; }

.contact { text-align: center; border-top: 1px solid var(--rule); }
.contact .section-intro { margin-left: auto; margin-right: auto; }

footer { padding: 28px 0; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: .88rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 760px) {
  .nav ul { display: none; }
  .hero { padding: 64px 0 56px; }
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .about .cols { grid-template-columns: 1fr; gap: 40px; }
  .btn.ghost { margin: 12px 0 0; }
}
.about strong { color: #fff; }

/* Data center video banner */
.banner {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(260px, 38vw, 420px); padding: 0;
  display: flex; align-items: center;
  background: #06121c url(datacenter-poster.jpg) center/cover;
  color: #fff;
}
.banner-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,18,28,.35) 0%, rgba(6,18,28,.15) 40%, rgba(6,18,28,.75) 100%);
}
.banner-text { width: 100%; text-align: center; }
.banner .eyebrow { color: #e8b04b; margin-bottom: 10px; }
.banner-line {
  margin: 0 auto; max-width: 26ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.2;
  text-shadow: 0 2px 18px rgba(0,0,0,.6);
}
@media (prefers-reduced-motion: reduce) { .banner-video { display: none; } }

/* Back-to-top button */
.to-top {
  position: fixed; right: 28px; bottom: 96px; z-index: 20;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; text-decoration: none;
  box-shadow: 0 6px 20px rgba(15,42,61,.3);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .15s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--ink); }
.to-top:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) { .to-top { right: 20px; bottom: 84px; width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .to-top { transition: none; }
}

/* Chat assistant */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.chat-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--accent); color: var(--ink);
  box-shadow: 0 8px 24px rgba(15,42,61,.35);
  transition: transform .15s ease, background .15s ease;
}
.chat-launcher:hover { transform: scale(1.06); background: #e0a63d; }
.chat-launcher:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.chat-launcher .i-close, .chat.open .chat-launcher .i-open { display: none; }
.chat.open .chat-launcher .i-close { display: block; }
body:has(.chat.open) .to-top { opacity: 0; visibility: hidden; }

.chat-panel {
  position: fixed; right: 24px; bottom: 92px; z-index: 30;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  padding: 0; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(15,42,61,.28);
  animation: chat-in .2s ease;
}
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--ink); color: #fff; }
.chat-head strong { display: block; font-family: Georgia, serif; font-size: 1.05rem; }
.chat-head strong span { color: #e8b04b; }
.chat-head small { color: #b9c7d1; font-size: .78rem; }
.chat-x { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.chat-x:hover { background: rgba(255,255,255,.12); }

.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .93rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--rule); border-bottom-left-radius: 4px; }
.msg-user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg-error { align-self: flex-start; background: #fdecea; color: #8a1c13; border: 1px solid #f5c2bd; }
.msg.typing { display: flex; gap: 5px; padding: 14px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); opacity: .4; animation: chat-dot 1s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: .9; transform: translateY(-3px); } }

.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; background: var(--paper); }
.chat-suggest[hidden] { display: none; }
.chat-suggest button {
  font: inherit; font-size: .8rem; cursor: pointer;
  background: #fff; color: var(--ink); border: 1px solid var(--accent); border-radius: 999px; padding: 5px 11px;
}
.chat-suggest button:hover { background: var(--accent-soft); }

.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--rule); background: #fff; }
.chat-form textarea {
  flex: 1; resize: none; font: inherit; font-size: .93rem; line-height: 1.4;
  padding: 9px 12px; border: 1px solid var(--rule); border-radius: 10px; max-height: 120px; color: var(--ink);
}
.chat-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.chat-form button {
  width: 40px; height: 40px; flex: none; border: 0; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; background: var(--ink); color: #fff;
}
.chat-form button:disabled { opacity: .5; cursor: default; }
.chat-note { margin: 0; padding: 0 12px 10px; font-size: .72rem; color: var(--ink-2); background: #fff; }

@media (max-width: 760px) {
  .chat-launcher { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .chat-panel { right: 8px; left: 8px; bottom: 80px; width: auto; height: calc(100vh - 100px); }
}
@media (prefers-reduced-motion: reduce) { .chat-panel { animation: none; } .msg.typing span { animation: none; } }

/* "See how I work" strip */
.howiwork { background: #0b2231; color: #e9eef2; border-top: 1px solid #16364b; }
.howiwork-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; align-items: center; }
.howiwork h2 { color: #fff; line-height: 1.2; }
.howiwork .eyebrow { color: #e8b04b; }
.howiwork-text p { color: #c9d4dc; }
.howiwork-points { list-style: none; padding: 0; margin: 24px 0 0; }
.howiwork-points li { position: relative; padding-left: 26px; margin-bottom: 10px; color: #dfe7ec; }
.howiwork-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 2px; background: #e8b04b; }
.howiwork-media { margin: 0; border-radius: 12px; overflow: hidden; background: #1e1e1e; border: 1px solid #2b4659;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); aspect-ratio: 16 / 9; }
.howiwork-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .howiwork-grid { grid-template-columns: 1fr; gap: 32px; } }