/* Shared styling for every generated content page (services, sectors, articles, legal).
   Tokens mirror _ds/arqen-design-system (ink, graphite, steel, copper, 4px radius). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #101114; --graphite: #2A2D34; --steel: #5F6570; --mist: #B9BEC7; --fog: #EDEEF1;
  --paper: #FFFFFF; --line: #E1E3E8; --copper: #B87333; --copper-text: #8A5522; --ink-raised: #1A1C20;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2,0,0,1);
  --gutter: clamp(24px, 5vw, 48px);
  --maxw: 1140px;
  --measure: 720px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--graphite); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--copper-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:where(a, button, input, textarea, summary):focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; top: 8px; left: 8px; z-index: 100; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 1px solid var(--graphite); border-radius: 4px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 500; transform: translateY(-200%); transition: transform 180ms var(--ease); }
.skip:focus { transform: none; }
.label { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--steel); }
.mono { font-family: var(--mono); font-size: 13px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--graphite); }
.site-header .wrap { min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.site-logo { display: block; padding: 8px 0; }
.site-logo img { display: block; height: 20px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 14px; font-weight: 500; }
.site-nav a { padding: 6px 0 3px; color: var(--mist); background: linear-gradient(var(--copper), var(--copper)) left bottom / 0% 1px no-repeat; transition: background-size 220ms var(--ease), color 180ms var(--ease); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--paper); background-size: 100% 1px; text-decoration: none; }
.site-nav .nav-cta { display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border-radius: 4px; background: var(--paper); color: var(--ink); }
.site-nav .nav-cta:hover { background: var(--fog); color: var(--ink); }
.nav-toggle { display: none; appearance: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--graphite); border-radius: 4px; background: transparent; color: var(--paper); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; margin: 4px auto; background: currentColor; }
@media (max-width: 1100px) {
  /* Without JavaScript the menu stays open, so every link remains reachable. */
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0 20px; font-size: 16px; }
  .site-nav a { padding: 10px 0; }
  .site-nav .nav-cta { margin-top: 8px; height: 44px; }
}

/* Page head */
.page-head { background: var(--ink); color: var(--paper); }
.page-head .wrap { padding-block: clamp(40px, 7vw, 72px) clamp(48px, 8vw, 88px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 40px; padding: 0; list-style: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--steel); }
.crumbs a { color: var(--mist); }
.crumbs a:hover { color: var(--paper); }
.page-head .label { display: flex; align-items: center; gap: 12px; color: var(--mist); }
.page-head .label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
h1 { margin: 24px 0 0; max-width: 20ch; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; color: var(--paper); text-wrap: balance; }
.lead { margin: 28px 0 0; max-width: 62ch; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--mist); text-wrap: pretty; }
.byline { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
.head-actions { margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 28px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: var(--paper); font: inherit; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; cursor: pointer; transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease); }
.btn:hover { background: var(--graphite); border-color: var(--graphite); text-decoration: none; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.on-ink { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn.on-ink:hover { background: var(--fog); border-color: var(--fog); }
.btn.ghost { background: transparent; border-color: var(--graphite); color: var(--paper); }
.btn.ghost:hover { border-color: var(--paper); background: transparent; }

/* Body copy */
.page-body { padding-block: clamp(48px, 8vw, 88px); }
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 64px 0 0; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); text-wrap: balance; }
.prose h3 { margin: 40px 0 0; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; color: var(--ink); }
.prose p, .prose li { font-size: 16.5px; line-height: 1.7; text-wrap: pretty; }
.prose p { margin: 16px 0 0; }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 22px; }
.prose li { margin: 8px 0 0; }
.prose li::marker { color: var(--copper-text); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose blockquote { margin: 32px 0 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--copper); font-size: 20px; line-height: 1.45; font-weight: 500; color: var(--ink); }
.prose figure { margin: 40px 0 0; }
.prose figure img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 4px; background: var(--fog); }
.prose figcaption { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--steel); }
.hero-figure { margin: 0 0 56px; max-width: 960px; }
.hero-figure img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 4px; background: var(--fog); }
.hero-figure figcaption { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--steel); }
.callout { margin: 32px 0 0; padding: 24px 28px; border: 1px solid var(--line); border-top: 2px solid var(--copper); border-radius: 4px; background: var(--fog); }
.callout > :first-child { margin-top: 0; }
.callout p { color: var(--ink); }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; border-top: 1px solid var(--line); margin-top: 24px !important; }
.steps > li { counter-increment: step; position: relative; margin: 0; padding: 18px 0 18px 56px; border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--copper-text); }
.checks { list-style: none; padding-left: 0 !important; }
.checks > li { position: relative; padding-left: 28px; }
.checks > li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 8px 40px; }
.table-scroll { margin: 24px 0 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
th, td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--ink); border-bottom-color: var(--ink); }
.prose td { font-size: 14.5px; }
@media (max-width: 640px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  td { padding: 4px 0; border: 0; }
  tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); }
}
.sources { margin: 64px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.sources h2 { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--steel); }
.sources li { font-size: 14px; overflow-wrap: anywhere; }
.meta { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--steel); }

