/* ============================================================
   ZETRYL.CHEM — base.css
   Tokens · fonts · reset · shared components
   ============================================================ */

/* ---------- Self-hosted fonts ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/archivo-v25-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal; font-weight: 900; font-display: swap;
  src: url('../assets/fonts/archivo-v25-latin-900.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/ibm-plex-sans-v23-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/ibm-plex-sans-v23-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-v20-latin-500.woff2') format('woff2');
}

/* ---------- Design tokens (brand colors are LOCKED) ---------- */
:root {
  --green:    #136a33;
  --green-d:  #0d4e25;
  --green-l:  #1a8540;
  --orange:   #f49d21;   /* action color — inquiry path only */
  --orange-d: #d8861a;
  --ink:      #161615;
  --ink-2:    #1e1e1c;
  --paper:    #ffffff;
  --mist:     #f5f5f3;
  --line:     #e8e8e6;
  --text-mid: #4a4a48;
  --line-inv: rgba(255,255,255,0.16);

  --f-display: 'Archivo', 'Arial Black', sans-serif;
  --f-body:    'IBM Plex Sans', 'Segoe UI', sans-serif;
  --f-mono:    'IBM Plex Mono', 'Consolas', monospace;

  --nav-h: 68px;
  --r: 3px;                    /* near-square corners, lab aesthetic */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--f-body);
  font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Focus & accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: var(--r);
}
.on-dark :focus-visible { outline-color: #fff; }
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 2000;
  background: var(--ink); color: #fff;
  font-family: var(--f-mono); font-size: 0.8rem;
  padding: 10px 18px; border-radius: var(--r);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
section { position: relative; }

/* ---------- Type components ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: ''; width: 9px; height: 9px; background: var(--green);
  flex-shrink: 0;
}
.on-dark .eyebrow { color: rgba(255,255,255,0.75); }
.on-dark .eyebrow::before { background: rgba(255,255,255,0.75); }

.h-xl, .h-lg {
  font-family: var(--f-display); font-weight: 900;
  text-transform: uppercase; line-height: 1.02;
  letter-spacing: -0.01em; color: var(--ink);
}
.h-xl { font-size: clamp(2.9rem, 7.2vw, 6.1rem); }
.h-lg { font-size: clamp(1.85rem, 3.6vw, 2.9rem); margin: 14px 0 0; }
.h-lg em { font-style: normal; color: var(--green); }
.on-dark .h-lg { color: #fff; }

.lede {
  font-size: 1.02rem; color: var(--text-mid);
  line-height: 1.75; max-width: 600px; margin-top: 16px;
}
.on-dark .lede { color: rgba(255,255,255,0.72); }

.mono-note {
  font-family: var(--f-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-mid);
}

/* ---------- Buttons (orange = inquiry only) ---------- */
.btn-inquire {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: var(--ink);
  font-family: var(--f-mono); font-weight: 500;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 30px; border: none; border-radius: var(--r);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-inquire svg { transition: transform 0.25s var(--ease); }
.btn-inquire:hover {
  background: var(--orange-d); transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(244,157,33,0.35);
}
.btn-inquire:hover svg { transform: translateX(4px); }

.link-quiet {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-weight: 500;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); padding: 16px 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.link-quiet:hover { color: var(--green); border-color: var(--green); }

/* ---------- Scroll-reveal primitive ---------- */
.rv {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--rv-delay, 0s);
}
.rv.on { opacity: 1; transform: none; }
