/* DI Tech Solutions — design system
   ink #000000 · panel #0b0b0b · ice #d85c1b · electric #f2762b · chrome #e6e6e6 · dim #9a9a9a */

@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --ink: #000000;
  --panel: #0b0b0b;
  --ice: #d85c1b;
  --electric: #f2762b;
  --chrome: #e6e6e6;
  --dim: #9a9a9a;
  --hairline: rgba(216, 92, 27, 0.22);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  /* content container: never wider than 1280px, always centred on the page */
  --container: 1280px;
  --edge: max(7vw, calc((100vw - var(--container)) / 2));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-color: #1c1c1c var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--chrome);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--mono); }

/* ---------- ambient background ---------- */
#ambient {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; transition: opacity .7s ease, visibility .7s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-mark { display: flex; flex-direction: column; align-items: center; gap: 16px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .3em; color: #ffffff; }
.loader-logo { width: 62px; height: 62px; display: block; filter: drop-shadow(0 0 22px rgba(216, 92, 27, .45)); }
.loader-bar { width: 220px; height: 1px; background: rgba(216, 92, 27, .15); position: relative; overflow: hidden; }
#loader-fill { position: absolute; inset: 0; background: var(--ice); transform-origin: left; transform: scaleX(0); transition: transform .2s ease; box-shadow: 0 0 12px rgba(216, 92, 27, .8); }
.loader-pct { font-size: 11px; letter-spacing: .3em; color: var(--dim); }

/* ---------- nav ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--edge);
  transition: background .5s ease, backdrop-filter .5s ease, padding .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  padding: 14px var(--edge);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.brand {
  font-family: var(--display); font-weight: 700; color: #ffffff; text-decoration: none;
  font-size: 16px; letter-spacing: .18em; display: flex; align-items: center; gap: 12px;
}
.brand-logo { width: 34px; height: 34px; display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand-sub { font-family: var(--mono); font-size: 9px; letter-spacing: .34em; color: var(--ice); }
.links { display: flex; gap: 34px; }
.links a {
  color: var(--dim); text-decoration: none; font-size: 12px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; transition: color .3s;
  position: relative; padding: 4px 0;
}
.links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ice); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.links a:hover, .links a.active { color: var(--chrome); }
.links a:hover::after, .links a.active::after { transform: scaleX(1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-weight: 500; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 14px 28px; border: 1px solid transparent;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn-ghost { color: var(--ice); border-color: rgba(216, 92, 27, .35); }
.btn-ghost:hover { border-color: var(--ice); box-shadow: 0 0 18px rgba(216, 92, 27, .25); }
.btn-solid { background: var(--ice); color: #0d0603; border-color: var(--ice); }
.btn-solid:hover { background: #ef8a4a; box-shadow: 0 0 26px rgba(216, 92, 27, .4); }
.btn-line { color: var(--chrome); border-color: rgba(230, 230, 230, .28); }
.btn-line:hover { border-color: var(--chrome); }

/* ---------- rail ---------- */
#rail {
  position: fixed; left: 26px; top: 50%; transform: translateY(-50%);
  z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.rail-line { width: 1px; height: 120px; background: linear-gradient(to bottom, transparent, var(--hairline) 30%, var(--hairline) 70%, transparent); position: relative; }
.rail-line::after {
  content: ''; position: absolute; left: -1px; width: 3px; height: 22px;
  background: var(--ice); box-shadow: 0 0 10px rgba(216, 92, 27, .9);
  top: calc(var(--p, 0) * 98px);
  transition: top .15s linear;
}
.rail-label {
  writing-mode: vertical-rl; font-size: 9px; letter-spacing: .34em; color: var(--dim);
}

