/* ==========================================================================
   DNKS Solutions — Industries, Why, CTA, Footer, Responsive
   ========================================================================== */

/* ---------- 07 — Industries ---------- */
.industries { background: var(--bg); overflow: hidden; }
.section-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 860px; margin: 0 auto clamp(56px, 6vw, 88px);
}
.section-head .lede { margin-top: 22px; }

.ind-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
}
.ind-list { display: flex; flex-direction: column; gap: 8px; }
.ind {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 34px; gap: 16px; align-items: center;
  padding: 18px; border-radius: 16px; border: 1px solid transparent;
  color: var(--ink); text-decoration: none;
  transition: background-color .35s, border-color .35s, box-shadow .5s var(--ease), opacity .35s;
}
.ind-ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--blue);
  transition: background-color .35s, color .35s, border-color .35s;
}
.ind-ic svg { width: 22px; height: 22px; }
.ind-tx b { display: block; font-family: var(--f-display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.ind-tx small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ind-arrow {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--blue); background: var(--bg); opacity: 0; transform: translateX(-8px);
  transition: opacity .35s, transform .45s var(--ease);
}
.ind-arrow svg { width: 16px; height: 16px; }
.ind-layout:hover .ind:not(.is-active) { opacity: .6; }
.ind.is-active { background: #fff; border-color: var(--line); box-shadow: 0 26px 50px -32px rgba(7, 26, 61, .32); }
.ind.is-active .ind-ic { background: var(--navy); border-color: var(--navy); color: var(--cyan); }
.ind.is-active .ind-arrow { opacity: 1; transform: none; }

.ind-visual { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin-inline: auto; }
#indMap { width: 100%; height: 100%; overflow: visible; display: block; }
/* Image lens: one render per industry, crossfaded on hover */
.ind-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 57.5%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; isolation: isolate;
  background: var(--navy); color: #fff;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line), 0 40px 80px -30px rgba(7, 26, 61, .6);
}
.ind-lens { position: absolute; inset: 0; }
.ind-lens img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity .6s var(--ease), transform 1.4s var(--ease);
}
.ind-lens img.is-on { opacity: 1; transform: scale(1); }
.ind-hub::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, transparent 38%, rgba(7, 26, 61, .72) 62%, rgba(7, 26, 61, .96) 88%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.ind-hub-cap {
  position: absolute; left: 0; right: 0; bottom: 11%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  text-shadow: 0 1px 12px rgba(7, 26, 61, .8);
}
.ind-hub-k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.ind-hub b { margin: 6px 0 4px; max-width: 70%; white-space: pre-line; text-wrap: balance; font-family: var(--f-display); font-size: clamp(15px, 1.5vw, 22px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.ind-hub-idx { font-family: var(--f-mono); font-size: 11px; color: rgba(214, 229, 255, .55); font-variant-numeric: tabular-nums; }

.im-ring { fill: none; stroke: #D5DFEC; stroke-width: 1; }
.im-ring--dash { stroke: #B9C8DD; stroke-dasharray: 2 7; transform-origin: 280px 280px; animation: spin 90s linear infinite; }
.im-ring--soft { stroke: #E3EAF3; }
.im-tick { stroke: #C9D5E6; stroke-width: 1; }
.im-spoke { stroke: #C8D5E7; stroke-width: 1.2; transition: stroke .35s, stroke-width .35s; }
.im-spoke.is-on { stroke: var(--blue); stroke-width: 2; }
.im-node { fill: #fff; stroke: #AFC0D8; stroke-width: 1.5; transition: fill .35s, stroke .35s; }
.im-node.is-on { fill: var(--cyan); stroke: var(--blue); }
.im-halo { fill: rgba(0, 184, 230, .16); opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .35s; }
.im-halo.is-on { opacity: 1; animation: halo 2.2s var(--ease) infinite; }
@keyframes halo { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.im-dot { fill: #C9D5E6; }
.im-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; fill: #8A9AB5; text-anchor: middle; dominant-baseline: middle; transition: fill .35s; }
.im-label.is-on { fill: var(--blue); font-weight: 500; }
.im-packet { fill: var(--cyan); filter: drop-shadow(0 0 4px rgba(0, 184, 230, .9)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 08 — Why ---------- */
.why { background: #fff; }
.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 8vw, 140px);
  align-items: start;
}
.why-title { margin-bottom: 28px; font-size: clamp(36px, 4.1vw, 62px); line-height: 1.04; letter-spacing: -.042em; }
.why-title span { display: block; color: var(--blue); }
.why-figure {
  margin: 40px 0 0; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--line); background: var(--bg);
}
.why-figure img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.why-figure:hover img { transform: scale(1.03); }
/* The column must stretch to the row's height, or the sticky statement has nowhere to travel */
.why-statement { align-self: stretch; }
.sticky-col { position: sticky; top: calc(var(--header) + 56px); }
.why-list { border-top: 1px solid var(--line); }
.why-item {
  position: relative;
  display: grid; grid-template-columns: clamp(84px, 9vw, 130px) minmax(0, 1fr); gap: 24px;
  padding: 44px 0; border-bottom: 1px solid var(--line);
}
.why-item::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 30%, transparent 75%);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease) .25s;
}
.why-item.is-in::before { transform: scaleX(1); }
.why-num {
  font-family: var(--f-display); font-size: clamp(44px, 4vw, 60px); font-weight: 500; line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.why-body h3 { margin-bottom: 12px; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.2; letter-spacing: -.03em; transition: color .3s; }
.why-body p { max-width: 32em; font-size: 17px; color: var(--muted); }
.why-item:hover h3 { color: var(--blue); }

/* ---------- 09 — CTA + Contact ---------- */
.cta { background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.cta-light {
  position: absolute; inset: -10%; z-index: -1;
  background:
    radial-gradient(40% 55% at 14% 22%, rgba(0, 184, 230, .22), transparent 70%),
    radial-gradient(45% 65% at 92% 88%, rgba(11, 111, 211, .45), transparent 70%);
  animation: lightDrift 18s ease-in-out infinite alternate;
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(60% 80% at 25% 40%, #000, transparent 75%);
  mask-image: radial-gradient(60% 80% at 25% 40%, #000, transparent 75%);
}
@keyframes lightDrift { to { transform: translate3d(4%, -3%, 0) scale(1.06); } }
.cta-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(48px, 6vw, 110px); align-items: stretch;
}
.cta .h2 { margin-bottom: 24px; font-size: clamp(38px, 4vw, 60px); color: #fff; }
.cta-lede { max-width: 26em; margin-bottom: 40px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--text-dark); }
/* Copy column is a flex column so the steps list sits on the form's bottom edge */
.cta-copy { display: flex; flex-direction: column; align-items: flex-start; }
.cta-copy > .btn { margin-bottom: 48px; }
.cta-steps { width: 100%; margin-top: auto; max-width: 520px; border-top: 1px solid var(--line-dark); }
.cta-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.cta-steps span { padding-top: 3px; font-family: var(--f-mono); font-size: 12px; color: var(--cyan); }
.cta-steps b { display: block; font-size: 16px; font-weight: 700; }
.cta-steps small { display: block; margin-top: 2px; font-size: 14.5px; color: rgba(214, 229, 255, .6); }

.form-panel {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line-dark); }
.form-head h3 { font-size: 22px; letter-spacing: -.02em; }
.form-head span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(214, 229, 255, .5); }
/* The form stretches to the copy column's height; the message field absorbs the extra space */
.fgrid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto) 1fr; gap: 18px; margin-bottom: 26px; }
.field--full { grid-column: 1 / -1; display: flex; flex-direction: column; }
.field--full textarea { flex: 1; }
.field label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: rgba(226, 236, 255, .86); }
.req { color: var(--cyan); }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(3, 14, 36, .45); color: #fff;
  font: inherit; font-size: 15.5px;
  transition: border-color .25s, box-shadow .3s, background-color .25s;
}
.field textarea { height: auto; min-height: 124px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field ::placeholder { color: rgba(214, 229, 255, .35); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .26); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); background: rgba(3, 14, 36, .7);
  box-shadow: 0 0 0 4px rgba(0, 184, 230, .16);
}
.field.has-error input, .field.has-error textarea { border-color: #FF8F8F; }
.err { margin-top: 7px; font-size: 13px; color: #FFA3A3; }
.err:empty { display: none; }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 1.5px solid rgba(214, 229, 255, .65); border-bottom: 1.5px solid rgba(214, 229, 255, .65);
  transform: translateY(-70%) rotate(45deg);
}
.field select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; }
.field select.is-empty { color: rgba(214, 229, 255, .45); }
.field option { color: var(--ink); background: #fff; }
.form-panel .btn-primary { background: var(--blue); }
.form-panel .btn-primary::before { background: linear-gradient(100deg, #0B6FD3, #00B8E6); }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading .ic { animation: nudge .6s ease-in-out infinite alternate; }
@keyframes nudge { to { transform: translateX(6px); } }
.form-note { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13.5px; color: rgba(214, 229, 255, .6); }
.form-note .ic { width: 16px; height: 16px; color: var(--cyan); }

.form-success {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 40px; text-align: center;
  background: linear-gradient(180deg, #0B2E68, #071A3D);
  animation: fadeUp .5s var(--ease);
}
.form-success:focus { outline: none; }
.fs-ic { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 184, 230, .14); border: 1px solid rgba(0, 184, 230, .5); color: var(--cyan); }
.fs-ic .ic { width: 30px; height: 30px; }
.form-success h3 { font-size: 30px; letter-spacing: -.03em; }
.form-success p { max-width: 24em; color: var(--text-dark); }
.form-success b { color: #fff; word-break: break-all; }
.form-success .btn { margin-top: 12px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 10 — Footer ---------- */
.footer { position: relative; overflow: hidden; background: #040F27; color: #fff; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 6vw, 100px);
  padding-block: clamp(72px, 8vw, 120px) 56px;
}
.brand--dark { color: #fff; }
.brand-logo--footer { height: 64px; }
.footer-brand p { max-width: 24em; margin: 24px 0 32px; font-size: 16.5px; color: rgba(214, 229, 255, .62); }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
/* Services: 4 across, wrapping to a second row of 3 */
.footer nav ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 24px; }
.footer nav ul li + li { margin-top: 0; }
/* Contact: email, phone and address side by side under a hairline */
.footer-contact { padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-contact ul { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 16px 40px; align-items: start; }
.footer .footer-contact ul li + li { margin-top: 0; }
.footer h4 { margin-bottom: 22px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.footer ul li + li { margin-top: 12px; }
.footer ul a { font-size: 15px; color: rgba(226, 236, 255, .74); text-decoration: none; transition: color .25s; }
.footer ul a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: rgba(226, 236, 255, .74); overflow-wrap: anywhere; }
.footer-contact .ic { width: 16px; height: 16px; margin-top: 4px; color: var(--cyan); }
.footer-contact address { font-style: normal; line-height: 1.65; }
.footer-contact address b { font-weight: 600; color: #fff; }
/* Address wraps between phrases only, never inside one */
.footer-contact address span { white-space: nowrap; }
.footer-word {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(110px, 25vw, 400px);
  line-height: .74; letter-spacing: -.065em; text-align: center; white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(11, 111, 211, .26) 0%, rgba(0, 184, 230, .08) 55%, transparent 85%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none; pointer-events: none;
}
.footer-bottom {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 28px; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 14px; color: rgba(214, 229, 255, .55);
}
.footer-bottom nav { display: flex; gap: 28px; }
.footer-bottom a { text-decoration: none; transition: color .25s; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .cap-grid li { padding: 26px 16px; font-size: 14px; gap: 10px; }
  .hero-copy { padding-right: 40px; }
}

@media (max-width: 1180px) {
  .hv-hud--bottom span:last-child { display: none; }
  .chip--ai { top: 11%; left: 5%; }
  .chip--cloud { top: 24%; right: 5%; }
  .chip--soft { bottom: 14%; left: 5%; }
  .chip--sec { bottom: 26%; right: 5%; }
}

@media (max-width: 1120px) {
  .tech-layout { grid-template-columns: minmax(0, 1fr); }
  .sticky-col { position: static; }
  .tech-intro { max-width: 720px; }

  .cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .cap-grid li { justify-content: flex-start; }
  .cap-grid li:nth-child(3n) { border-right: 1px solid #D9E2EE; }
  .cap-grid li:nth-child(n+4) { border-top: 1px solid #D9E2EE; }

  .ind-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-visual { grid-column: 1 / -1; grid-row: 1; max-width: 440px; margin-bottom: 8px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: var(--pad) minmax(0, 1fr) var(--pad); min-height: 0; }
  .hero-copy { grid-column: 2; padding: 56px 0 44px; }
  .hero-visual { grid-column: 2 / 4; margin: 0 0 28px; min-height: 0; height: clamp(440px, 78vw, 580px); border-radius: 24px 0 0 24px; }
  .hero-title { font-size: clamp(40px, 7.4vw, 64px); }
  .why-layout, .cta-layout { grid-template-columns: minmax(0, 1fr); }
  .why-statement .sticky-col { position: static; }
}

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 760px) {
  :root { --header: 68px; }
  .brand-logo { height: 46px; }
  .brand-logo--footer { height: 54px; }
  body { font-size: 17px; }

  .tech-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-panel { padding-inline: 18px; }
  .tabs { margin-inline: -18px; padding-inline: 8px; }
  .tech-meta { flex-direction: column; gap: 8px; }

  .ind-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ind-visual { max-width: 340px; }
  .ind-arrow { opacity: 1; transform: none; background: transparent; color: var(--muted); }
  .ind-layout:hover .ind:not(.is-active) { opacity: 1; }

  .flow { height: 560px; }
  .flow-title { font-size: 26px; }
  .flow-stages li { font-size: 10px; letter-spacing: .1em; flex-direction: column; gap: 4px; }

  .why-item { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }

  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  /* Phones: services two per row, contact details stacked */
  .footer nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .footer-contact ul { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  /* Comfortable tap targets for footer links on phones */
  .footer nav ul li + li { margin-top: 0; }
  .footer nav a { display: inline-flex; align-items: center; min-height: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .cap-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: 0; }
  .cap-grid::-webkit-scrollbar { display: none; }
  .cap-grid li { flex: none; scroll-snap-align: start; padding: 22px 22px; border-top: 0 !important; border-right: 0 !important; white-space: nowrap; }
  .cap-grid li:first-child { border-left: 0; padding-left: var(--pad); }
  .cap-grid li:last-child { padding-right: var(--pad); }

  .hero-title > span { display: inline; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-trust { margin-top: 36px; }
  .hv-hud { left: 20px; right: 24px; }
  .hv-hud--bottom span:last-child, .hv-coords { display: none; }
  .chip { padding: 7px 12px 7px 7px; gap: 10px; }
  .chip-ic { width: 30px; height: 30px; border-radius: 8px; }
  .chip-tx b { font-size: 12.5px; }
  .chip--data, .chip--soft { display: none; }
  .chip--ai { top: 13%; left: 5%; }
  .chip--cloud { top: 30%; right: 6%; }
  .chip--sec { bottom: 17%; right: auto; left: 10%; }

  .fgrid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .eyebrow { font-size: 11.5px; letter-spacing: .12em; }
  .form-head { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .why-item::before { transform: scaleX(1); }
  .tech-tiles.is-swapping .tile { animation: none; }
}
