/* =========================================================
   INDUS, site-wide design system
   Cool paper / technical black + a single light-violet accent
   Tobias display · Switzer body · Fragment Mono labels
   ========================================================= */

:root {
  --bg:        #F2F0EC;
  --bg-sink:   #E8E5DF;
  --bg-steel:  #1B1C1E;
  --ink:       #0E0F10;
  --ink-2:     #46474A;
  --ink-3:     #84858A;
  --line:      rgba(14, 15, 16, 0.18);
  --line-soft: rgba(14, 15, 16, 0.08);
  --accent:    #8B6FBE;          /* darker violet, used for text emphasis */
  --accent-hl: #D6C5F1;          /* light violet, hover fills, pip, decoration */
  --accent-2:  rgba(167, 139, 212, 0.18);
}

:root {
  --sans:    "Switzer", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Tobias", "Switzer", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:    "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter:  clamp(20px, 4vw, 56px);
  --col-max: 1440px;
  --hero-title-size: clamp(40px, 5.4vw, 88px);
  --hero-title-line: 0.96;
  --hero-title-track: -0.035em;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "kern", "liga", "ss01", "ss02";
}
::selection { background: var(--accent-hl); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em.alert {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
  border-bottom: 0;
  padding: 0;
}
h1, h2, h3, p, li {
  text-align: left;
  text-indent: 0;
  text-wrap: normal;
}

.wrap {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@keyframes binaryBlink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.18; }
}

/* ============ NAV ============ */
.nav {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 55;
}
.nav-inner {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand-logo { height: 24px; width: auto; opacity: 0.95; }
.brand-sep { display: inline-block; width: 1px; height: 22px; background: var(--line); }
.brand-mark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.06em;
}
.brand-mark .wx {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.18em;
  margin-left: 8px;
  color: var(--ink-3);
  vertical-align: 2px;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--ink-2);
}
.nav-links a { position: relative; padding: 4px 0; transition: color 160ms; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.on { color: var(--ink); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  height: 36px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.cta:hover { background: var(--accent-hl); color: var(--ink); border-color: var(--accent-hl); }
.cta .arr { font-size: 14px; line-height: 1; }
.cta.ghost { background: transparent; color: var(--ink); }
.cta.ghost:hover { background: var(--accent-hl); border-color: var(--accent-hl); color: var(--ink); }

/* ============ COMMON SECTION HEAD ============ */
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.section-rail { padding-top: 6px; }
.section-rail-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 3.2vw, 52px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin: 0 0 14px -0.04em;
}
.section-rail-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.15;
  color: var(--ink);
  max-width: 12ch;
}
.section-lead {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  max-width: 22ch;
}
.section-lead em.alert {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
  border-bottom: 0;
  padding: 0;
}
.section-sub {
  margin-top: clamp(20px, 2.4vw, 32px);
  max-width: 60ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.section-sub.body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: 0;
}
.section-sub.body b { color: var(--ink); font-weight: 500; }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; }
  .section-rail { display: flex; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .section-rail-num { font-size: 34px; margin: 0; }
}

/* ============ PAGE HERO (for sub-pages) ============ */
.pg-hero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.pg-hero .crumb {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(28px, 3.5vw, 44px);
}
.pg-hero .crumb b { color: var(--ink); font-weight: 400; }
.pg-hero .crumb .sep { color: var(--ink-3); opacity: 0.45; }
.pg-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--hero-title-size);
  line-height: var(--hero-title-line);
  letter-spacing: var(--hero-title-track);
  color: var(--ink);
  margin: 0;
  max-width: 18ch;
}
.pg-hero h1 em {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
}
.pg-hero h1 em.alert {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
  border-bottom: 0;
  padding: 0;
}
.pg-hero .dek {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 64ch;
  margin: clamp(24px, 3vw, 36px) 0 0;
}
.pg-hero .dek b { color: var(--ink); font-weight: 500; }

/* ============ FOOTER, minimal OG-style ============ */
.foot {
  padding: clamp(56px, 7vw, 96px) 0 24px;
  background: var(--bg);
}
.foot-top { display: flex; flex-direction: column; gap: 22px; padding-bottom: clamp(36px, 5vw, 56px); }
.foot-lockup { display: flex; align-items: center; gap: 18px; }
.foot-lockup img { height: 22px; width: auto; opacity: 0.95; }
.foot-lockup .sep {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: var(--line);
}
.foot-lockup .name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foot-lockup .name .wx {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.18em;
  margin-left: 8px;
  color: var(--ink-3);
  vertical-align: 2px;
}
.foot-tag {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 48ch;
}
.foot-bot {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Hover lift on CTA buttons (subtle, 1px translate) */
.cta { will-change: transform; }
.cta:hover { transform: translateY(-1px); }
