/* ===========================================================
   crypter UI kit — Nav, Hero, Marquee, Sections, Buttons,
   Services, Channels, About, Contact, Footer.
   =========================================================== */

.layout       { max-width: var(--content-max);  margin: 0 auto; padding: 0 var(--margin); }
.layout-wide  { max-width: var(--content-wide); margin: 0 auto; padding: 0 var(--margin); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-height);
  background: rgba(245, 241, 234, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--paper-200);
  box-shadow: var(--shadow-sticky);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand-mark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-900); }
.brand-mark .glyph { font-weight: 700; font-size: 32px; letter-spacing: -0.05em; line-height: 1; }
.brand-mark .word  { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.brand-mark .sep   { width: 1px; height: 22px; background: var(--paper-300); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-family: var(--font-sans); font-size: 14px; color: var(--ink-700);
  text-decoration: none; transition: color var(--dur-default) var(--ease);
  display: inline-flex; align-items: center;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--ink-900); }
.nav-links a .dot {
  display: inline-block; width: 4px; height: 4px;
  background: var(--accent-c); margin-left: 8px; vertical-align: middle;
  opacity: 0; transition: opacity var(--dur-default) var(--ease);
}
.nav-links a.is-active .dot { opacity: 1; }

.nav-cta {
  background: var(--ink-900); color: var(--paper-50);
  border: 0; font-family: var(--font-sans); font-weight: 500; font-size: 14px;
  padding: 10px 16px; cursor: pointer; letter-spacing: -0.01em;
  transition: background var(--dur-default) var(--ease);
}
.nav-cta:hover { background: var(--ink-700); }
.nav-cta.is-accent { background: var(--accent-c); color: var(--accent-on); }
.nav-cta.is-accent:hover { background: var(--accent-h); }

/* Language switcher — small mono pill (EN ↔ DE) */
.lang-switch {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  text-decoration: none;
  border: 1px solid var(--paper-300);
  padding: 6px 10px;
  line-height: 1;
  align-self: center;
  transition: color var(--dur-default) var(--ease),
              border-color var(--dur-default) var(--ease);
}
.lang-switch:hover { color: var(--ink-900); border-color: var(--ink-900); }
.lang-switch[aria-current="true"] {
  color: var(--ink-900);
  border-color: var(--ink-900);
}

/* Hamburger toggle — hidden on desktop, shown ≤ 768px */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink-900);
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
  border-radius: 0;
}
.nav-toggle:hover { color: var(--accent-c); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent-c); outline-offset: -2px; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--paper-200);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: end;
}
.hero h1 {
  font-size: clamp(56px, 8.5vw, 128px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 0.92;
  margin: 0; color: var(--ink-900);
  text-wrap: balance;
}
.hero h1 em {
  font-family: var(--font-italic); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
}
.hero-meta { display: flex; flex-direction: column; gap: 24px; padding-bottom: 8px; }
.hero-meta-block { border-top: 1px solid var(--paper-300); padding-top: 12px; }
.hero-sub {
  margin-top: 32px;
  font-size: 20px; line-height: 1.5; color: var(--ink-700);
  max-width: 640px; text-wrap: pretty;
}
.hero em.sub { font-family: var(--font-italic); font-style: italic; }
.hero-actions { margin-top: 40px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-sans); font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
  padding: 14px 22px; border: 0; cursor: pointer;
  transition: all var(--dur-default) var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; border-radius: 0;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent-c); color: var(--accent-on); }
.btn-primary:hover { background: var(--accent-h); }
.btn-ink { background: var(--ink-900); color: var(--paper-50); }
.btn-ink:hover { background: var(--ink-700); }
.btn-ghost { background: transparent; color: var(--ink-900); border: 1px solid var(--ink-900); padding: 13px 21px; }
.btn-ghost:hover { background: var(--ink-900); color: var(--paper-50); }
.btn-link {
  background: transparent; color: var(--ink-900); padding: 14px 4px;
  border-bottom: 1px solid var(--ink-900);
}
.btn-link:hover { color: var(--accent-c); border-bottom-color: var(--accent-c); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink-900); color: var(--paper-50); overflow: hidden;
  border-top: 1px solid var(--paper-200);
  border-bottom: 1px solid var(--paper-200);
}
.marquee-track {
  display: flex; gap: 48px; align-items: center;
  padding: 16px 0; white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper-200);
}
.marquee-track span { font-weight: 500; }
.marquee-track span:nth-child(even) { color: var(--digital-lime); }
.marquee:hover .marquee-track { animation-duration: 18s; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Section meta ---------- */
.section { padding: 96px 0; border-bottom: 1px solid var(--paper-200); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 64px;
}
.section-head-l { display: flex; align-items: baseline; gap: 16px; }
.section-num {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500);
}
.section-num strong { color: var(--ink-900); font-weight: 500; }
.section-title {
  font-size: 56px; font-weight: 600; letter-spacing: -0.025em;
  line-height: 1; color: var(--ink-900); margin: 0;
}
.section-lede {
  max-width: 480px; font-size: 16px; line-height: 1.55;
  color: var(--ink-700); text-align: right; text-wrap: pretty;
}
.section-lede em { font-family: var(--font-italic); font-style: italic; }

