/* Demaled — site styles. No framework, no build step. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 700 800;
  font-stretch: 88%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #161412;
  --char: #2B2825;
  --deep: #1C1A18;
  --node: #221F1C;
  --paper: #F4F1EC;
  --white: #FFFFFF;
  --line: #DDD6CC;
  --muted: #5E5850;
  --amber: #E39F26;
  --amber-ink: #8A5600;
  --tile: #F3E6CF;
  --field: #948C81;
  --field-bg: #FBFAF7;
  --on-dark: rgba(255, 255, 255, 0.78);
  --on-dark-soft: rgba(255, 255, 255, 0.72);

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 9vw, 112px);
  --header-h: 72px;
  --radius: 6px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: var(--amber-ink); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
button, input, textarea { font: inherit; color: inherit; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--amber); color: var(--ink); padding: 12px 18px; border-radius: 4px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Type */
.display {
  font-family: var(--f-display);
  font-stretch: 88%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.h2 { font-size: clamp(34px, 4.2vw, 56px); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-ink);
}
.on-dark .eyebrow, .eyebrow--amber { color: var(--amber); }
.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: 4px; border: 0;
  font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn svg { flex: none; }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #F0AE3A; color: var(--ink); }
.btn--dark { background: var(--char); color: var(--white); }
.btn--dark:hover { background: var(--ink); color: var(--white); }
.btn--ghost { color: var(--white); border: 1px solid rgba(255,255,255,.35); background: transparent; }
.btn--ghost:hover { border-color: var(--amber); color: var(--white); }
.btn--outline { color: var(--ink); border: 1.5px solid var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--deep);
  border-bottom: 1px solid rgba(227, 159, 38, 0.45);
  color: var(--white);
}
.site-header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.nav__list a, .nav__phone {
  color: rgba(255,255,255,.85); text-decoration: none; font-size: 16px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
}
.nav__list a:hover, .nav__phone:hover { color: var(--amber); }
.nav__phone { color: var(--white); font-weight: 600; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 16px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; color: var(--white);
  align-items: center; justify-content: center;
}
.menu-toggle .icon-close { display: none; }
.site-header[data-open] .menu-toggle .icon-open { display: none; }
.site-header[data-open] .menu-toggle .icon-close { display: block; }
.header-call { display: none; }

@media (max-width: 959px) {
  :root { --header-h: 64px; }
  .brand img { height: 18px; }
  .menu-toggle, .header-call { display: inline-flex; }
  .header-call { width: 44px; height: 44px; align-items: center; justify-content: center; margin-left: auto; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--deep); border-bottom: 1px solid rgba(227,159,38,.45);
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 8px var(--gutter) 24px;
  }
  .site-header[data-open] .nav { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: flex; min-height: 52px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__phone { min-height: 52px; font-size: 18px; }
  .nav .btn { min-height: 52px; font-size: 17px; }
  /* Without JS the menu stays reachable: show it inline under the bar. */
  .no-js .nav { display: flex; position: static; }
  .no-js .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--char); color: var(--white); }
.hero__grid {
  display: grid; gap: 56px; align-items: center;
  padding-block: clamp(48px, 7vw, 88px) clamp(40px, 7vw, 96px);
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: .95; color: var(--white); }
.hero h1 .accent { color: var(--amber); }
.hero__lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--on-dark); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 4px; }
.hero__mail { color: var(--white); font-weight: 500; text-decoration-color: rgba(227,159,38,.7); text-underline-offset: 6px; }
.hero__mail:hover { color: var(--amber); }
.hero__diagram { display: none; justify-self: end; width: 100%; max-width: 560px; }
.hero__diagram a:focus-visible rect { stroke-width: 3; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.hero__chips li {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; color: rgba(255,255,255,.85);
}
.hero__chips .more { border: 1px dashed var(--amber); color: var(--amber); }
.hero__chips .hub { border-color: var(--amber); background: var(--amber); color: var(--ink); }

@media (max-width: 599px) {
  .hero__actions .btn { width: 100%; }
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }
  .hero__diagram { display: block; }
  .hero__chips { display: none; }
}

