/* JAFX simple site — layout on top of tokens.css */

body { background: var(--bg-0); }

/* The .zone::after glow (tokens.css) hangs 220px past the section edge,
   which widens the page on mobile. Clip horizontal overflow at the root.
   `clip` avoids creating a scroll container (keeps the sticky nav working);
   `hidden` is the fallback for older browsers. */
html, body { overflow-x: hidden; overflow-x: clip; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg-0) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-nav .logo img { height: 18px; display: block; }
.site-nav nav { display: flex; gap: 28px; align-items: center; }
.site-nav nav a {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-1); transition: color .15s ease;
}
.site-nav nav a:hover, .site-nav nav a[aria-current="page"] { color: var(--text-0); }
.lang-switch {
  display: flex; gap: 10px; align-items: center;
  margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--line);
}
.lang-switch a {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; color: var(--text-3); transition: color .15s ease;
}
.lang-switch a:hover { color: var(--text-1); }
.lang-switch a.lang-active { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 8vw, 110px) 0 clamp(48px, 6vw, 80px);
  text-align: center;
}
.hero .mesh-stage {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero .mesh-stage canvas { width: 100% !important; height: 100% !important; mix-blend-mode: screen; opacity: 0.55; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  margin: 0 auto; max-width: 820px;
  font-size: clamp(44px, 7vw, 92px);
}
.hero h1 em { color: var(--accent); font-style: italic; font-weight: 300; }
.hero .sub {
  margin: 24px auto 0; max-width: 640px;
  color: var(--text-1); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6;
}
.hero-caption {
  margin: 28px 0 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-2);
}
.hero-caption strong { color: var(--text-1); font-weight: 500; }

/* Section labels: code-comment style. Slashes take the zone color,
   the label text stays muted. Overrides the dash line from tokens.css. */
.zone-eyebrow { gap: 10px; color: var(--text-2); }
.zone-eyebrow::before {
  content: "//";
  width: auto; height: auto; background: none;
  font-size: inherit; line-height: 1;
  color: var(--za, var(--accent));
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 48px); margin: 14px 0 0; }
.section-head p { color: var(--text-1); font-size: 15px; line-height: 1.6; margin: 18px 0 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.card { padding: 32px; background: var(--bg-1); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.card:last-child { border-right: none; }
.card .card-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; margin-bottom: 14px; color: var(--accent); }
.card h3 { font-family: var(--font-display); font-size: 22px; margin: 0; color: var(--text-0); line-height: 1.2; }
.card p { color: var(--text-2); font-size: 14px; line-height: 1.55; margin: 12px 0 0; flex: 1; }
.card a.card-link { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent); margin-top: 18px; }

/* Company section — narrative + typographic figures */
.company-cols {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(48px, 6vw, 96px); align-items: start;
}
.company-prose h2 { font-size: clamp(30px, 3.6vw, 48px); margin: 14px 0 0; }
.company-prose p { color: var(--text-1); font-size: 15px; line-height: 1.7; margin: 20px 0 0; }
.company-stats { display: flex; flex-direction: column; }
.stat { padding: 22px 0; border-top: 1px solid var(--line); }
.stat:last-child { border-bottom: 1px solid var(--line); }
.stat-value { font-size: clamp(24px, 2.4vw, 32px); color: var(--text-0); }
.stat-label {
  margin-top: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-2);
}

/* ---------- Legal prose ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 34px); margin: 48px 0 0; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-1); font-size: 15px; line-height: 1.7; }
.prose p { margin: 16px 0 0; }
.prose ul { margin: 16px 0 0; padding-left: 20px; }
.prose strong { color: var(--text-0); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.contact-cell { padding: 32px; background: var(--bg-1); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-cell:nth-child(2n) { border-right: none; }
.contact-cell:nth-last-child(-n+2) { border-bottom: none; }
.contact-cell .card-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; margin-bottom: 12px; color: var(--accent); }
.contact-cell .big { font-family: var(--font-display); font-size: 21px; color: var(--text-0); line-height: 1.3; word-break: break-word; }
.contact-cell p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; margin: 10px 0 0; }
.contact-cell a { color: inherit; }
.contact-cell a:hover { color: var(--accent); }

/* ---------- Contact form ---------- */
.section-head-center {
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.section-head-center p { margin-left: auto; margin-right: auto; }
.contact-form {
  max-width: 760px; margin: 0 auto;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px); background: var(--bg-1);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label {
  display: block; margin-bottom: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-2);
}
.form-field input, .form-field textarea {
  width: 100%;
  background: var(--bg-0); border: 1px solid var(--line);
  color: var(--text-0); padding: 12px 14px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 13px;
}
.form-field textarea { font-family: var(--font-body); font-size: 14px; resize: vertical; }
.contact-form .btn { width: 100%; margin-top: 20px; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: clamp(64px, 8vw, 110px) 0; }
.cta-band h2 { font-size: clamp(32px, 4.4vw, 60px); margin: 0; }
.cta-band p { color: var(--text-1); max-width: 560px; margin: 20px auto 0; font-size: 15px; line-height: 1.6; }
.cta-band .cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); }
.footer-top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px;
  padding: clamp(48px, 6vw, 72px) 0 40px;
}
.footer-top .logo img { height: 16px; display: block; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-3); margin: 0 0 16px;
}
.footer-col p, .footer-col address {
  font-style: normal; color: var(--text-1); font-size: 13.5px; line-height: 1.7; margin: 0;
}
.footer-col a { color: var(--text-1); display: block; padding: 4px 0; font-size: 13.5px; }
.footer-col a:hover { color: var(--text-0); }
.footer-legal { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-legal p { color: var(--text-2); font-size: 12px; line-height: 1.7; margin: 0 0 14px; max-width: 1100px; }
.footer-legal p strong { color: var(--text-1); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom span, .footer-bottom a {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--text-3); text-transform: uppercase;
}
.footer-bottom a:hover { color: var(--text-1); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .card { border-right: none; border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: none; }
  .company-cols { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-cell { border-right: none !important; border-bottom: 1px solid var(--line) !important; }
  .contact-cell:last-child { border-bottom: none !important; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .site-nav nav { gap: 18px; }
}
