/* ============================================================
   LumosTech B.V. — site stylesheet
   Governed by: Digital Presence Strategy & Design Framework v1.0
   No third-party requests. No webfonts. No tracking.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* raw palette (Appendix A) */
  --ink:        #0F1719;
  --ink-soft:   #2A3A3E;
  --paper:      #FBF8F3;
  --paper-alt:  #F4EFE7;
  --lumen:      #D98A2B;   /* decorative / on dark grounds */
  --lumen-ink:  #975812;   /* amber that carries text + indicators on light */
  --teal:       #1F5E5B;
  --teal-soft:  #2E7B77;
  --muted-c:    #5D6B6E;
  --line-c:     #E3DACD;

  /* semantic roles — these are what components use */
  --bg:         var(--paper);
  --bg-alt:     var(--paper-alt);
  --bg-invert:  var(--ink);
  --fg:         var(--ink);
  --fg-soft:    var(--ink-soft);
  --fg-muted:   var(--muted-c);
  --fg-invert:  #F4EFE7;
  --accent:     var(--lumen-ink);
  --accent-warm:var(--lumen);
  --link:       var(--teal);
  --rule:       var(--line-c);
  --card:       #FFFFFF;

  /* type */
  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino,
                  "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;

  /* space */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --wrap: 1120px;
  --measure: 68ch;
  --r-sm: 4px;
  --r-md: 10px;
  --t-fast: 120ms;
  --t-med: 240ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #12191B;
    --bg-alt:     #182124;
    --bg-invert:  #0B1113;
    --fg:         #EDE7DD;
    --fg-soft:    #D8D2C7;
    --fg-muted:   #9FADAF;
    --fg-invert:  #EDE7DD;
    --accent:     #E8A64A;
    --accent-warm:#E8A64A;
    --link:       #6FBDB5;
    --rule:       #2A3639;
    --card:       #182124;
  }
}

/* ---------- 2. Reset & base ---------- */
*, *::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;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* a very faint warm grain so the ground never reads as flat screen-white */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(217,138,43,.045), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(31,94,91,.038), transparent 46%);
  background-attachment: fixed;
}

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

