/* Fonts: fully self-hosted (step 2 complete 2026-08-02, CSP font-src 'self'
   live). Zero third-party requests site-wide. */
@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/bebas-neue-latin.woff2) format('woff2'); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/mulish-latin-var.woff2) format('woff2'); }

/* AK Technologies — site design system
   Identity: deep teal #1C3A45, electric blue #21AAE2, mid teal #227E9F.
   Bebas Neue display, Mulish body. Spec-sheet voice: labeled, ruled, direct. */

:root {
  --teal-950: #0E2129;   /* deepest ink / on-blue text */
  --teal-900: #16303A;   /* ink on light */
  --teal-800: #1C3A45;   /* brand surface (drenched sections) */
  --teal-700: #24485A;   /* raised panel on dark */
  --teal-600: #227E9F;   /* secondary */
  --link: #1D6E8C;       /* links on light bg (5.3:1 AA) */
  --blue-500: #21AAE2;   /* the bolt */
  --blue-300: #7CCDF0;   /* links on dark */
  --mist-100: #DEE6E7;   /* body text on dark */
  --mist-50:  #F4F7F8;   /* light section bg */
  --white:    #FFFFFF;
  --ink-soft: #3D5966;   /* secondary text on light */
  --line-light: rgba(28, 58, 69, 0.18);
  --line-dark: rgba(222, 230, 231, 0.16);

  --font-display: "Bebas Neue", "Arial Narrow", "Impact", sans-serif;
  --font-body: "Mulish", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-3: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --step-4: clamp(3rem, 2.2rem + 3.2vw, 4.4rem);

  --space-section: clamp(4rem, 3rem + 6vw, 9rem);
  --space-block: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  --measure: 68ch;
  --container: 76rem;

  --z-nav: 30;
  --z-skip: 40;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--teal-900);
  background: var(--mist-50);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--teal-800); }

::selection { background: var(--blue-500); color: var(--teal-950); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: var(--z-skip);
  background: var(--blue-500); color: var(--teal-950);
  padding: 0.75rem 1.25rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--white);
  border-bottom: 1px solid var(--line-light);
}
.site-header .container {
  display: flex; align-items: center; gap: 2rem;
  min-height: 4.5rem;
}
.brand { display: block; line-height: 0; }
.brand img { height: 3.75rem; width: auto; }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex; flex-wrap: wrap; gap: 0.25rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  display: block; padding: 0.55rem 0.8rem;
  color: var(--teal-900); text-decoration: none;
  font-size: 0.9rem; font-weight: 700;
}
.site-nav a:hover { color: var(--teal-600); }
.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--blue-500);
}
.site-nav .nav-cta a {
  border-radius: 6px;
  background: var(--teal-600); color: var(--white);
  margin-left: 0.75rem; padding-inline: 1.1rem;
}
.site-nav .nav-cta a:hover { background: var(--teal-800); color: var(--white); }

.nav-toggle {
  display: none; margin-left: auto;
  border-radius: 6px;
  background: none; border: 1px solid var(--line-light);
  color: var(--teal-900); font: inherit; font-weight: 700;
  padding: 0.5rem 0.9rem; cursor: pointer;
}

@media (max-width: 56rem) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; inset: 100% 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line-light);
    padding: 0.5rem 1rem 1.25rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 0.85rem 0.5rem; font-size: 1.05rem; }
  .site-nav .nav-cta a { margin: 0.75rem 0 0; text-align: center; }
  .brand img { height: 3rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate;
  background: var(--teal-800);
  color: var(--white);
  overflow: clip;
}
.hero-media {
  position: absolute; inset: 0; z-index: -1;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.42;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,33,41,0.92) 20%, rgba(14,33,41,0.35) 75%);
}
.hero .container {
  position: relative;
  padding-block: clamp(3rem, 2.25rem + 2.5vw, 4rem);
}
.hero-compact .container { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
  text-transform: uppercase;
}
.hero h1 .accent { color: var(--blue-500); }
.hero .lede {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 46ch;
  margin: 0 0 1.5rem;
  color: var(--mist-100);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-fact-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem;
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem; color: var(--mist-100);
}
.hero-fact-row strong { color: var(--white); font-weight: 800; }
/* Tightened variant: the contact hero sits directly above the quote form, so
   default hero spacing pushes the form below the fold. */