.partners { border-top: 1px solid rgba(255,255,255,.1); }
.partners__row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; padding-block: 26px; }
.partners__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.partners__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 44px; margin: 0; padding: 0; list-style: none; }
.partners__logos img { opacity: .9; width: auto; height: 22px; }
.partners__logos img[alt^="Basalte"] { height: 20px; }
.partners__logos img[alt^="SBM"] { height: 26px; }
.partners__license { display: flex; align-items: center; gap: 10px; color: var(--on-dark); font-size: 14px; }
@media (min-width: 1100px) { .partners__license { margin-left: auto; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--white { background: var(--white); border-top: 1px solid var(--line); }
.section--dark { background: var(--char); color: var(--white); }
.section--amber { background: var(--amber); color: var(--ink); }
.section__head { display: grid; gap: 20px 64px; margin-bottom: clamp(40px, 5vw, 64px); align-items: end; }
.section__head > div { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 900px) { .section__head { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Problem */
.problems { display: grid; gap: 20px 40px; margin: 0 0 clamp(36px, 4vw, 56px); padding: 0; list-style: none; counter-reset: p; }
.problems li { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; gap: 16px; align-items: baseline; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.35; font-weight: 500; }
.problems li::before { counter-increment: p; content: "0" counter(p); font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); font-weight: 500; }
@media (min-width: 800px) { .problems { grid-template-columns: repeat(3, minmax(0, 1fr)); } .problems li { flex-direction: column; gap: 12px; } }
.resolve { font-size: clamp(30px, 3vw, 40px); line-height: 1.1; }
.resolve span { color: var(--amber-ink); }

/* Services */
.services { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service { display: flex; flex-direction: column; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service svg { margin-bottom: 6px; }
.service h3 { font-family: var(--f-display); font-stretch: 88%; font-weight: 700; font-size: clamp(21px, 1.8vw, 24px); line-height: 1.2; }
.service p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.service--cta {
  background: var(--char); color: var(--white); text-decoration: none; border-radius: var(--radius);
  padding: 28px 24px; margin-top: 24px; border: 0;
}
.service--cta:hover { background: var(--ink); color: var(--white); }
.service--cta h3 { font-weight: 800; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; }
.service--cta p:not(.eyebrow) { color: var(--on-dark); }
.service--cta .more-link { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 10px; color: var(--amber); font-weight: 600; }
@media (min-width: 700px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--line); }
  .service { padding: 36px 32px; border-right: 1px solid var(--line); }
  .service--cta { margin-top: 0; border-radius: 0; padding: 36px 32px; }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service { padding: 40px 36px; min-height: 300px; }
}

/* Steps */
.steps { display: grid; gap: 28px; margin: 0; padding: 0 0 0 24px; list-style: none; position: relative; border-left: 2px solid rgba(255,255,255,.18); margin-left: 7px; }
.step { position: relative; display: flex; flex-direction: column; gap: 8px; }
.step::before { content: ""; position: absolute; left: -33px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); }
.step:last-child::before { background: var(--char); border: 2px solid var(--amber); }
.step h3 { font-family: var(--f-display); font-stretch: 88%; font-weight: 700; font-size: clamp(20px, 1.7vw, 23px); line-height: 1.2; }
.step p:not(.eyebrow) { color: var(--on-dark-soft); font-size: 17px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding: 0; border-left: 0; margin-left: 0; }
  .steps::before { content: ""; position: absolute; left: 7px; right: 0; top: 7px; height: 2px; background: rgba(255,255,255,.18); }
  .step { padding-top: 40px; }
  .step::before { left: 0; top: 0; }
}
.section__head--row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 48px; margin-bottom: clamp(40px, 5vw, 64px); }