/* FAQ */
.band { border-top: 1px solid var(--line); }
.band.fog { background: var(--fog); }
.band > .wrap { padding-block: clamp(56px, 8vw, 96px); }
.band h2 { margin: 16px 0 0; max-width: 22ch; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; color: var(--ink); text-wrap: balance; }
.faq-list { margin-top: 40px; max-width: 880px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: baseline; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; margin-left: auto; font-family: var(--mono); font-size: 16px; color: var(--copper-text); transition: transform 220ms var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--copper-text); }
.faq-list details p { margin: 0; padding: 0 0 28px; max-width: 68ch; font-size: 16px; line-height: 1.65; color: var(--steel); }

/* Card lists (related pages, hubs) */
.cards { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.cards li { border-bottom: 1px solid var(--line); }
.cards a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px 0 28px; color: inherit; }
.cards a:hover { text-decoration: none; }
.cards .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.cards .title { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; color: var(--ink); transition: color 180ms var(--ease); }
.cards a:hover .title { color: var(--copper-text); }
.cards .desc { font-size: 14.5px; line-height: 1.6; color: var(--steel); }
.logo-row { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.logo-row img { display: block; height: 28px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .8; }

/* Team (rendered only when team members are filled in) */
.people { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.person { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 96px); padding: 48px 0; border-bottom: 1px solid var(--line); }
.person img, .portrait-ph { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--fog); }
.person .role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-text); }
.person h3 { margin: 12px 0 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); }
.person p { margin: 20px 0 0; max-width: 60ch; }
.person blockquote { margin: 28px 0 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--copper); font-size: 20px; line-height: 1.45; font-weight: 500; color: var(--ink); }
@media (max-width: 720px) { .person { grid-template-columns: 1fr; } .person img, .portrait-ph { max-width: 260px; } }

/* Contact CTA */
.cta > .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 64px; align-items: start; }
.cta p.cta-text { margin: 20px 0 0; max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--steel); }
.cta .direct { margin: 28px 0 0; font-size: 15px; color: var(--steel); }
.form { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 32px); border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.form label { display: flex; flex-direction: column; gap: 8px; }
.form label > span { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--steel); }
.form input, .form textarea { width: 100%; padding: 0 16px; height: 48px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font: inherit; font-size: 15px; color: var(--ink); }
.form textarea { min-height: 112px; height: auto; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--ink); outline: none; }
.form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form .btn { align-self: flex-start; }
.form .note { font-size: 13px; line-height: 1.5; color: var(--steel); }
.form [role="alert"] { color: #9A2B1F; font-size: 14px; }
.form [role="status"] { color: var(--ink); font-size: 14px; font-weight: 500; }
.form [role="alert"]:empty, .form [role="status"]:empty { display: none; }

/* Footer */
.site-footer { background: var(--ink); color: var(--mist); font-size: 14px; line-height: 1.6; }
.site-footer .cols-foot { padding-block: 56px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 36px 48px; }
.site-footer img { display: block; height: 22px; width: auto; }
.site-footer .tagline { margin: 20px 0 0; max-width: 30ch; color: var(--mist); }
.site-footer .foot-title { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: #858B94; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer a, .site-footer button.linklike { color: var(--mist); }
.site-footer a:hover, .site-footer button.linklike:hover { color: var(--paper); }
.site-footer address { font-style: normal; }
button.linklike { appearance: none; padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; text-align: left; }
.site-footer .legal { border-top: 1px solid var(--graphite); }
.site-footer .legal .wrap { padding-block: 24px; display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 13px; color: #858B94; }

/* Cookie bar (same consent key as the homepage) */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--ink); border-top: 1px solid var(--graphite); color: var(--mist); }
.cookie-bar .wrap { padding-block: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.cookie-bar p { margin: 0; max-width: 66ch; font-size: 14px; line-height: 1.6; }
.cookie-bar a { color: var(--paper); border-bottom: 1px solid var(--graphite); }
.cookie-bar .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-bar .btn { height: 44px; padding: 0 24px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
@media print {
  .site-header, .cookie-bar, .cta .form, .nav-toggle { display: none !important; }
  .page-head { background: none; color: var(--ink); }
  h1, .lead { color: var(--ink); }
}
