/* Deploy IT Services: site styles.
   Palette from a circuit board: solder-mask green, copper traces, board white. */
:root {
  --board: #0F4D40;        /* solder-mask green */
  --board-deep: #0A3A30;
  --copper: #C98A3E;       /* traces */
  --copper-ink: #8A5516;   /* copper dark enough for text on light backgrounds */
  --copper-pale: #F4E6D3;
  --paper: #F3F6F4;        /* board white */
  --white: #FFFFFF;
  --ink: #13211D;
  --ink-2: #3B4A45;
  --line: #D5DED9;
  --on-board: #E7F0EC;
  --on-board-2: #A9C2B9;
  --focus: #F2B45C;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wide: 'wdth' 125;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Display type: Archivo at its widest. */
.display { font-stretch: 125%; font-variation-settings: var(--wide); font-weight: 800; letter-spacing: -0.015em; line-height: 1.04; }

/* ---------- Header ---------- */
.site-head { position: relative; z-index: 2; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 54px; width: auto; }
.wordmark { display: flex; align-items: baseline; gap: 10px; line-height: 1; }
.wm-deploy, .wm-it { font-stretch: 125%; font-variation-settings: var(--wide); font-size: 28px; letter-spacing: 0.04em; }
.wm-deploy { font-weight: 800; color: var(--copper); }
.wm-it { font-weight: 800; color: transparent; -webkit-text-stroke: 1.6px var(--copper); }
@media (max-width: 820px) { .brand img { height: 44px; } .wm-deploy, .wm-it { font-size: 22px; } }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--copper); text-decoration-thickness: 2px; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--copper); text-decoration-thickness: 2px; }
.nav-toggle { display: none; }