/* ---------- pinned canvas sections ---------- */
.pin-section { position: relative; z-index: 1; }
#hero { height: 300vh; }
#network { height: 260vh; }
#operations { height: 320vh; }
.pin-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.pin-stage::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 22vh;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 55%, var(--ink) 100%);
  z-index: 2; pointer-events: none;
}
.seq-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* hero copy */
.hero-copy {
  position: absolute; left: var(--edge); bottom: 12vh; z-index: 3; max-width: 620px;
}
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .32em; color: var(--ice); margin-bottom: 20px; }
h1.display {
  font-family: var(--display); font-weight: 700; color: #ffffff;
  font-size: clamp(46px, 6.4vw, 92px); line-height: 1.03; letter-spacing: -.02em;
  text-shadow: 0 0 60px rgba(0,0,0,.8);
}
.tagline {
  margin-top: 26px; font-size: 17px; font-weight: 500; color: #d6d6d6;
  letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
}
.hero-ctas { margin-top: 38px; display: flex; gap: 16px; }
.hero-caption {
  position: absolute; z-index: 3; font-size: 12px; font-weight: 600; letter-spacing: .22em; color: var(--ice);
  display: flex; align-items: center; gap: 12px; opacity: 0;
}
.hero-caption .tick { width: 34px; height: 1px; background: var(--ice); box-shadow: 0 0 8px rgba(216, 92, 27, .8); display: inline-block; }
#hero-cap-1 { right: var(--edge); top: 24vh; }
#hero-cap-2 { right: 9vw; top: 58vh; }
#hero-cap-3 { right: var(--edge); top: 40vh; }
.scroll-hint {
  position: absolute; right: var(--edge); bottom: 36px; z-index: 3;
  font-size: 9px; letter-spacing: .4em; color: var(--dim);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hint-line { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--ice), transparent); animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 0%,100% { transform: scaleY(.4); opacity:.4 } 50% { transform: scaleY(1); opacity:1 } }

