/* Aura - training division of Argus Systems
   Colours: Argus blue, with the gold pads and white silkscreen of a circuit board. */

@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/roboto-condensed.woff") format("woff");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --mask: #0951ad;        /* Argus blue: links, focus */
  --board: #0a418f;       /* board in the home page drawing */
  --foot: #073d86;        /* footer */
  --mask-deep: #0951ad;   /* header, hero and call bands */
  --trace: #0951ad;       /* line in the product-flow strip */
  --board-trace: #3d85dc; /* copper seen through the board */
  --gold: #e3b341;        /* pads */
  --gold-deep: #b98a17;
  --silk: #f8fafd;        /* silkscreen white */
  --paper: #eef3f9;
  --white: #ffffff;
  --ink: #0f1e33;
  --muted: #4a5d75;
  --line: #c9d6e6;
  --focus: #0951ad;

  --display: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "DM Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 70rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); letter-spacing: -0.012em; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.75rem); letter-spacing: -0.008em; }
h3 { font-size: 1.4rem; font-weight: 700; line-height: 1.15; }

p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--mask); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 50;
  background: var(--gold); color: var(--ink); padding: 0.6rem 1rem; font-weight: 700; border-radius: 4px;
}
.skip:focus { top: 0.75rem; }

.lead { font-size: clamp(1.12rem, 1.7vw, 1.3rem); line-height: 1.5; }

/* ---------- header ---------- */