.hero-fact-row-tight { margin-top: 1rem; padding-top: 1rem; }
.section-tight-top { padding-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border-radius: 6px;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body); font-weight: 800; font-size: 0.95rem;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
/* .btn.btn-* doubles specificity so section link-color rules
   (.section-dark a etc.) can never wash out button text */
.btn.btn-solid { background: var(--teal-600); color: var(--white); }
/* Hover DARKENS. The old blue-500 hover measured 2.65:1 against white text,
   under the 4.5:1 normal-text minimum; this holds 6.52:1. */
.btn.btn-solid:hover { background: #1B6580; color: var(--white); }
.btn.btn-ghost { border-color: var(--mist-100); color: var(--white); background: transparent; }
.btn.btn-ghost:hover { border-color: var(--blue-500); color: var(--white); }
.btn.btn-dark { background: var(--teal-800); color: var(--white); }
.btn.btn-dark:hover { background: var(--teal-600); color: var(--white); }
.btn.btn-outline { border-color: var(--teal-800); color: var(--teal-800); background: transparent; }
.btn.btn-outline:hover { border-color: var(--teal-600); color: var(--teal-600); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.spec-link a { text-decoration: none; font-weight: 800; }
a[rel="external"]::after { content: " \2197"; font-size: 0.85em; }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }

/* ---------- Sections ---------- */

.section { padding-block: var(--space-section); }
.section-dark { background: var(--teal-800); color: var(--mist-100); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a { color: var(--blue-300); }
.section-dark a:hover { color: var(--white); }
.section-deep { background: var(--teal-950); color: var(--mist-100); }
.section-deep h2, .section-deep h3 { color: var(--white); }
.section-deep a { color: var(--blue-300); }
.section-apply { padding-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

.section-head { margin-bottom: var(--space-block); max-width: var(--measure); }
h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
h2 .accent { color: var(--teal-600); } /* 4.3:1 on light (AA large) */
.hero h2 .accent, .section-dark h2 .accent, .section-deep h2 .accent { color: var(--blue-500); }

/* Non-hero H1 (the privacy policy, which has no hero). Outside .hero there is
   no other H1 rule, so without this it falls back to browser defaults AND
   misses the section-dark white, i.e. dark text on a dark panel. */
.section h1 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.section h1 .accent { color: var(--teal-600); }
.section-dark h1, .section-deep h1 { color: var(--white); }
.section-dark h1 .accent, .section-deep h1 .accent { color: var(--blue-500); }
.section-head p { font-size: var(--step-1); line-height: 1.5; margin: 0; }

h3 {
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.1rem; }

/* ---------- Split layout ---------- */

.split {
  display: grid; gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split > .media-first { order: -1; }
}
.split figure { margin: 0; }
.split figure img { width: 100%; }
.split figcaption {
  font-size: 0.82rem; color: var(--ink-soft);
  padding-top: 0.6rem; border-top: 1px solid var(--line-light);
  margin-top: 0.6rem;
}
.section-dark .split figcaption { color: var(--mist-100); border-color: var(--line-dark); }

/* ---------- Spec list (services) ---------- */

.spec-list { border-top: 1px solid var(--line-light); margin: 0; padding: 0; list-style: none; }
.spec-row {
  display: grid; gap: 0.35rem 2.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line-light);
}
@media (min-width: 46rem) {
  .spec-row { grid-template-columns: 16rem 1fr auto; align-items: baseline; }
}
.spec-row dt, .spec-row .spec-name {
  font-family: var(--font-display);
  font-size: 1.45rem; letter-spacing: 0.02em; line-height: 1.05;
  text-transform: uppercase;
}
.spec-row dd, .spec-row .spec-desc { margin: 0; color: var(--ink-soft); max-width: 58ch; }
.spec-row .spec-link { font-weight: 800; font-size: 0.9rem; white-space: nowrap; }
.section-dark .spec-list { border-color: var(--line-dark); }
.section-dark .spec-row { border-color: var(--line-dark); }
.section-dark .spec-row dd, .section-dark .spec-row .spec-desc { color: var(--mist-100); }

/* Bolt list marker */
.bolt-list { list-style: none; margin: 0; padding: 0; }
.bolt-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.85rem;
}
.bolt-list li::before {
  content: ""; position: absolute; left: 0; top: 0.32em;
  width: 0.85em; height: 0.85em;
  background: var(--blue-500);
  clip-path: polygon(58% 0, 18% 58%, 45% 58%, 38% 100%, 82% 40%, 53% 40%);
}
.bolt-list strong { display: block; }

/* ---------- Industries ---------- */

.industry-columns {
  columns: 1; column-gap: 3.5rem;
}
@media (min-width: 44rem) { .industry-columns { columns: 2; } }
@media (min-width: 66rem) { .industry-columns { columns: 3; } }
.industry {
  break-inside: avoid;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line-dark);
}
.industry h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.5rem; letter-spacing: 0.02em; text-transform: uppercase;
}
.industry p { margin: 0; font-size: 0.95rem; }