/* ---------- Services grid ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--paper-200); border-left: 1px solid var(--paper-200);
}
.svc-grid.svc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.svc-card {
  border-right: 1px solid var(--paper-200);
  border-bottom: 1px solid var(--paper-200);
  padding: 32px 28px; background: var(--paper-50);
  display: flex; flex-direction: column; gap: 32px;
  min-height: 280px; text-decoration: none; color: inherit;
  transition: background var(--dur-default) var(--ease);
  cursor: pointer; position: relative;
}
.svc-card:hover { background: var(--paper-100); }
.svc-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500);
}
.svc-icon { color: var(--ink-900); }
.svc-title {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.15; color: var(--ink-900); margin-top: auto;
}
.svc-body { font-size: 14px; line-height: 1.5; color: var(--ink-700); margin-top: -16px; }
.svc-footer {
  padding-top: 16px; border-top: 1px solid var(--paper-200);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500);
}
.svc-card .svc-footer svg { transition: transform var(--dur-default) var(--ease); }
.svc-card:hover .svc-footer svg { transform: translateX(4px); }

/* ---------- Channels ---------- */
.ch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--paper-300); border-left: 1px solid var(--paper-300);
}
.ch-card {
  background: var(--paper-50);
  border-right: 1px solid var(--paper-300);
  border-bottom: 1px solid var(--paper-300);
  padding: 32px; min-height: 320px;
  display: flex; flex-direction: column; gap: 24px;
  text-decoration: none; color: var(--ink-900);
  transition: background var(--dur-default) var(--ease);
}
.ch-card:hover { background: var(--paper-100); }
.ch-mark {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 26px; letter-spacing: -0.05em;
}
.ch-mark.red  { background: var(--signal-red); color: #fff; }
.ch-mark.ink  { background: var(--paper-50); color: var(--ink-900); outline: 1px solid var(--paper-300); }
.ch-mark.lime { border: 1.5px solid var(--digital-lime); color: var(--ink-900); background: var(--digital-lime); }

.ch-name { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink-900); }
.ch-desc { font-size: 14px; line-height: 1.5; color: var(--ink-700); }
.ch-meta {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--paper-200);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500);
}
.ch-meta .stat { display: inline-flex; gap: 8px; align-items: center; }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.about-copy h3 {
  font-size: 40px; font-weight: 600; letter-spacing: -0.025em;
  line-height: 1.05; margin: 0 0 24px; text-wrap: balance;
}
.about-copy h3 em { font-family: var(--font-italic); font-style: italic; font-weight: 400; color: var(--ink-900); }
.about-copy p {
  font-size: 16px; line-height: 1.6; color: var(--ink-700);
  margin: 0 0 16px; text-wrap: pretty;
}
.about-copy p em { font-family: var(--font-italic); font-style: italic; }
.stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--paper-300); border-left: 1px solid var(--paper-300);
}
.stat {
  border-right: 1px solid var(--paper-300);
  border-bottom: 1px solid var(--paper-300);
  padding: 24px; background: var(--paper-100); min-height: 140px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.stat-value {
  font-size: 56px; font-weight: 700; letter-spacing: -0.04em;
  line-height: 1; color: var(--ink-900);
}
.stat-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500);
}
.stat.is-accent .stat-value { color: var(--accent-c); }
.stat .stat-value em { font-family: var(--font-italic); font-style: italic; font-weight: 400; }
.stat .stat-value.mono {
  font-family: var(--font-mono); font-size: 18px; letter-spacing: 0; line-height: 1.3;
}
.stat .stat-value.mono span { color: var(--ink-500); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  border: 1px solid var(--paper-200);
}
.contact-form {
  padding: 48px; display: flex; flex-direction: column; gap: 24px;
  background: var(--paper-50);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500);
}
.field input,
.field textarea {
  border: 1px solid var(--paper-300); background: #fff;
  font-family: var(--font-sans); font-size: 16px;
  padding: 12px 14px; color: var(--ink-900);
  outline: none; border-radius: 0;
  transition: border-color var(--dur-default) var(--ease);
}
.field input:focus,
.field textarea:focus { border-color: var(--ink-900); }
.field textarea { resize: vertical; min-height: 96px; }
.field .err {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal-red);
  margin-top: 4px;
}
.field input.invalid,
.field textarea.invalid { border-color: var(--signal-red); }

/* Honeypot — visually & semantically hidden, but kept in the layout
   stream so bots that read the form will fill it (and trigger silent
   drop on the server). Don't use display:none, some bots skip it. */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important; overflow: hidden !important;
  pointer-events: none !important;
}

/* Cloudflare Turnstile slot — reserves vertical space so the form
   doesn't jump when the widget mounts. */
.cf-turnstile { min-height: 65px; }

/* Form-level error (network / captcha / server) */
.form-error {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--signal-red);
  padding: 10px 14px;
  border: 1px solid var(--signal-red);
  background: rgba(220, 38, 38, 0.06);
}

