/* ==========================================================================
   Saqura Labs — site styles
   --------------------------------------------------------------------------
   Everything visual is driven by the tokens in :root. To re-colour the site,
   change the values there; nothing else needs to move.
   Two materials alternate down the page:
     .band--board  dark green (solder-mask) — hero, industries, process, about
     .band--paper  light (datasheet)        — engagement models, capabilities,
                                              scopes, contact
   ========================================================================== */

:root {
  /* Board (dark) */
  --board:        #0E241B;   /* primary dark ground */
  --board-deep:   #081A12;   /* footer, nav */
  --board-2:      #132E23;   /* raised panel on board */
  --trace:        #2F6B50;   /* copper under mask: rules, diagram lines */
  --trace-soft:   #1E4A37;   /* quieter rules on board */
  --pad:          #8FDCB4;   /* the one accent: pads, labels, links on dark */
  --pad-strong:   #B4EBD0;   /* hover state of the accent */
  --silk:         #E9F0EA;   /* text on dark */
  --silk-muted:   #9DB8A8;   /* secondary text on dark */

  /* Paper (light) */
  --paper:        #F2F5F1;
  --paper-2:      #E6ECE7;
  --ink:          #0E241B;
  --ink-muted:    #55705F;
  --rule:         #CDD8D0;
  --green:        #176A4A;   /* accent on light */
  --green-strong: #0F5238;

  /* Type */
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wdth-display: 88%;
  --wdth-body: 100%;
  --wdth-label: 112%;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --band-y: clamp(64px, 9vw, 128px);
  --radius: 2px;
}

/* ----- Typeface: Archivo (variable: weight 100–900, width 62–125%) ----------
   Self-hosted so the site renders the same everywhere. Licence: SIL OFL 1.1,
   see assets/fonts/OFL.txt. */
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/Archivo-VF.woff2') format('woff2-variations'),
       url('../assets/fonts/Archivo-VF.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* ----- Reset-ish ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--silk);
  background: var(--board);
  font-stretch: var(--wdth-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--pad); outline-offset: 3px; }
.band--paper :focus-visible { outline-color: var(--green); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----- Bands: each band sets the local tokens components read ------------- */
.band { padding-block: var(--band-y); }
.band--board { background: var(--board); color: var(--silk);
  --fg: var(--silk); --muted: var(--silk-muted); --line: var(--trace-soft); --line-strong: var(--trace); --accent: var(--pad); --accent-hover: var(--pad-strong); --panel: var(--board-2); }
.band--paper { background: var(--paper); color: var(--ink);
  --fg: var(--ink); --muted: var(--ink-muted); --line: var(--rule); --line-strong: #A9BBB0; --accent: var(--green); --accent-hover: var(--green-strong); --panel: var(--paper-2); }
.band--deep { background: var(--board-deep); }
.band + .band--paper, .band + .band--board { border-top: 1px solid var(--line); }

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

/* ----- Type scale ---------------------------------------------------------- */
.label {
  font-size: 0.75rem; font-weight: 600; font-stretch: var(--wdth-label);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
h1, .h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 620; font-stretch: var(--wdth-display);
  line-height: 1.0; letter-spacing: -0.02em; text-wrap: balance;
}
h2, .h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem); font-weight: 600; font-stretch: 90%;
  line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance;
}
h3, .h3 { font-size: 1.25rem; font-weight: 600; font-stretch: 96%; line-height: 1.25; letter-spacing: -0.005em; }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 34em; color: var(--muted); }
p { max-width: 62ch; }
.measure { max-width: 62ch; }
.muted { color: var(--muted); }

/* Section header: label + heading + optional lede, left-aligned */
.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lede { margin-top: 6px; }

/* ----- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0.85em 1.25em; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; text-decoration: none;
  border: 1px solid transparent; line-height: 1.2; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: var(--board); border-color: var(--accent); }
.band--paper .btn--primary { color: var(--paper); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { width: 14px; height: 14px; }

/* ----- Navigation ---------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--board-deep); color: var(--silk);
  border-bottom: 1px solid var(--trace-soft);
  --fg: var(--silk); --muted: var(--silk-muted); --line: var(--trace-soft); --line-strong: var(--trace); --accent: var(--pad); --accent-hover: var(--pad-strong);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; color: var(--silk); text-decoration: none; }
.brand svg { height: 17px; width: auto; fill: currentColor; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav__links a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--silk-muted); }
.nav__links a:hover { color: var(--silk); }
.nav__links .btn { margin-left: 8px; padding: 0.65em 1.05em; }
.nav__links .btn--primary { color: var(--board); }
.nav__links .btn--primary:hover { color: var(--board); }
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--silk); }
.nav__toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--board-deep); border-bottom: 1px solid var(--trace-soft);
    padding: 8px var(--gutter) 20px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; border-top: 1px solid var(--trace-soft); font-size: 1.05rem; }
  .nav__links a:first-child { border-top: 0; }
  .nav__links .btn { margin: 12px 0 0; justify-content: center; border-top: 0; }
}

/* ----- Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 22px; }
.hero__copy h1 { max-width: 12em; }
.hero__copy h1 .line { display: block; }
.hero__copy .lede { max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__art { justify-self: end; width: 100%; max-width: 560px; }
.hero__art svg { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; max-width: 480px; }
}

/* Board illustration: traces draw in once on load, pads are visible at rest */
.board-art .b-tr { stroke-dasharray: 600; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .board-art.is-ready .b-tr { animation: draw 1.1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 18ms); }
}
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }

/* Industry strip under the hero */
.strip { border-top: 1px solid var(--trace-soft); border-bottom: 1px solid var(--trace-soft); }
.strip__list { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-block: 18px; font-size: 0.95rem; font-weight: 500; color: var(--silk-muted); }
.strip__list li { display: inline-flex; align-items: center; gap: 10px; }
.strip__list li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--pad); }

/* ----- Engagement models --------------------------------------------------- */
.models { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); }
.model { display: grid; gap: 18px; align-content: start; padding-top: 24px; border-top: 2px solid var(--fg); }
.model__diagram { width: 100%; max-width: 420px; }
.model__diagram svg { width: 100%; height: auto; }
.model h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.spec { display: grid; gap: 0; margin-top: 6px; }
.spec div { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.spec dt { color: var(--muted); font-weight: 500; }
.spec dd { color: var(--fg); }
.models__note { margin-top: clamp(32px, 4vw, 56px); padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); max-width: 60ch; }
@media (max-width: 760px) { .models { grid-template-columns: 1fr; } .spec div { grid-template-columns: 7em 1fr; } }

/* ----- Industries ---------------------------------------------------------- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3vw, 48px); }
.industry { padding: 26px 0 34px; border-top: 1px solid var(--line-strong); display: grid; gap: 12px; align-content: start; }
.industry h3 { display: flex; align-items: center; gap: 12px; }
.industry h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--accent); }
.industry p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 960px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .industries { grid-template-columns: 1fr; } .industry { padding: 20px 0 26px; } }

/* ----- Capabilities (datasheet list) -------------------------------------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3vw, 48px); border-top: 2px solid var(--fg); }
.caps div { padding: 22px 0 28px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.caps dt { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.005em; }
.caps dd { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 960px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .caps { grid-template-columns: 1fr; } }

/* ----- Process (a trace with six pads; Validate is a gate) ---------------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 20px; position: relative; padding-top: 34px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line-strong); }
.step { position: relative; display: grid; gap: 8px; align-content: start; }
.step::before {
  content: ""; position: absolute; top: -30px; left: 0; width: 12px; height: 12px;
  border-radius: 50%; border: 2.5px solid var(--accent); background: var(--board);
  transform: translateY(-1px);
}
.step--gate::before { border-radius: 0; transform: translateY(-1px) rotate(45deg); background: var(--accent); }
.step__name { font-weight: 600; font-size: 1.05rem; }
.step__gate { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; font-stretch: var(--wdth-label); }
.step p { color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 22px; padding-top: 0; padding-left: 30px; }
  .steps::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .step::before { top: 6px; left: -30px; transform: none; }
  .step--gate::before { transform: rotate(45deg); }
}
.practices { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(20px, 3vw, 40px); border-top: 1px solid var(--line); }
.practices li { padding: 20px 0 8px; font-size: 0.98rem; color: var(--fg); line-height: 1.5; }
@media (max-width: 900px) { .practices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .practices { grid-template-columns: 1fr; } .practices li { padding: 14px 0 4px; border-top: 1px solid var(--line); } .practices li:first-child { border-top: 0; } }

/* ----- Typical scopes ------------------------------------------------------ */
.scopes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3vw, 48px); }
.scope { padding: 22px 0 30px; border-top: 1px solid var(--line-strong); display: grid; gap: 10px; align-content: start; }
.scope .label { color: var(--muted); }
.scope h3 { font-size: 1.15rem; }
.scope p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 960px) { .scopes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .scopes { grid-template-columns: 1fr; } }

/* ----- About --------------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about__text { display: grid; gap: 18px; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 40px); border-top: 1px solid var(--line-strong); }
.principles div { padding: 18px 0 22px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.principles dt { font-weight: 600; }
.principles dd { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.careers { margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 80px); align-items: start; }
.careers p { color: var(--muted); }
.careers a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 900px) { .about, .careers { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* ----- Contact ------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__text { display: grid; gap: 16px; }
.routes { border-top: 2px solid var(--fg); }
.route {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg);
}
.route strong { display: block; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.005em; }
.route span { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.route .arrow { width: 22px; height: 22px; color: var(--accent); transition: transform .15s; }
.route:hover .arrow { transform: translate(3px, -3px); }
.route:hover strong { color: var(--accent); }
.contact__email { margin-top: 22px; font-size: 0.95rem; color: var(--muted); }
.contact__email a { color: var(--fg); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ----- Footer -------------------------------------------------------------- */
.footer { padding-block: 56px 40px; color: var(--silk-muted); font-size: 0.92rem;
  --fg: var(--silk); --muted: var(--silk-muted); --line: var(--trace-soft); --accent: var(--pad); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 6fr) repeat(2, minmax(0, 3fr)); gap: 32px clamp(24px, 4vw, 64px); }
.footer .brand svg { height: 15px; }
.footer__blurb { margin-top: 18px; max-width: 40ch; line-height: 1.55; }
.footer h4 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pad); font-weight: 600; font-stretch: var(--wdth-label); margin-bottom: 14px; }
.footer ul { display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--silk-muted); }
.footer a:hover { color: var(--silk); }
.footer__base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--trace-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 0.85rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ----- Small diagrams inside the engagement models ------------------------- */
.diagram { font-family: var(--font); }
.diagram .dl { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--muted); }
.diagram .line { stroke: var(--line-strong); stroke-width: 2; fill: none; }
.diagram .padr { fill: var(--paper); stroke: var(--accent); stroke-width: 2.5; }
.diagram .dot { fill: var(--line-strong); }
.diagram .bracket { stroke: var(--fg); stroke-width: 1.5; fill: none; }
.diagram .gate { fill: var(--accent); }

/* Anchor offset for the sticky nav */
[id] { scroll-margin-top: 80px; }
