/* Metere Industries palette: Carbon, Signal Orange, Graphite, Mist, Paper */
:root {
  --carbon: #0E1116;
  --signal: #FF5A1F;
  --graphite: #5A5F69;
  --mist: #B9BCC3;
  --paper: #F4F3EF;

  --bg: var(--paper);
  --surface: #FFFFFF;
  --text: var(--carbon);
  --muted: var(--graphite);
  --line: #D6D6D2;
  --accent: var(--signal);
  --logo-sub: var(--graphite);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--carbon);
    --surface: color-mix(in srgb, var(--graphite) 12%, var(--carbon));
    --text: var(--paper);
    --muted: var(--mist);
    --line: color-mix(in srgb, var(--graphite) 45%, var(--carbon));
    --logo-sub: var(--mist);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.label {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
}
.label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { height: 34px; width: auto; display: block; color: var(--text); }
.brand { display: block; text-decoration: none; }

.nav { display: flex; gap: 32px; }
.nav a {
  font: 500 13px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .15s;
}
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: clamp(80px, 14vw, 160px) 0 clamp(64px, 10vw, 120px); }
.hero h1 {
  font-size: clamp(34px, 5.5vw, 64px);
  max-width: 13ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  max-width: 58ch;
  margin: 32px 0 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--text);
  color: var(--bg);
  font: 600 14px/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--accent); color: var(--carbon); }

/* Sections */
section { padding: clamp(72px, 10vw, 120px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head > p { margin: 0; color: var(--muted); font-size: 18px; }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
}
.pillar { padding: 40px 32px; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar .num {
  font: 500 13px/1 var(--font-mono);
  color: var(--accent);
  display: block;
  margin-bottom: 28px;
}
.pillar h3 { font-size: 24px; margin-bottom: 14px; }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }

/* Expertise */
.areas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
}
.areas li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 40px 1fr;
}
.areas li span { font: 500 13px/1.9 var(--font-mono); color: var(--muted); }
.areas h3 { font-size: 20px; margin-bottom: 6px; }
.areas p { margin: 0; color: var(--muted); font-size: 16px; }
.areas li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Approach */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.principles h3 { font-size: 20px; margin-bottom: 10px; }
.principles h3::before {
  content: "";
  display: block;
  width: 32px; height: 3px;
  background: var(--accent);
  margin-bottom: 20px;
}
.principles p { margin: 0; color: var(--muted); font-size: 16px; }

/* Ventures */
.ventures {
  background: var(--carbon);
  color: var(--paper);
  border-top: 0;
  --muted: var(--mist);
  --line: color-mix(in srgb, var(--graphite) 45%, var(--carbon));
}
.ventures .section-head { margin-bottom: 0; }
.ventures em { font-style: normal; color: var(--signal); }

/* Contact */
.contact { text-align: left; }
.contact h2 { font-size: clamp(36px, 6vw, 68px); max-width: 16ch; margin-bottom: 32px; }
.contact p { color: var(--muted); max-width: 56ch; margin: 0 0 40px; font-size: 18px; }
.email {
  font: 500 clamp(16px, 4.2vw, 28px)/1.3 var(--font-display);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.email:hover { color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font: 400 13px/1.5 var(--font-mono);
  color: var(--muted);
}

/* Responsive */
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .areas { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .logo { height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Founder */
.bio p { margin: 0 0 16px; color: var(--muted); font-size: 18px; }
.bio p:last-child { margin-bottom: 0; }
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.facts div { padding: 24px 24px 0 0; }
.facts dt {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.facts dd { margin: 0; font-size: 16px; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
}

.portrait {
  margin: 0 0 28px;
  max-width: 320px;
  position: relative;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(.15);
}
.portrait::after {
  content: "";
  position: absolute;
  right: -10px; bottom: -10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
}
#founder .role {
  margin: 12px 0 0;
  font: 500 13px/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 860px) {
  .portrait { max-width: 240px; }
}

/* Hero logo */
.hero-logo {
  display: block;
  width: min(100%, 640px);
  height: auto;
  color: var(--text);
  margin: 0 auto clamp(48px, 7vw, 80px);
}

/* Enclawed callout */
.bio a, .site-footer a {
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.bio a:hover, .site-footer a:hover { color: var(--accent); }

.also {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 8px 32px;
  margin-top: 56px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  text-decoration: none;
  transition: border-color .15s;
}
.also:hover { border-color: var(--accent); }
.also-label {
  grid-column: 1 / -1;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.also-name { font: 700 24px/1.2 var(--font-display); letter-spacing: -.02em; }
.also-desc { color: var(--muted); font-size: 16px; }
.also-link {
  font: 500 13px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
@media (max-width: 860px) {
  .also { grid-template-columns: 1fr; padding: 24px; }
}

/* Who we work with */
.partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 72px;
}
.partner {
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}
.partner-tag {
  display: block;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.partner h3 { font-size: 24px; margin-bottom: 14px; }
.partner p { margin: 0; color: var(--muted); font-size: 16px; }

.engage-title { font-size: 24px; margin-bottom: 8px; }
.engage {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
}
.engage li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.engage strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 17px/1.3 var(--font-display);
  margin-bottom: 8px;
}
.engage strong::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.engage span { color: var(--muted); font-size: 15px; display: block; }
.engage a { color: var(--accent); }
@media (max-width: 860px) {
  .partners { grid-template-columns: 1fr; }
  .engage { grid-template-columns: 1fr; }
}
@media (min-width: 641px) and (max-width: 1000px) {
  .nav { gap: 20px; }
}