.site-head { background: var(--mask-deep); color: var(--silk); --focus: #e3b341; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--silk); text-decoration: none; padding-block: 0.6rem; }
.brand svg { width: 2.5rem; height: 2.5rem; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.85rem; line-height: 1; letter-spacing: 0.01em; display: block; }
.brand-tag { display: block; font-size: 0.78rem; line-height: 1.2; color: #c9dbf4; margin-top: 0.15rem; }

.menu-btn {
  display: none;
  font: 700 1rem var(--text); color: var(--silk); background: transparent;
  border: 2px solid #8db3e6; border-radius: 6px; padding: 0.5rem 0.9rem; cursor: pointer;
}

.nav ul { list-style: none; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; }
.nav-list > li { position: relative; }
.nav a, .sub-btn {
  display: block; font: 600 1rem var(--text); color: var(--silk); text-decoration: none;
  padding: 0.55rem 0.8rem; border-radius: 6px; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .sub-btn:hover { background: #07438f; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 6px 6px 0 0; }
.sub-btn::after { content: ""; display: inline-block; width: 0.45em; height: 0.45em; margin-left: 0.5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.2em) rotate(45deg); }

.sub {
  display: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 14.5rem;
  background: var(--mask-deep); border: 1px solid #4a87d6; border-radius: 8px; padding: 0.4rem;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { display: block; }

.nav .nav-cta { background: var(--gold); color: var(--ink); font-weight: 700; margin-left: 0.5rem; padding-inline: 1.1rem; }
.nav .nav-cta:hover { background: #f0c659; }

@media (max-width: 60rem) {
  .js .menu-btn { display: block; }
  .nav { width: 100%; }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 1rem; border-top: 1px solid #3273cc; }
  .nav a { padding: 0.8rem 0.4rem; border-radius: 0; }
  .nav-list > li { border-bottom: 1px solid #3273cc; }
  .sub-btn { display: none; }
  .sub { display: block; position: static; border: 0; padding: 0; min-width: 0; }
  .sub li + li { border-top: 1px solid #3273cc; }
  .nav .nav-cta { margin: 1rem 0 0; text-align: center; border-radius: 6px; }
  .nav-list > li:last-child { border-bottom: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); padding-left: 0.9rem; border-radius: 0; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block; font: 700 1.05rem/1.2 var(--text); text-decoration: none; text-align: center;
  padding: 0.95rem 1.5rem; border-radius: 6px; border: 2px solid var(--gold);
  background: var(--gold); color: var(--ink);
}
.btn:hover { background: #f0c659; border-color: #f0c659; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--silk); border-color: var(--ink); }
.on-mask .btn--line { color: var(--silk); border-color: var(--silk); }
.on-mask .btn--line:hover { background: var(--silk); color: var(--ink); border-color: var(--silk); }

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* ---------- bands ---------- */

.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band--white { background: var(--white); }
.band--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.on-mask { background: var(--mask-deep); color: var(--silk); --focus: #e3b341; }
.on-mask a { color: var(--silk); }
.on-mask a.btn { color: var(--ink); }
.on-mask a.btn--line { color: var(--silk); }
.on-mask a.btn--line:hover { color: var(--ink); }

.intro { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.intro p:last-child { margin-bottom: 0; }

/* ---------- home hero ---------- */

.hero { padding-block: clamp(2.2rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero .lead { color: #e1ebf9; max-width: 34rem; }
.hero-note { margin: 1.6rem 0 0; font-size: 0.98rem; color: #c9dbf4; }
.hero-note a { color: var(--silk); }
.board { width: 100%; max-width: 27.5rem; margin-inline: auto; }

@media (max-width: 54rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .board { max-width: 26rem; }
}

/* board drawing */
.board .b-edge { fill: var(--board); stroke: #3d7fd3; stroke-width: 2; }
.board .b-trace { fill: none; stroke: var(--board-trace); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.board .b-route { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.board .b-gold { fill: var(--gold); }
.board .b-hole { fill: #06306e; }
.board .b-chip { fill: #0a2a5c; stroke: #a9c2e6; stroke-width: 1.5; }
.board .b-silk { fill: none; stroke: var(--silk); stroke-width: 1.4; opacity: 0.8; }
.board text { font-family: var(--display); fill: var(--silk); }
.board .t-step { font-weight: 800; font-size: 21px; }
.board .t-sub { font-family: var(--text); font-weight: 500; font-size: 14px; fill: #d3e2f6; }
.board .t-track { font-weight: 700; font-size: 16px; }
.board .t-num { font-weight: 800; font-size: 17px; fill: var(--ink); text-anchor: middle; }
.board .t-ref { font-weight: 600; font-size: 10px; fill: #b4cdf0; letter-spacing: 0.06em; }

@media (prefers-reduced-motion: no-preference) {
  .js .board .b-route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: route 1.1s ease-in-out forwards; }
  .js .board .b-route.r1 { animation-delay: 0.25s; }
  .js .board .b-route.r2 { animation-delay: 1.5s; }
  .js .board .n1, .js .board .n2, .js .board .n3, .js .board .fan { opacity: 0; animation: appear 0.45s ease-out forwards; }
  .js .board .n1 { animation-delay: 0.05s; }
  .js .board .n2 { animation-delay: 1.3s; }
  .js .board .fan { animation-delay: 1.75s; }
  .js .board .n3 { animation-delay: 2.5s; }
}
@keyframes route { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* ---------- inner page head ---------- */

.page-head { --ph-b: clamp(2.6rem, 6vw, 4.5rem); padding-block: clamp(2.2rem, 5vw, 4rem) var(--ph-b); }
.page-head .wrap { position: relative; }
.page-head h1 { max-width: 18ch; }
.page-head .lead { color: #e1ebf9; max-width: 40rem; margin-bottom: 0; }
.crumb { font-size: 0.95rem; margin: 0 0 1.2rem; color: #c9dbf4; }
.crumb a { color: #c9dbf4; }
.page-head .wrap::after { /* a short gold track under the title */
  content: ""; position: absolute; left: var(--gutter); bottom: calc(var(--ph-b) * -1);
  width: min(9rem, 30%); height: 5px; background: var(--gold);
}

/* ---------- tracks list (home) ---------- */

.tracks { list-style: none; border-top: 2px solid var(--ink); }
.tracks li { border-bottom: 1px solid var(--line); }
.tracks a {
  display: grid; grid-template-columns: minmax(11rem, 17rem) minmax(0, 1fr) auto; gap: 0.5rem 2.5rem; align-items: start;
  padding: 1.6rem 0.25rem; text-decoration: none; color: var(--ink);
}
.tracks h3 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 800; margin: 0; }
.tracks p { margin: 0; }
.tracks .suits { display: block; margin-top: 0.45rem; color: var(--muted); font-size: 0.98rem; }
.tracks .go { font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; white-space: nowrap; padding-top: 0.2rem; color: var(--mask); }
.tracks a:hover { background: var(--white); }
.tracks a:hover h3 { color: var(--mask); }

@media (max-width: 48rem) {
  .tracks a { grid-template-columns: 1fr; padding-block: 1.35rem; }
}

/* ---------- product flow strip ---------- */

.flow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: none; }
.flow li { position: relative; padding-top: 2.1rem; padding-right: 1.25rem; }
.flow li::before { /* trace */
  content: ""; position: absolute; top: 0.56rem; left: 0; right: 0; height: 4px; background: var(--trace);
}
.flow li:last-child::before { right: auto; width: 1.25rem; }
.flow li::after { /* pad */
  content: ""; position: absolute; top: 0; left: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--white); border: 4px solid var(--trace);
}
.flow li.is-current::after { background: var(--gold); border-color: var(--gold-deep); }
.flow a { text-decoration: none; color: var(--ink); display: block; }
.flow .flow-job { display: block; color: var(--muted); font-size: 0.95rem; }
.flow .flow-name { display: block; font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; }
.flow li.is-current .flow-name { text-decoration: none; }

@media (max-width: 44rem) {
  .flow { grid-template-columns: 1fr; }
  .flow li { padding: 0 0 1.4rem 2.2rem; }
  .flow li::before { top: 0; bottom: 0; left: 0.5rem; right: auto; width: 4px; height: auto; }
  .flow li:last-child::before { width: 4px; height: 1.25rem; bottom: auto; }
  .flow li::after { top: 0.15rem; }
}

/* ---------- steps (a real sequence) ---------- */

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.steps li { counter-increment: step; border-top: 4px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--gold-deep); margin-bottom: 0.4rem; }
.steps h3 { margin-bottom: 0.4em; }
.steps p { margin: 0; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 56rem) { .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 44rem) { .steps, .steps--4 { grid-template-columns: 1fr; } }

/* ---------- reasons ---------- */

.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 6vw, 5rem); }
.reasons h3 { margin-bottom: 0.35em; }
.reasons p { margin: 0; }
@media (max-width: 44rem) { .reasons { grid-template-columns: 1fr; } }

/* ---------- content columns ---------- */

.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.cols--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
@media (max-width: 48rem) { .cols, .cols--wide-left { grid-template-columns: 1fr; } }

.pads { list-style: none; }
.pads li { position: relative; padding: 0.55rem 0 0.55rem 1.6rem; border-bottom: 1px solid var(--line); }
.pads li:first-child { border-top: 1px solid var(--line); }
.pads li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 0.75rem; height: 0.5rem; background: var(--gold); border-radius: 1px; }

.note { border-left: 5px solid var(--gold); background: var(--white); padding: 1.1rem 1.3rem; }
.band--white .note { background: var(--paper); }
.note p:last-child { margin-bottom: 0; }

/* ---------- roles (openings) ---------- */

.role-group + .role-group { margin-top: clamp(2.5rem, 6vw, 4rem); }
.role-group > h2 { margin-bottom: 0.3em; }
.role-group > p { color: var(--muted); }
.roles { list-style: none; border-top: 2px solid var(--ink); margin-top: 1.2rem; }
.roles li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem 2rem; align-items: center; padding: 1.15rem 0.25rem; border-bottom: 1px solid var(--line); }
.roles h3 { margin: 0 0 0.25em; font-size: 1.35rem; }
.roles p { margin: 0; }
.role-apply { display: flex; gap: 1.2rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 44rem) { .roles li { grid-template-columns: 1fr; } }

/* ---------- apply helper ---------- */

.composer { background: var(--white); border: 2px solid var(--ink); border-radius: 8px; padding: clamp(1.2rem, 3vw, 2rem); }
.composer h2 { font-size: 1.7rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.field input, .field select {
  width: 100%; font: 400 1.05rem var(--text); color: var(--ink); background: var(--white);
  border: 2px solid #7a8ca6; border-radius: 6px; padding: 0.75rem 0.85rem;
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--mask); outline-offset: 2px; border-color: var(--mask); }
.composer .hint { font-size: 0.95rem; color: var(--muted); margin: 1rem 0 0; }

/* ---------- contact ---------- */

.contact-list { list-style: none; border-top: 2px solid var(--ink); }
.contact-list li { display: grid; grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr); gap: 0.3rem 2rem; padding: 1.5rem 0.25rem; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-list .how { font-weight: 700; color: var(--muted); }
.contact-list .value { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 4.6vw, 2.6rem); line-height: 1.1; overflow-wrap: anywhere; }
.contact-list .value a { color: var(--ink); text-decoration-thickness: 0.06em; }
.contact-list .value--small { font-size: clamp(1.25rem, 3vw, 1.7rem); line-height: 1.45; font-weight: 700; }
.contact-list p { margin: 0.4rem 0 0; grid-column: 2; }
@media (max-width: 44rem) { .contact-list li { grid-template-columns: 1fr; } .contact-list p { grid-column: 1; } }
.contact-list--stack li { grid-template-columns: 1fr; padding-block: 1.1rem; }
.contact-list--stack p { grid-column: 1; }
.contact-list--stack .value { font-size: clamp(1.5rem, 3vw, 1.9rem); }

/* ---------- FAQ ---------- */

.faq { border-top: 2px solid var(--ink); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; padding: 1rem 2.2rem 1rem 0.25rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.4rem; top: 0.75rem; font-size: 1.6rem; font-weight: 500; color: var(--mask); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 0.25rem 1.1rem; margin: 0; }

/* ---------- closing call ---------- */

.call h2 { max-width: 26ch; }
.call p { color: #e1ebf9; }
.call .phone { margin-top: 1.4rem; font-size: 1.05rem; color: #e1ebf9; }
.call .phone a { font-weight: 700; }

/* ---------- footer ---------- */

.site-foot { background: var(--foot); color: #d6e3f6; padding-block: 3rem 2rem; border-top: 1px solid #3273cc; --focus: #e3b341; font-size: 1rem; }
.site-foot a { color: var(--silk); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-foot h2 { font-size: 1.15rem; font-weight: 700; color: var(--silk); margin-bottom: 0.7rem; }
.site-foot ul { list-style: none; }
.site-foot li { margin-bottom: 0.45rem; }
.foot-brand { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--silk); margin: 0 0 0.4rem; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid #3273cc; font-size: 0.92rem; }
.foot-legal p { margin: 0; max-width: none; }
@media (max-width: 52rem) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 30rem) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