/* SVG illustration roles — so hand-drawn graphics follow the theme */
svg { --svg-line: #1F5E5B; --svg-accent: #975812; }
@media (prefers-color-scheme: dark) {
  svg { --svg-line: #6FBDB5; --svg-accent: #E8A64A; }
}
.s-line { stroke: var(--svg-line); }
.f-line { fill: var(--svg-line); }
.f-accent { fill: var(--svg-accent); }
.stop-line { stop-color: var(--svg-line); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.015em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.3rem); line-height: 1.16; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.3; }
h4 { font-size: 1.03rem; line-height: 1.35; font-family: var(--font-body); font-weight: 650; letter-spacing: 0; }

p { margin: 0 0 var(--s4); max-width: var(--measure); }
strong { font-weight: 650; color: var(--fg); }

a { color: var(--link); text-decoration: underline; text-underline-offset: 3px;
    text-decoration-thickness: 1px; transition: color var(--t-fast) ease-out; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

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

::selection { background: rgba(217,138,43,.28); }

/* ---------- 3. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s5); }
@media (min-width: 860px) { .wrap { padding-inline: var(--s7); } }

.section { padding-block: var(--s8); }
@media (min-width: 860px) { .section { padding-block: var(--s9); } }
.section--tight { padding-block: var(--s7); }
.section--alt { background: var(--bg-alt); }
.section--ink {
  background: var(--bg-invert);
  color: var(--fg-invert);
}
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #F7F2EA; }
.section--ink p, .section--ink li { color: #D6CEC2; }
.section--ink strong { color: #F7F2EA; }
.section--ink a { color: var(--lumen); }
.section--ink .micro { color: var(--lumen); }
.section--ink .rule { background: rgba(247,242,234,.16); }
.section--ink .plain-list li::before { background: var(--lumen); }
.section--ink .cross-list li::before { color: var(--lumen); }
.section--ink .check-list li::before { color: #6FBDB5; }
.section--ink .card { background: rgba(244,239,231,.05); border-color: rgba(244,239,231,.16); }
.section--ink .step-out { color: #A69D91; border-left-color: var(--lumen); }
.section--ink .steps > li { border-left-color: rgba(244,239,231,.16); }
.section--ink .steps > li::before { background: var(--bg-invert); border-color: rgba(244,239,231,.22); color: var(--lumen); }
.section--ink .notice { background: rgba(244,239,231,.05); border-left-color: var(--lumen); }
.section--ink .criteria > div:last-child { border-top-color: var(--lumen); }
/* buttons must beat the generic ink-section link colour */
.section--ink a.btn--onink { color: #12191B; }
.section--ink a.btn--quiet { color: #F7F2EA; border-color: rgba(244,239,231,.28); }
.section--ink a.btn--quiet:hover { color: var(--lumen); border-color: var(--lumen); }

.measure { max-width: var(--measure); }
.lede { font-size: clamp(1.1rem, 2.1vw, 1.28rem); line-height: 1.55; color: var(--fg-muted); max-width: 62ch; }
.section--ink .lede { color: #C8C0B4; }

.micro {
  font-size: .745rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 var(--s3); display: block; font-family: var(--font-body);
}

.micro--yes { color: var(--link); }

.rule { height: 1px; background: var(--rule); border: 0; margin: var(--s7) 0; }

.grid { display: grid; gap: var(--s6); }
@media (min-width: 860px) {
  .grid--2 { grid-template-columns: 1fr 1fr; gap: var(--s7); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--split { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: var(--s8); align-items: center; }
  .grid--aside { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s8); align-items: start; }
}

/* ---------- 4. Skip link ---------- */
.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 200;
  background: var(--bg-invert); color: #F7F2EA; padding: var(--s3) var(--s5);
  border-radius: var(--r-sm); text-decoration: none; font-weight: 600;
  transition: top var(--t-fast) ease-out;
}
.skip:focus { top: var(--s4); color: #F7F2EA; }

/* ---------- 5. Header ---------- */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(140%) blur(8px);
}
@supports not (backdrop-filter: blur(1px)) { .site-head { background: var(--bg); } }

.head-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-name {
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1;
}
.brand-name b { font-weight: 600; color: var(--accent); }

.nav { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; align-items: center; gap: var(--s5); }
}
.nav a {
  text-decoration: none; color: var(--fg-muted); font-size: .925rem; font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  min-height: 24px; display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--fg); border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--rule); border-radius: var(--r-sm);
  color: var(--fg); font: inherit; font-size: .875rem; font-weight: 600;
  padding: 8px 12px; min-height: 40px; cursor: pointer;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle:hover { border-color: var(--accent); }

/* JS-off + JS-on mobile panel */
.nav-panel { border-bottom: 1px solid var(--rule); background: var(--bg-alt); }
@media (min-width: 960px) { .nav-panel { display: none !important; } }
.nav-panel ul { list-style: none; margin: 0; padding: var(--s4) 0; }
.nav-panel li { border-bottom: 1px solid var(--rule); }
.nav-panel li:last-child { border-bottom: 0; }
.nav-panel a {
  display: block; padding: 13px var(--s5); text-decoration: none;
  color: var(--fg); font-weight: 500; min-height: 24px;
}
.nav-panel a:hover { background: var(--card); color: var(--accent); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; min-height: 44px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font: inherit; font-size: .95rem; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background var(--t-fast) ease-out, color var(--t-fast) ease-out,
              border-color var(--t-fast) ease-out, transform var(--t-fast) ease-out;
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.btn--primary { background: var(--ink); color: #F7F2EA; }
.btn--primary:hover { background: var(--teal); color: #F7F2EA; }
@media (prefers-color-scheme: dark) {
  .btn--primary { background: var(--accent); color: #12191B; }
  .btn--primary:hover { background: #F0B863; color: #12191B; }
}
.btn--quiet { background: transparent; color: var(--fg); border-color: var(--rule); }
.btn--quiet:hover { border-color: var(--accent); color: var(--accent); }
.btn--onink { background: var(--lumen); color: #12191B; }
.btn--onink:hover { background: #EBA24A; color: #12191B; }

.btn .arw { transition: transform var(--t-fast) ease-out; }
.btn:hover .arw { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn:hover .arw { transform: none; } }

.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
  min-height: 24px;
}
.textlink:hover { border-bottom-color: var(--accent); }

/* ---------- 7. Hero ---------- */
.hero { padding-block: var(--s8) var(--s8); position: relative; overflow: hidden; }
@media (min-width: 860px) { .hero { padding-block: var(--s9) var(--s9); } }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: var(--s5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s6); align-items: center; }
.hero-art { position: relative; }

/* proof strip */
.proof {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding-block: var(--s5);
}
.proof-label {
  font-size: .745rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--fg-muted); margin: 0 0 var(--s4);
}
.proof-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); }
.proof-list li { display: flex; align-items: baseline; gap: 9px; }
.proof-list a {
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 600;
  color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--rule);
}
.proof-list a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.proof-list span { font-size: .82rem; color: var(--fg-muted); }

/* ---------- 8. Cards & blocks ---------- */
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: var(--s6);
}
.card h3 { margin-bottom: var(--s3); }
.card p:last-child { margin-bottom: 0; }

.cap { border-top: 2px solid var(--fg); padding-top: var(--s5); }
.cap h3 { margin-bottom: var(--s3); }
.cap p:last-child { margin-bottom: 0; }

.plain-list { list-style: none; margin: 0 0 var(--s4); padding: 0; max-width: var(--measure); }
.plain-list li {
  position: relative; padding-left: 26px; margin-bottom: 11px; line-height: 1.55;
}
.plain-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 13px; height: 1px; background: var(--accent);
}
.plain-list li:last-child { margin-bottom: 0; }

.check-list, .cross-list { list-style: none; margin: 0; padding: 0; }
.check-list li, .cross-list li {
  position: relative; padding-left: 30px; margin-bottom: 14px; line-height: 1.55;
}
.check-list li::before, .cross-list li::before {
  position: absolute; left: 0; top: 0; font-weight: 700; font-size: 1rem; line-height: 1.6;
}
.check-list li::before { content: "\2713"; color: var(--teal-soft); }
.cross-list li::before { content: "\00D7"; color: var(--accent); font-size: 1.2rem; }
@media (prefers-color-scheme: dark) { .check-list li::before { color: var(--link); } }

/* two-column criteria */
.criteria { display: grid; gap: var(--s6); }
@media (min-width: 860px) { .criteria { grid-template-columns: 1fr 1fr; gap: var(--s7); } }
.criteria > div { border-top: 2px solid var(--rule); padding-top: var(--s5); }
.criteria > div:first-child { border-top-color: var(--teal-soft); }
.criteria > div:last-child  { border-top-color: var(--accent); }

/* numbered process */
.steps { counter-reset: st; list-style: none; margin: 0; padding: 0; }
.steps > li {
  counter-increment: st; position: relative;
  padding: 0 0 var(--s6) var(--s8);
  border-left: 1px solid var(--rule); margin-left: 17px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute; left: -17px; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: var(--accent);
  font-family: var(--font-mono);
}
.section--alt .steps > li::before { background: var(--bg-alt); }
.steps h3 { margin-bottom: var(--s2); }
.steps p:last-child { margin-bottom: 0; }
.step-out {
  display: inline-block; margin-top: var(--s3);
  font-size: .85rem; color: var(--fg-muted);
  border-left: 2px solid var(--accent); padding-left: 11px;
}

/* pull statement */
.pull {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3.2vw, 2rem);
  line-height: 1.32; letter-spacing: -0.015em; max-width: 26ch; margin: 0;
  color: var(--fg);
}
.section--ink .pull { color: #F7F2EA; }

/* work entries */
.work-item { padding-block: var(--s7); border-top: 1px solid var(--rule); }
.work-item:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 860px) { .work-item .grid--split { align-items: start; } }
.work-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3) var(--s4); margin-bottom: var(--s4); }
.work-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
.work-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 11px;
}
.work-meta { list-style: none; margin: var(--s4) 0 0; padding: 0; font-size: .88rem; }
.work-meta li { display: flex; gap: var(--s3); padding: 8px 0; border-top: 1px solid var(--rule); }
.work-meta b { flex: 0 0 8.5em; font-weight: 600; color: var(--fg-muted); font-size: .78rem;
               text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }

