/* Kontur Think Tank — design tokens: near-monochrome, ink on off-white,
   single fixed accent, hairline rules only. See design/ for the original brief. */

:root {
  --ink: #111111;
  --ink-faint: rgba(17, 17, 17, 0.22);
  --ink-mid: rgba(17, 17, 17, 0.35);
  --ink-muted: rgba(17, 17, 17, 0.62);
  --ink-divider: rgba(17, 17, 17, 0.28);
  --paper: #FAFAF8;
  --accent: #F02C10;
}

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

html, body { margin: 0; padding: 0; background: var(--paper); }

body {
  font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
::selection { background: var(--ink); color: var(--paper); }
input, select, textarea, button { font-family: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 20px;
  text-decoration: underline;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 96px);
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 27px;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  text-decoration: none;
}
.brand-name { font-size: 21px; font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.brand-sub {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.stack-link {
  display: inline-grid;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
}
.stack-link .ghost, .lang-switch .ghost { grid-area: 1 / 1; font-weight: 700; visibility: hidden; }
.stack-link .visible, .lang-switch .visible { grid-area: 1 / 1; }
.stack-link:hover { font-weight: 700; }

.lang-switch-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-left: 28px;
  border-left: 1px solid var(--ink-divider);
}
.lang-switch {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  display: inline-grid;
}
.lang-switch:hover { font-weight: 700; }

/* ---- Section scaffolding ---- */

.section {
  border-top: 1px solid var(--ink);
  padding: clamp(48px, 7vw, 88px) 0;
  scroll-margin-top: 96px;
}
.section--about {
  padding: clamp(64px, 10vw, 132px) 0 clamp(56px, 8vw, 104px);
  border-top: none;
}
.section--contact { padding-bottom: clamp(64px, 8vw, 104px); }

.section-flex {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
}

.section-label-col { flex: 0 0 200px; }
.section-label-sticky { position: sticky; top: 120px; }
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-label--block { margin-bottom: clamp(32px, 4vw, 56px); }
.accent-mark { width: 7px; height: 7px; background: var(--accent); flex: none; display: inline-block; }

.section-body {
  flex: 1 1 520px;
  max-width: 840px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---- About ---- */

.lead {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.28;
  letter-spacing: -0.025em;
  font-weight: 500;
  text-wrap: pretty;
}
.context {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  max-width: 680px;
  text-wrap: pretty;
}
.mission-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-faint);
  margin-top: 12px;
}
.mission-label {
  flex: 0 0 120px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 4px;
}
.mission-text { margin: 0; flex: 1 1 420px; max-width: 640px; font-size: 17px; line-height: 1.6; text-wrap: pretty; }

/* ---- Workflow ---- */

.workflow-list { flex: 1 1 520px; max-width: 840px; display: flex; flex-direction: column; }
.workflow-item {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
  padding: 36px 0;
  border-top: 1px solid var(--ink-faint);
}
.workflow-item:first-child { padding-top: 0; border-top: none; padding-bottom: 36px; }
.workflow-item:last-child { padding-bottom: 0; }
.workflow-num {
  flex: 0 0 auto;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
.workflow-copy { flex: 1 1 380px; max-width: 640px; }
.workflow-title { margin: 0 0 10px; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.workflow-text { margin: 0; font-size: 17px; line-height: 1.6; text-wrap: pretty; }

/* ---- Leadership ---- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(32px, 4vw, 56px);
}
.team-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: var(--ink-faint);
}
.team-name { margin: 20px 0 4px; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.team-name--tight { margin: 20px 0 14px; }
.team-role { font-size: 13px; letter-spacing: 0.04em; color: var(--ink-muted); margin-bottom: 14px; }
.team-bio { margin: 0; font-size: 15px; line-height: 1.6; text-wrap: pretty; }

/* ---- Contact ---- */

.contact-heading {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 620px;
  text-wrap: pretty;
}
.contact-email { margin: 20px 0 clamp(36px, 4vw, 52px); font-size: 17px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px 32px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.field-error {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ink-muted);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 12px;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink-mid);
  border-radius: 2px;
  outline: none;
  appearance: none;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 16px) center, calc(100% - 11px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field textarea { line-height: 1.5; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.field input:invalid,
.field select:invalid,
.field textarea:invalid { box-shadow: none; }

.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
.submit-btn {
  padding: 14px 30px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
}
.submit-btn:hover { background: var(--paper); color: var(--ink); }
.form-status { font-size: 14px; color: var(--ink-muted); }
.form-status[hidden] { display: none; }

/* ---- Footer ---- */

.site-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--ink);
  padding: 28px 0 40px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.footer-meta { display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px); }

/* ---- Motion: fade-in on scroll, off by default until observed ---- */

/* One-time fade on page load — not scroll-triggered, so content already in
   the DOM is never gated behind a scroll/intersection event a crawler or
   screenshot tool won't fire. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes page-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
  main { animation: page-fade-in 0.5s ease both; }
}

/* ---- Responsive ---- */

@media (max-width: 720px) {
  .section-label-col { flex: 1 1 100%; }
  .section-label-sticky { position: static; }
  .mission-label { flex-basis: 100%; }
}
