/* ============================================
   Büchi's Subcontracting — One Pager
   Tokens · Reset · Globals
   ============================================ */

:root {
  /* Palette */
  --black: #000000;
  --navy: #242B3D;
  --navy-2: #1B2030;
  --white: #FFFFFF;
  --off-white: #F4F4F2;
  --line-light: rgba(0, 0, 0, 0.08);
  --line-dark: rgba(255, 255, 255, 0.10);
  --muted-light: rgba(0, 0, 0, 0.62);
  --muted-dark: rgba(255, 255, 255, 0.66);

  /* Red — adjustable via tweak (logo red: #EF1818) */
  --red: #EF1818;
  --red-hover: #C91212;
  --ink: #19191E;

  /* Type */
  --font-display: "Space Grotesk", "Anton", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Rhythm */
  --section-y: clamp(80px, 9vw, 140px);
  --container: 1240px;
  --gutter: clamp(24px, 4vw, 40px);
  --radius: 4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Typography */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(48px, 7.5vw, 104px); line-height: 0.96; letter-spacing: -0.035em; }
h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; }
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }

p { margin: 0; text-wrap: pretty; }

.lead {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--muted-light);
  max-width: 56ch;
}
.dark .lead { color: var(--muted-dark); }

/* Sections */
section {
  position: relative;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.dark { background: var(--navy); color: var(--white); }
.black { background: var(--black); color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  min-height: 48px;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-hover); }
.btn .arrow {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 18px;
  vertical-align: middle;
  overflow: hidden;
  text-indent: -9999px;
  line-height: 1;
}
.btn .arrow::before,
.btn .arrow::after {
  content: "↑";
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  line-height: 18px;
  text-align: center;
  text-indent: 0;
  font-size: 16px;
}
.btn .arrow::before { top: 0; }
.btn .arrow::after  { top: 18px; }
.btn:hover .arrow::before,
.btn:hover .arrow::after { animation: liftCabin 1.4s linear infinite; }
@keyframes liftCabin {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-18px); }
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.7); }

.btn-ghost-dark {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(0, 0, 0, 0.25);
}
.btn-ghost-dark:hover { background: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.5); }

/* Section header (eyebrow + h2) */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 64px;
}

/* Utility */
.divider-thin {
  height: 1px;
  background: var(--line-light);
  width: 100%;
}
.dark .divider-thin { background: var(--line-dark); }

/* Decorative number tag */
.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  opacity: 0.5;
}

/* Grid helpers */
.grid {
  display: grid;
  gap: 32px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

/* Image placeholder */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,0.05) 0,
      rgba(0,0,0,0.05) 2px,
      transparent 2px,
      transparent 12px),
    #E5E4E1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  padding: 16px;
  border-radius: 2px;
  overflow: hidden;
}
.placeholder.dark-ph {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.05) 0,
      rgba(255,255,255,0.05) 2px,
      transparent 2px,
      transparent 12px),
    #2D3447;
  color: rgba(255,255,255,0.6);
}
.placeholder::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(0,0,0,0.18);
  pointer-events: none;
}
.placeholder.dark-ph::before { border-color: rgba(255,255,255,0.18); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
}
.reveal.in {
  animation: fadeUp 700ms cubic-bezier(.2,.7,.2,1) forwards;
}