.tile {
  border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-alt);
}
.tile svg { width: 100%; height: auto; display: block; }

/* photo slots — gradient fallback beneath, so a missing file is never broken */
.photo {
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--rule);
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 4 / 3;
  background-image:
    radial-gradient(120% 100% at 22% 18%, rgba(217,138,43,.30), transparent 58%),
    radial-gradient(110% 110% at 82% 88%, rgba(31,94,91,.30), transparent 60%),
    linear-gradient(152deg, #F2E9DB 0%, #E7DCCA 48%, #DCD2C6 100%);
}
@media (prefers-color-scheme: dark) {
  .photo {
    background-image:
      radial-gradient(120% 100% at 22% 18%, rgba(232,166,74,.24), transparent 58%),
      radial-gradient(110% 110% at 82% 88%, rgba(111,189,181,.20), transparent 60%),
      linear-gradient(152deg, #1D2629 0%, #182124 50%, #131A1C 100%);
  }
}
.photo--wide { aspect-ratio: 16 / 9; }
.photo--tall { aspect-ratio: 3 / 4; }
.photo--hero { aspect-ratio: 5 / 4; }
.photo-cap { font-size: .8rem; color: var(--fg-muted); margin-top: var(--s3); }

/* ---------- 9. Contact ---------- */
.contact-direct { display: grid; gap: var(--s5); }
@media (min-width: 640px) { .contact-direct { grid-template-columns: 1fr 1fr; } }
.contact-direct a { font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.4rem); }