.on-board { background: var(--board); color: var(--on-board); }
.on-board .nav a { color: var(--white); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
  .nav { display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 88px; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-radius: 12px; padding: 8px; box-shadow: 0 12px 32px rgba(10, 40, 32, 0.18); }
  .nav.is-open { display: flex; }
  .nav a, .on-board .nav a { color: var(--ink); padding: 12px 14px; border-radius: 8px; }
  .nav a:hover { background: var(--paper); text-decoration: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn--copper { background: var(--copper); color: var(--ink); }
.btn--copper:hover { background: #D99A4E; }
.btn--line { border-color: currentColor; color: inherit; }
.btn--line:hover { background: rgba(255, 255, 255, 0.08); }
.btn--board { background: var(--board); color: var(--white); }
.btn--board:hover { background: var(--board-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 96px; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(38px, 6.2vw, 76px); color: var(--white); max-width: 13ch; }
.hero p.lede { margin-top: 24px; font-size: clamp(18px, 2vw, 21px); color: var(--on-board); max-width: 54ch; }
.hero .btn-row { margin-top: 36px; }
.hero .facts { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--on-board-2); font-size: 15px; list-style: none; padding: 0; }
.hero .facts li { display: flex; align-items: center; gap: 10px; }
.hero .facts li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }

/* The traces: one drawing on page load. */
.traces { position: absolute; inset: 0 0 0 auto; width: min(58vw, 760px); height: 100%; pointer-events: none; opacity: 0.9; }
.traces path { stroke: var(--copper); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s cubic-bezier(.6, .1, .2, 1) forwards; }
.traces path:nth-child(2) { animation-delay: .15s; } .traces path:nth-child(3) { animation-delay: .3s; } .traces path:nth-child(4) { animation-delay: .45s; }
.traces path:nth-child(5) { animation-delay: .6s; } .traces path:nth-child(6) { animation-delay: .75s; }
.traces circle { fill: var(--copper); opacity: 0; animation: pop .4s ease-out forwards; animation-delay: 1.9s; }
.traces .pad { fill: none; stroke: var(--copper); stroke-width: 2; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .traces path { animation: none; stroke-dashoffset: 0; }
  .traces circle { animation: none; opacity: 1; }
}
@media (max-width: 820px) { .traces { width: 100%; opacity: 0.22; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); }
.section-head p { color: var(--ink-2); max-width: 52ch; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* Services: rows, like components on a bill of materials. */
.service-list { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.service { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 40px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.service h3 { font-size: 22px; font-stretch: 112%; font-variation-settings: 'wdth' 112; font-weight: 750; line-height: 1.25; }
.service p { color: var(--ink-2); }
.service ul { list-style: none; padding: 0; color: var(--ink-2); font-size: 15px; display: grid; gap: 6px; }
.service li { padding-left: 18px; position: relative; }
.service li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 8px; height: 2px; background: var(--copper); }
@media (max-width: 900px) { .service { grid-template-columns: 1fr; gap: 10px; } }

/* Products */
.products { background: var(--white); }
.product-lead-wrap { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.product { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.product + .product { padding-left: 28px; }
.product:nth-child(3n + 1) { padding-left: 0; }
.product:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.product h3 { font-size: 21px; font-stretch: 112%; font-variation-settings: 'wdth' 112; font-weight: 750; line-height: 1.25; }
.product p { color: var(--ink-2); font-size: 16px; }
.product .more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--copper-ink); text-decoration: underline; text-underline-offset: 4px; }
.product--lead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 56px; padding: 40px 0 44px !important; border-right: none !important; border-bottom: none !important; }
.product--lead h3 { font-size: clamp(26px, 3vw, 34px); font-stretch: 125%; font-variation-settings: var(--wide); font-weight: 800; }
.status--custom { display: inline-block; width: fit-content; font-size: 13px; font-weight: 600; color: var(--copper-ink); background: var(--copper-pale); padding: 3px 10px; border-radius: 999px; margin-bottom: 4px; }
.detail .status { display: inline-block; font-size: 13px; font-weight: 600; color: var(--board); background: #DCEBE5; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.detail .status--custom { color: var(--copper-ink); background: var(--copper-pale); }
.product--lead .status { display: inline-block; font-size: 14px; font-weight: 600; color: var(--board); background: #DCEBE5; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.product--lead ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.product--lead li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.product--lead li svg { margin-top: 4px; }
.product--lead .btn-row { margin-top: 20px; }
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
  .product, .product + .product { padding: 28px 0 !important; border-right: none !important; }
  .product--lead { grid-template-columns: 1fr; }
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px 64px; }
.about-grid h2 { font-size: clamp(30px, 4vw, 48px); }
.about-grid .body { display: grid; gap: 18px; color: var(--ink-2); max-width: 60ch; }
.principles { list-style: none; padding: 0; display: grid; gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
.principles li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.principles strong { color: var(--ink); display: block; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* Contact band */
.contact { padding: clamp(64px, 9vw, 104px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.contact h2 { font-size: clamp(32px, 4.4vw, 56px); color: var(--white); max-width: 16ch; }
.contact p.lede { margin-top: 18px; color: var(--on-board); max-width: 46ch; }
.contact dl { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.contact dl div { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.contact dt { color: var(--on-board-2); font-size: 15px; }
.contact dd { margin: 0; font-weight: 600; color: var(--white); }
.contact dd a { text-decoration-color: var(--copper); text-underline-offset: 4px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { background: var(--board-deep); color: var(--on-board-2); font-size: 15px; padding: 40px 0; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot a { color: var(--on-board); text-underline-offset: 4px; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 32px 0 64px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 60px); color: var(--white); max-width: 18ch; }
.page-hero p { margin-top: 18px; color: var(--on-board); max-width: 60ch; font-size: 19px; }

.prose { max-width: 72ch; display: grid; gap: 16px; color: var(--ink-2); }
.prose h2 { color: var(--ink); font-size: 24px; font-stretch: 112%; font-variation-settings: 'wdth' 112; font-weight: 750; margin-top: 24px; line-height: 1.3; }
.prose h3 { color: var(--ink); font-size: 18px; font-weight: 700; margin-top: 8px; }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--copper-ink); text-underline-offset: 3px; }
.prose .updated { color: var(--ink-2); font-size: 15px; }
.prose .callout { background: var(--copper-pale); color: var(--ink); border-radius: 12px; padding: 18px 20px; }

/* Product detail page */
.detail { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px 64px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.detail:first-of-type { border-top: 2px solid var(--ink); }
.detail h2 { font-size: clamp(26px, 3vw, 34px); font-stretch: 125%; font-variation-settings: var(--wide); font-weight: 800; line-height: 1.1; }
.detail .summary { margin-top: 12px; color: var(--ink-2); }
.detail .body { display: grid; gap: 16px; color: var(--ink-2); }
.detail .body ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.detail .body li { padding-left: 18px; position: relative; }
.detail .body li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 8px; height: 2px; background: var(--copper); }
.detail .body strong { color: var(--ink); }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; } }

/* Focus ring readable on light sections too. */
.section :focus-visible, .products :focus-visible, .prose :focus-visible, main :focus-visible { outline-color: var(--board); }
.on-board :focus-visible { outline-color: var(--focus); }
