/* Orkestra Labs — "Lab Blueprint"
   Cool white, near-black, one vivid teal accent. Grid-paper texture. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;700;900&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --paper: #f4f6f5;
  --paper-alt: #e9edec;
  --ink: #0e1210;
  --ink-soft: #43514c;
  --ink-faint: rgba(14, 18, 16, 0.65);
  --teal: #0c8f86;
  --teal-deep: #086b64;
  --teal-soft: #35b3a9;
  --line: rgba(14, 18, 16, 0.14);
  --rail: rgba(12, 143, 134, 0.55);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(14,18,16,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,18,16,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

h1, h2, h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

a { color: var(--teal-deep); }
a:hover { color: var(--teal); }

.kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 14px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 32px; max-width: var(--max); margin: 0 auto; position: relative; z-index: 2;
}
.mark {
  font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink);
}
.lang-switch {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.04em; text-decoration: none;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: 20px; padding: 9px 16px;
  display: inline-flex; align-items: center; min-height: 40px; touch-action: manipulation;
  transition: border-color .15s, color .15s;
}
.lang-switch:hover { border-color: var(--teal); color: var(--teal-deep); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 60px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.3rem); max-width: 14ch; }
.hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 46ch; margin: 24px 0 32px; }
.hero-art { position: relative; height: 340px; }
.hero-art svg { width: 100%; height: 100%; }
.lab-box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }
.lab-box.accent { fill: var(--teal); stroke: var(--teal-deep); }
.lab-label { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 500; fill: var(--ink); }
.lab-label.on-accent { fill: var(--paper); font-weight: 600; }
.lab-step { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; fill: var(--ink-faint); letter-spacing: 0.05em; }
.lab-conn { stroke: var(--teal-deep); stroke-width: 1.8; }

@media (prefers-reduced-motion: no-preference) {
  .lab-box, .lab-conn { opacity: 0; animation: rise .5s ease-out forwards; transform-box: fill-box; transform-origin: center; }
  .lab-box { transform: translateY(10px); }
  .lab-box:nth-of-type(1) { animation-delay: .1s; }
  .lab-conn:nth-of-type(1) { animation-delay: .5s; }
  .lab-box:nth-of-type(2) { animation-delay: .7s; }
  .lab-conn:nth-of-type(2) { animation-delay: 1.1s; }
  .lab-box:nth-of-type(3) { animation-delay: 1.3s; }
  @keyframes rise { to { opacity: 1; transform: translateY(0); } }
}

/* ---------- CTA ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  text-decoration: none; color: var(--paper); background: var(--ink); border: none; border-radius: 2px;
  padding: 16px 26px; cursor: pointer; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--teal-deep); }
.btn:active { transform: translateY(1px); }
.btn-arrow { transition: transform .15s; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.hero-note { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--ink-faint); margin-top: 16px; }

/* ---------- rail ---------- */
.rail { position: relative; padding-left: 46px; border-left: 2px solid var(--rail); margin-left: 40px; }
@media (max-width: 720px) { .rail { padding-left: 26px; margin-left: 14px; } }

.section { position: relative; padding: 60px 0 60px 40px; }
.section .kicker { position: relative; }
.section .kicker::before {
  content: ''; position: absolute; left: -55px; top: 4px; width: 12px; height: 12px; border-radius: 2px;
  background: var(--teal); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--teal-deep);
}
@media (max-width: 720px) {
  .section { padding-left: 24px; }
  .section .kicker::before { left: -33px; width: 10px; height: 10px; }
}
.section.alt::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: var(--paper-alt); z-index: -1;
}
.section h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); max-width: 22ch; margin-bottom: 24px; }
.section .body p { max-width: 62ch; margin: 0 0 16px; color: var(--ink-soft); }
.section .body p:last-child { margin-bottom: 0; }

/* ---------- services list ---------- */
.services { display: flex; flex-direction: column; margin-top: 8px; }
.svc {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 0;
  border-top: 1px solid var(--line); transition: transform .2s ease, background .2s ease; border-radius: 4px;
}
.svc:first-child { border-top: none; padding-top: 4px; }
.svc:hover { transform: translateX(6px); background: rgba(12,143,134,0.06); }
.svc-mark { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--teal-deep); padding-top: 3px; }
.svc h3 { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.svc p { max-width: 58ch; margin: 0; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; max-width: 68ch; margin-top: 8px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 17px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: 'IBM Plex Mono', monospace; font-size: 20px; color: var(--teal-deep);
  flex: 0 0 auto; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { margin: 14px 0 0; color: var(--ink-soft); max-width: 60ch; }

/* ---------- contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; max-width: 460px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field textarea {
  width: 100%; font-family: 'IBM Plex Sans', sans-serif; font-size: 16px; padding: 13px 15px;
  border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 90px; }
.contact-form .btn { align-self: flex-start; }
.form-fine { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink-faint); margin-top: 4px; }

/* ---------- scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease-out, transform .7s ease-out; }
  html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
  .spec-line { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.8s ease-out .2s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; margin-top: 30px; }
.footer-row {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--ink-faint);
}
.footer-row a { color: var(--ink-faint); }
.footer-row a:hover { color: var(--teal-deep); }
.legal-note { max-width: 60ch; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--ink-faint); line-height: 1.6; margin-top: 18px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 200px; order: -1; }
}

/* ---------- cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: -260px; z-index: 50;
  max-width: 520px; margin: 0 auto;
  background: var(--ink); color: var(--paper);
  border-radius: 4px; padding: 20px 22px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.28);
  font-family: 'IBM Plex Sans', sans-serif; font-size: 15px; line-height: 1.55;
  transition: bottom .4s ease-out;
}
.cookie-banner.is-visible { bottom: 20px; }
.cookie-banner p { margin: 0 0 14px; color: var(--paper); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button {
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em; padding: 10px 18px;
  border-radius: 2px; cursor: pointer; min-height: 40px;
}
#cookie-accept { background: var(--teal); color: var(--ink); border: none; }
#cookie-accept:hover { background: var(--teal-soft); }
#cookie-decline { background: transparent; color: var(--paper); border: 1px solid rgba(244,246,245,0.3); }
#cookie-decline:hover { border-color: var(--paper); }
@media (max-width: 640px) { .cookie-banner { left: 12px; right: 12px; padding: 16px 18px; bottom: -300px; } .cookie-banner.is-visible { bottom: 12px; } }

/* --- Accessibility: visible keyboard focus --- */
a:focus-visible, button:focus-visible, .lang-switch:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 2px;
}

/* --- Legal page (privacy policy) --- */
.legal-page { min-height: 100vh; }
.legal-wrap { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-back { display: inline-block; margin-bottom: 32px; font-size: 14px; text-decoration: none; }
.legal-content h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.2; margin: 0 0 8px; }
.legal-content .legal-updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 40px; }
.legal-content h2 { font-size: 19px; margin: 36px 0 12px; }
.legal-content p { line-height: 1.65; margin: 0 0 14px; max-width: 68ch; }
.legal-content code { font-size: 0.9em; padding: 1px 5px; border-radius: 3px; background: rgba(128,128,128,0.15); }