/* ---------- Awards band ---------- */

.awards-band {
  display: grid; gap: 1px;
  background: var(--line-dark);
  border-block: 1px solid var(--line-dark);
}
@media (min-width: 56rem) { .awards-band { grid-template-columns: repeat(4, 1fr); } }
.award {
  background: var(--teal-950);
  padding: 1.75rem 1.5rem 1.5rem;
}
.award .year {
  font-family: var(--font-display); font-size: 2.6rem; line-height: 1;
  color: var(--blue-500); display: block;
}
.award .title { font-weight: 800; color: var(--white); display: block; margin: 0.5rem 0 0.2rem; }
.award .detail { font-size: 0.88rem; margin: 0; }

/* ---------- DIR banner ---------- */

.dir-banner {
  border: 1px solid var(--line-light);
  background: var(--white);
  display: grid; gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.75rem);
}
@media (min-width: 56rem) {
  .dir-banner { grid-template-columns: 1fr auto; align-items: center; }
}
.contract-no {
  font-family: var(--font-display); font-size: var(--step-2);
  line-height: 1; letter-spacing: 0.02em; color: var(--teal-800);
}

/* ---------- Partners ---------- */

.partner-groups { display: grid; gap: var(--space-block); }
/* Category headings are H2 (they sit directly under the page H1, so H3 skipped
   a level). The visual treatment is unchanged from when they were H3 — the
   fix was semantic, not a redesign. */
.partner-group h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.5rem; letter-spacing: 0.02em; text-transform: uppercase;
  line-height: 1.25;
  border-bottom: 1px solid var(--line-light); padding-bottom: 0.5rem;
}
.partner-names {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem;
  list-style: none; margin: 0; padding: 0;
  font-weight: 700; color: var(--ink-soft);
}
.partner-detail { border-top: 1px solid var(--line-light); }
.partner-detail .spec-row { grid-template-columns: 14rem 1fr auto; }

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: 1.1rem; max-width: 44rem; }
@media (min-width: 40rem) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
label { font-weight: 800; font-size: 0.9rem; display: block; margin-bottom: 0.35rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--teal-900);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-light); border-radius: 0;
  background: var(--white);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--blue-500); outline-offset: 0;
  border-color: var(--teal-600);
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Careers ---------- */