/* Submit busy state */
.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.6;
  cursor: wait;
  pointer-events: none;
}

.topic-picker {
  display: flex; gap: 0; flex-wrap: wrap;
  border: 1px solid var(--paper-300);
}
.topic-picker button {
  flex: 1 1 auto; padding: 10px 14px;
  background: var(--white); color: var(--ink-700);
  font-family: var(--font-sans); font-size: 14px;
  border: 0; border-right: 1px solid var(--paper-300);
  cursor: pointer; transition: background var(--dur-default) var(--ease);
}
.topic-picker button:last-child { border-right: 0; }
.topic-picker button:hover { background: var(--paper-100); }
.topic-picker button.is-on { background: var(--ink-900); color: var(--paper-50); }

.contact-success {
  display: flex; flex-direction: column; gap: 16px; padding: 24px 0;
}
.contact-success .ok {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--meadow);
  display: flex; align-items: center; gap: 8px;
}
.contact-success .ttl {
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance;
}
.contact-success .echo { font-size: 14px; color: var(--ink-500); }
.contact-success .echo strong { color: var(--ink-900); }

.contact-meta {
  background: var(--ink-900); color: var(--paper-50);
  padding: 48px;
  display: flex; flex-direction: column; gap: 32px;
}
.contact-meta-block { display: flex; flex-direction: column; gap: 8px; }
.contact-meta-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-300);
}
.contact-meta-value {
  font-family: var(--font-mono); font-size: 15px; line-height: 1.5; color: var(--paper-50);
  text-decoration: none;
}
.contact-meta a.contact-meta-value { color: var(--digital-lime); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900); color: var(--paper-50);
  padding: 64px 0 32px;
  border-top: 1px solid var(--paper-200);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .glyph {
  font-size: 56px; font-weight: 700; letter-spacing: -0.05em;
  line-height: 1; color: var(--paper-50);
}
.footer-brand .lede {
  font-size: 14px; color: var(--paper-200); max-width: 280px; line-height: 1.5;
}
.footer-brand .status {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-300);
  display: flex; align-items: center; gap: 8px;
}
.footer-brand .status::before {
  content: ''; width: 6px; height: 6px;
  background: var(--meadow); border-radius: 999px;
}

.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper-300); margin: 0 0 16px; font-weight: 500;
}
.footer-col h4 + h4 { margin-top: 24px; }
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col a {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--paper-100); text-decoration: none;
  transition: color var(--dur-default) var(--ease);
}
.footer-col a:hover { color: var(--digital-lime); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-300);
}

/* ===========================================================
   Responsive — layered breakpoints
     768px  → mobile nav (hamburger), brand word hides
     960px  → grid layouts collapse to 1–2 cols
     600px  → small-phone tightening (paddings, type, single-col)
   =========================================================== */

/* ---- ≤ 768px: mobile nav (hamburger) ---- */
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .brand-mark .word, .brand-mark .sep { display: none; }

  /* nav-links collapses to dropdown popover anchored to .nav */
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(245, 241, 234, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--paper-200);
    box-shadow: 0 8px 24px -16px rgba(20, 19, 15, 0.18);
    padding: 8px 0;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 14px 24px;
    font-size: 16px;
    border-bottom: 1px solid var(--paper-200);
    min-height: 44px;
  }
  .nav-links a .dot { display: none; }
  .nav-links .nav-cta {
    margin: 12px 24px 8px;
    padding: 14px 18px;
    text-align: center;
    justify-content: center;
    min-height: 44px;
  }
}

/* ---- ≤ 960px: tablet/desktop-down layout collapse ---- */
@media (max-width: 960px) {
  .hero-grid     { grid-template-columns: 1fr; gap: 32px; }
  .svc-grid      { grid-template-columns: 1fr 1fr; }
  .svc-grid.svc-grid-3 { grid-template-columns: 1fr 1fr; }
  .ch-grid       { grid-template-columns: 1fr; }
  .about-grid    { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid  { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .section       { padding: 64px 0; }
  .section-head  { flex-direction: column; gap: 16px; align-items: flex-start; margin-bottom: 40px; }
  .section-lede  { text-align: left; }
  .section-title { font-size: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ---- ≤ 600px: small-phone tightening ---- */
@media (max-width: 600px) {
  .layout, .layout-wide { padding: 0 20px; }

  .section          { padding: 48px 0; }
  .section-title    { font-size: 32px; }
  .section-head     { margin-bottom: 32px; }

  /* Services grid stacks fully */
  .svc-grid, .svc-grid.svc-grid-3 { grid-template-columns: 1fr; }
  .svc-card { min-height: 0; padding: 24px 20px; gap: 24px; }

  /* Hero compresses */
  .hero h1   { font-size: clamp(32px, 11vw, 44px); }
  .hero-sub  { font-size: 17px; margin-top: 24px; }

  /* Channels compact strip → bigger tap area, lighter padding */
  .ch-mark   { width: 44px; height: 44px; font-size: 20px; }

  /* Contact form & meta — reduce paddings */
  .contact-form, .contact-meta { padding: 24px 20px; }

  /* Footer collapses to 1 column on very narrow screens */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