/* Projects */
.projects { display: grid; gap: 40px 32px; margin: 0; padding: 0; list-style: none; }
.project { display: flex; flex-direction: column; gap: 14px; }
.project__visual { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--tile); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.project__visual svg { width: 88px; height: 88px; }
.project h3 { font-family: var(--f-display); font-stretch: 88%; font-weight: 700; font-size: 22px; line-height: 1.25; }
.project p:not(.eyebrow) { color: var(--muted); font-size: 16px; }
@media (min-width: 800px) { .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* About */
.about { display: grid; gap: 40px 96px; align-items: start; }
.about__photo { display: flex; flex-direction: column; gap: 14px; }
.about__photo img { width: 100%; max-width: min(440px, 300px + 20vw); aspect-ratio: 440 / 520; object-fit: cover; object-position: center top; border-radius: var(--radius); }
.about__photo figcaption { font-size: 15px; color: var(--muted); }
.about__photo strong { color: var(--ink); font-weight: 600; }
.about__copy { display: flex; flex-direction: column; gap: 24px; }
.about__intro { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; font-weight: 500; }
.about__body { color: var(--muted); font-size: 18px; line-height: 1.7; }
.facts { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
@media (min-width: 600px) { .facts li { grid-template-columns: 170px minmax(0, 1fr); align-items: baseline; } }
@media (min-width: 900px) { .about { grid-template-columns: 440px minmax(0, 1fr); } .about__copy { padding-top: 12px; } }

/* Contact */
.contact { display: grid; gap: 48px 80px; align-items: start; }
.contact__copy { display: flex; flex-direction: column; gap: 24px; }
.contact h2 { font-size: clamp(44px, 5vw, 72px); line-height: .95; }
.contact__intro { font-size: clamp(17px, 1.4vw, 19px); max-width: 30em; }
.contact__lines { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(22,20,18,.25); }
.contact__lines li { border-bottom: 1px solid rgba(22,20,18,.25); }
.contact__lines a, .contact__lines div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding: 18px 0; color: var(--ink); text-decoration: none; }
.contact__lines a:hover .contact__value { text-decoration: underline; text-underline-offset: 4px; }
.contact__label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.contact__value { font-family: var(--f-display); font-stretch: 88%; font-weight: 700; font-size: clamp(20px, 2vw, 24px); }
.contact__value--plain { font-family: var(--f-body); font-weight: 400; font-size: 18px; }
@media (min-width: 960px) { .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.form { background: var(--white); border-radius: 8px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 22px; box-shadow: 0 24px 48px rgba(22,20,18,.14); }
.form h3 { font-family: var(--f-display); font-stretch: 88%; font-weight: 800; font-size: clamp(22px, 2vw, 28px); }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend, .field label { font-size: 15px; font-weight: 600; padding: 0; margin-bottom: 10px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--field); background: var(--white); font-size: 15px; font-weight: 500; cursor: pointer;
}
.chip input:checked + span { background: var(--char); color: var(--white); border-color: var(--char); }
.chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.fields { display: grid; gap: 16px; }
@media (min-width: 560px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--field); border-radius: 4px;
  background: var(--field-bg); font-size: 16px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--char); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__note { font-size: 14px; color: var(--muted); }
.form__status { font-size: 15px; font-weight: 500; }
.form__status:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); border-top: 1px solid rgba(227,159,38,.45); color: var(--on-dark); font-size: 15px; line-height: 1.8; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer__top { display: grid; gap: 32px 72px; padding-block: 56px 40px; }
.footer__cols { display: grid; gap: 24px 72px; }
.footer__cols h2 { font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.footer__cols p, .footer__cols address { font-style: normal; display: flex; flex-direction: column; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 24px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: rgba(255,255,255,.66); }
.footer__bottom a { color: rgba(255,255,255,.85); }
@media (min-width: 700px) { .footer__cols { grid-template-columns: repeat(3, auto); } }
@media (min-width: 1000px) { .footer__top { grid-template-columns: auto 1fr; } .footer__cols { justify-content: end; } }

/* ---------- Plain text pages (privacy, 404) ---------- */
.prose { max-width: 720px; padding-block: var(--section); }
.prose h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 24px; }
.prose h2 { font-family: var(--f-display); font-stretch: 88%; font-weight: 700; font-size: 24px; margin: 40px 0 12px; }
.prose p, .prose ul { margin-bottom: 16px; color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose .meta { color: var(--muted); font-size: 15px; }

@media print {
  .site-header, .skip-link, .hero__diagram, .form { display: none !important; }
  body { background: #fff; }
  .hero, .section--dark, .section--amber, .site-footer { background: #fff !important; color: #000 !important; }
}
.eyebrow--ink { color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status--ok { color: #1F5C2E; }
.form__status--error { color: #9A2A1C; }
.form__done { display: flex; flex-direction: column; gap: 14px; }
.form__done h3 { font-family: var(--f-display); font-stretch: 88%; font-weight: 800; font-size: clamp(24px, 2.2vw, 30px); }
.form__done p { color: var(--muted); }
.btn[disabled] { opacity: .6; cursor: progress; }