.form { max-width: 34rem; }
.field { margin-bottom: var(--s5); }
.field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--fg);
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-sm);
  padding: 12px 14px; min-height: 46px;
  transition: border-color var(--t-fast) ease-out;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field-note { font-size: .82rem; color: var(--fg-muted); margin-top: 6px; }
.hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.hp input { width: 1px; height: 1px; }

.notice {
  border-left: 3px solid var(--accent); background: var(--bg-alt);
  padding: var(--s5); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .9rem;
}
.notice p:last-child { margin-bottom: 0; }
.notice p { max-width: none; }

/* ---------- 10. Legal / long-form ---------- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--s7); font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: var(--s5); font-size: 1.08rem; }
.prose ul { padding-left: 20px; margin-bottom: var(--s4); }
.prose li { margin-bottom: 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; margin-bottom: var(--s5); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 650; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--fg-muted); }
.table-scroll { overflow-x: auto; }

/* ---------- 11. Footer ---------- */
.site-foot {
  background: var(--bg-invert); color: #C4BCB0;
  padding-block: var(--s8) var(--s6); margin-top: 0;
  border-top: 1px solid rgba(244,239,231,.13); /* keeps the footer distinct from a dark section above */
}
.site-foot a { color: #E4DCD0; text-decoration: none; }
.site-foot a:hover { color: var(--lumen); }
.foot-grid { display: grid; gap: var(--s6); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: var(--s7); } }
.foot-grid h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em;
                color: var(--lumen); font-family: var(--font-body); font-weight: 700; margin-bottom: var(--s4); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 10px; font-size: .92rem; }
.foot-brand .brand-name { color: #F4EFE7; }
.foot-brand p { color: #A69D91; font-size: .92rem; margin-top: var(--s4); max-width: 34ch; }

.legal-block {
  margin-top: var(--s7); padding-top: var(--s5);
  border-top: 1px solid rgba(244,239,231,.14);
  font-size: .8rem; color: #948B80; line-height: 1.7;
}
.legal-block .legal-name { color: #B3AA9E; font-weight: 600; margin: 0 0 var(--s3); max-width: none; }
.legal-block dl { display: flex; flex-wrap: wrap; gap: 4px var(--s5); margin: 0 0 var(--s3); }
.legal-block dt { font-weight: 600; color: #B3AA9E; }
.legal-block dd { margin: 0; font-family: var(--font-mono); font-size: .76rem; }
.legal-block .foot-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s4); }

/* ---------- 12. Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise var(--t-med) ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---------- 13. Print ---------- */
@media print {
  .site-head, .nav-panel, .hero-art, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 12pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