.role-list { border-top: 1px solid var(--line-dark); }
.role {
  border-bottom: 1px solid var(--line-dark);
}
.role summary {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 0.35rem 2rem;
  padding: 1.4rem 0;
  cursor: pointer; list-style: none;
}
.role summary::-webkit-details-marker { display: none; }
.role summary h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.7rem; letter-spacing: 0.02em; line-height: 1;
  text-transform: uppercase; color: var(--white); margin: 0;
}
.role .role-meta {
  grid-row: 2;
  display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem;
  font-size: 0.88rem; font-weight: 700; color: var(--blue-300);
}
.role .role-toggle {
  grid-row: 1 / span 2;
  font-weight: 800; font-size: 0.9rem; color: var(--blue-300);
  white-space: nowrap;
}
.role .role-toggle::after { content: "Details +"; }
.role[open] .role-toggle::after { content: "Close \2212"; }
.role summary:hover h3 { color: var(--blue-300); }
.role-body {
  padding: 0.25rem 0 1.9rem;
  display: grid; gap: 1.5rem;
  max-width: 100%;
}
@media (min-width: 52rem) {
  .role-body { grid-template-columns: 1fr 1fr; }
}
.role-body h4 {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); margin: 0 0 0.6rem;
}
.role-body .bolt-list li { margin-bottom: 0.5rem; font-size: 0.97rem; }
.role-body .role-apply { grid-column: 1 / -1; }

.hire-steps {
  counter-reset: step;
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px;
  background: var(--line-light);
  border-block: 1px solid var(--line-light);
}
@media (min-width: 56rem) { .hire-steps { grid-template-columns: repeat(4, 1fr); } }
.hire-steps li {
  counter-increment: step;
  background: var(--mist-50);
  padding: 1.5rem 1.4rem 1.6rem;
}
.hire-steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display); font-size: 2.4rem; line-height: 1;
  color: var(--teal-600);
  margin-bottom: 0.5rem;
}
.hire-steps strong { display: block; margin-bottom: 0.25rem; }
.hire-steps p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal-950); color: var(--mist-100);
  padding-block: var(--space-block) 2rem;
  font-size: 0.92rem;
}
.site-footer a { color: var(--blue-300); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid {
  display: grid; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h3 {
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--white); margin-bottom: 0.9rem;
}.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  padding-top: 1.5rem; font-size: 0.82rem;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero-actions, .hero-fact-row {
    animation: rise 700ms var(--ease-out) both;
  }
  .hero .lede { animation-delay: 90ms; }
  .hero-actions { animation-delay: 180ms; }
  .hero-fact-row { animation-delay: 300ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

@media print {
  .site-header, .site-footer, .hero-actions, .nav-toggle { display: none; }
}

/* ---------- Utilities (CSP: style-src has no 'unsafe-inline', so inline
   style attributes are blocked; every former style="" lives here) ---------- */

.m-0 { margin: 0; }
.mb-05 { margin-bottom: 0.5rem; }
.mt-075 { margin-top: 0.75rem; }
.mt-1 { margin-top: 1rem; }
.mt-125 { margin-top: 1.25rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-block { margin-top: var(--space-block); }
.cols-2 { display: block; columns: 2; gap: 2rem; }
.form-note-light { color: var(--mist-100); }
.consent-label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.consent-check { width: auto; margin-top: 0.3rem; }
.dir-logo-box { background: var(--teal-800); padding: 1.25rem 1.5rem; margin: 0 0 0.75rem; }
.dir-logo { width: 240px; height: auto; }
.dir-holder { margin: 0.5rem 0 0; font-weight: 700; }

/* ---------- Form anti-spam plumbing ---------- */

/* Honeypot: hidden from humans (and assistive tech), present in the DOM for
   bots that fill every field. Not display:none; some bots skip that. */
.hp-field {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.form-status { display: none; font-weight: 700; }
.form-status.show { display: block; }
.form-status.err { color: #8a1f1f; }
.section-dark .form-status.err, .section-deep .form-status.err { color: #ffb3b3; }