/* network overlays */
.net-head { position: absolute; left: var(--edge); top: 15vh; z-index: 3; max-width: 40vw; }
.net-head .display-sm, .ops-head .display-sm { text-shadow: 0 2px 30px #000, 0 0 70px #000; }
.net-sub { margin-top: 18px; font-size: 15px; line-height: 1.6; color: #cfcfcf; max-width: 380px; text-shadow: 0 2px 24px #000; }
.display-sm {
  font-family: var(--display); font-weight: 700; color: #ffffff;
  font-size: clamp(28px, 3.2vw, 46px); line-height: 1.16; letter-spacing: -.015em;
}
.net-caption {
  position: absolute; left: var(--edge); bottom: 13vh; z-index: 3;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; color: var(--ice); opacity: 0;
  padding-left: 14px; border-left: 2px solid var(--ice); text-shadow: 0 2px 20px #000;
}

/* ops overlays */
.ops-head { position: absolute; left: var(--edge); top: 13vh; z-index: 3; max-width: 36vw; }
.ops-callout {
  position: absolute; left: var(--x); top: var(--y); z-index: 3;
  display: flex; flex-direction: column; gap: 5px; opacity: 0; transform: translateY(10px);
  padding-left: 14px; border-left: 1px solid var(--ice);
}
.ops-callout .key { font-size: 12px; font-weight: 600; letter-spacing: .26em; color: var(--ice); }
.ops-callout .val { font-size: 15px; color: #dedede; max-width: 260px; line-height: 1.5; text-shadow: 0 2px 18px #000; }
.ops-specs {
  position: absolute; left: 50%; bottom: 8vh; transform: translateX(-50%) translateY(24px);
  z-index: 3; display: flex; gap: clamp(28px, 5vw, 84px); opacity: 0;
  padding: 22px 40px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px);
}
.spec { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.spec .num { font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; color: #ffffff; text-shadow: 0 0 22px rgba(216, 92, 27, .35); }
.spec .lbl { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #b4b4b4; }


/* ---------- services grid ---------- */
#services { padding-top: 12vh; }
.services-head { max-width: 760px; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--hairline); border: 1px solid var(--hairline);
  margin-top: 58px;
}
.service-card {
  background: var(--ink); padding: 40px 34px 44px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .4s ease, box-shadow .4s ease;
  position: relative;
}
.service-card::before {
  content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 0;
  background: var(--ice); transition: height .45s ease;
}
.service-card:hover { background: #0b0b0b; box-shadow: inset 0 0 60px rgba(216, 92, 27, .06); }
.service-card:hover::before { height: 100%; }
.service-no { font-family: var(--mono); font-size: 12px; letter-spacing: .28em; color: var(--ice); }
.service-title {
  font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.25;
  letter-spacing: -.01em; color: #ffffff;
}
.service-desc { font-size: 15.5px; line-height: 1.7; color: #cfcfcf; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.service-list li {
  position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.55; color: #b8b8b8;
}
.service-list li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--ice);
}
@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 32px 26px 34px; }
}

/* ---------- prose sections ---------- */
.prose-section { position: relative; z-index: 2; padding: 15vh var(--edge); }
.prose-inner { width: 100%; max-width: var(--container); margin: 0 auto; }
.prose-inner > .eyebrow, .prose-inner > h2, .prose-inner > .prose-body, .services-head { max-width: 860px; }
.prose-inner.wide { max-width: var(--container); }
h2.display {
  font-family: var(--display); font-weight: 700; color: #ffffff;
  font-size: clamp(34px, 4.4vw, 62px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 40px;
}
.reveal-lines .line { display: block; overflow: hidden; }
.reveal-lines .line > span { display: inline-block; transform: translateY(110%); }
.prose-body p { font-size: 18px; line-height: 1.8; color: #cfcfcf; max-width: 640px; }
.prose-body p + p { margin-top: 22px; }
.prose-body .quiet { color: var(--ice); font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

/* partners */
.logo-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--hairline); border: 1px solid var(--hairline);
  margin: 64px 0 56px;
}
.logo {
  background: var(--ink); padding: 34px 20px; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .22em;
  color: #cfcfcf; transition: color .4s, text-shadow .4s;
}
.logo:hover { color: var(--ice); text-shadow: 0 0 18px rgba(216, 92, 27, .5); }
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.trust { display: flex; flex-direction: column; gap: 8px; }
.trust .num { font-size: 32px; font-weight: 500; color: #ffffff; }
.trust .lbl { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #b4b4b4; max-width: 190px; }

/* contact */
.contact { border-top: 1px solid var(--hairline); background: linear-gradient(to bottom, var(--ink), #050505); }
.form-wrap {
  margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; max-width: 900px;
}
.field { display: flex; flex-direction: column; gap: 9px; }
.field.full, .form-actions.full, .form-note.full { grid-column: 1 / -1; }
.field label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #c2c2c2; font-weight: 600; }
.field input, .field select, .field textarea {
  background: rgba(216, 92, 27, .03); border: 1px solid rgba(216, 92, 27, .16);
  color: var(--chrome); font-family: var(--sans); font-size: 15px;
  padding: 13px 15px; outline: none; transition: border-color .3s, box-shadow .3s; border-radius: 0;
  resize: vertical;
}
.field select { appearance: none; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ice); box-shadow: 0 0 0 1px rgba(216, 92, 27, .3), 0 0 22px rgba(216, 92, 27, .12);
}
.form-actions { display: flex; gap: 16px; margin-top: 6px; }
.form-note { font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--ice); min-height: 18px; }

/* footer */
footer {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 34px var(--edge); border-top: 1px solid var(--hairline); background: #000000;
}
.brand-foot { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .24em; color: #dcdcdc; }
.foot-logo { width: 26px; height: 26px; display: block; }
.foot-meta { font-size: 11px; letter-spacing: .22em; color: #8a8a8a; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 1px solid var(--ice); outline-offset: 3px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .links { display: none; }
  #rail { display: none; }
  #nav, #nav.scrolled { padding-left: 7vw; padding-right: 7vw; }
  footer { padding-left: 7vw; padding-right: 7vw; }
  .scroll-hint { right: 7vw; }
  .hero-copy { left: 7vw; right: 7vw; bottom: 9vh; }
  .tagline { white-space: normal; letter-spacing: .24em; font-size: 12px; }
  .hero-caption { display: none; }
  .prose-section { padding: 11vh 7vw; }
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .form-wrap { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .ops-callout .val { max-width: 150px; font-size: 11px; }
  .ops-specs { flex-wrap: wrap; gap: 20px 30px; padding: 16px 20px; width: 88vw; justify-content: center; }
  .net-caption { bottom: 8vh; right: 8vw; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hint-line { animation: none; }
  html { scroll-behavior: auto; }
}
