@font-face {
  font-family: 'Wyatt Sans';
  src: url('fonts/WyattSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --carnelian: #B31B1B;
  --ink: #1F1A17;
  --bone: #EEEDF0;
  --stone: #5A514A;
  --sand: #DEDCE2;
  --line: #D4D2D9;
  --led: #4C9A73;
  --display: 'Wyatt Sans', 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Wyatt Sans', 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --focus: #1F1A17;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.band { padding: clamp(72px, 11vw, 136px) 0; }
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 10;
  background: var(--bone); color: var(--ink); padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }
.todo { background: #FFE94D; color: #1F1A17; padding: 0 4px; font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 24px; min-height: 48px;
  font: 600 1rem/1.2 var(--text); text-decoration: none; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.btn-bone { background: var(--bone); color: var(--ink); }
.btn-bone:hover { background: var(--sand); }
.btn-line { border-color: var(--bone); color: var(--bone); }
.btn-line:hover { background: var(--bone); color: var(--ink); }
.btn-red { background: var(--carnelian); color: var(--bone); }
.btn-red:hover { background: #8E1414; }

/* ---------- Hero (home page only) ---------- */
.hero { background: var(--ink); position: relative; isolation: isolate; overflow: hidden; color: var(--bone); --focus: #EEEDF0; min-height: 100vh; display: flex; flex-direction: column; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,10,9,.55) 0%, rgba(20,10,9,0) 24%),
    linear-gradient(90deg, rgba(20,10,9,.82) 0%, rgba(20,10,9,.55) 48%, rgba(20,10,9,.18) 100%),
    linear-gradient(0deg, rgba(20,10,9,.5) 0%, rgba(20,10,9,0) 30%);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand svg { width: 26px; height: 36px; flex: none; }
.brand-name { font-weight: 600; font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1.25; }
.topnav { display: flex; align-items: center; gap: 28px; font-size: .9375rem; font-weight: 500; }
.topnav a { text-decoration: none; padding: 6px 0; position: relative; }
.topnav a:not(.topnav-join)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bone);
  transform: scaleX(0); transform-origin: center; transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.topnav a:not(.topnav-join):hover::after,
.topnav a:not(.topnav-join):focus-visible::after,
.topnav a.is-active:not(.topnav-join)::after { transform: scaleX(1); }
.topnav .topnav-join { border: 2px solid var(--bone); padding: 8px 16px; }
.topnav .topnav-join:hover { background: var(--bone); color: var(--ink); }
.hero-body { flex: 1; display: flex; align-items: center; padding: 32px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 {
  margin: 0 0 28px; font-family: var(--display); font-weight: 400;
  font-size: clamp(3.75rem, 10.5vw, 8.75rem); line-height: .93; letter-spacing: -.02em;
}
.hero h1 span { display: block; }
.hero-lede { margin: 0 0 36px; max-width: 32em; font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.mark { width: 100%; max-width: 340px; justify-self: end; }
.mark svg { width: 100%; height: auto; overflow: visible; }

/* the one moment: the E builds itself, then its lights come on */
.bar { transform-box: fill-box; transform-origin: left center; animation: bar-in .7s cubic-bezier(.2,.7,.2,1) both; }
.bar.spine { transform-origin: center top; animation-name: spine-in; animation-delay: 0s; }
.bar.b1 { animation-delay: .25s; }
.bar.b2 { animation-delay: .45s; }
.bar.b3 { animation-delay: .65s; }
.light { animation: light-on .3s ease-out both; }
.light.l1 { animation-delay: 1.1s; }
.light.l2 { animation-delay: 1.3s; }
.light.l3 { animation-delay: 1.5s; }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes spine-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes light-on { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Subpage header (slim bar, every other page) ---------- */
.subhead { background: var(--carnelian); color: var(--bone); --focus: #EEEDF0; }

/* ---------- Page title (eyebrow label above a page's main content) ---------- */
.eyebrow {
  margin: 0 0 20px; font-weight: 600; font-size: .8125rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--carnelian);
}

/* ---------- Mission ---------- */
.mission-text {
  margin: 0; max-width: 27em; font-family: var(--display); font-weight: 400;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.22; letter-spacing: -.01em;
}

/* ---------- What we do ---------- */
.what { --focus: #1F1A17; }
.section-title {
  margin: 0 0 clamp(36px, 6vw, 64px); font-family: var(--display); font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05; letter-spacing: -.015em;
}
.do-list { list-style: none; margin: 0; padding: 0; }
.do-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.do-list li:last-child { border-bottom: 1px solid var(--line); }
.do-list h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; }
.do-list p { margin: 0; max-width: 34em; color: var(--stone); }

/* ---------- About / the question ---------- */
.question { background: var(--ink); color: var(--bone); --focus: #EEEDF0; }
.question-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.question h2 {
  margin: 0 0 24px; font-family: var(--display); font-weight: 400;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1; letter-spacing: -.02em;
}
.question .eyebrow { color: var(--sand); }
.question-lede { margin: 0; max-width: 28em; color: #D9CFBF; font-size: 1.125rem; }
.rack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.unit {
  display: flex; align-items: center; gap: 18px; padding: 18px 20px;
  background: #2A2621; border: 1px solid #3A342E;
}
.unit::before {
  content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--led); box-shadow: 0 0 0 4px rgba(76, 154, 115, .18);
}
.unit strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.25rem; line-height: 1.2; }
.unit span { display: block; color: #D9CFBF; font-size: .975rem; line-height: 1.45; }

/* ---------- Join ---------- */
.join { --focus: #1F1A17; }
.join-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.join h2 { margin: 0 0 20px; font-family: var(--display); font-weight: 400; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05; letter-spacing: -.015em; }
.join-lede { margin: 0 0 32px; max-width: 28em; font-size: 1.125rem; }
.facts { margin: 0; padding: 28px; background: var(--sand); }
.facts dt { font-weight: 600; margin: 0 0 2px; }
.facts dd { margin: 0 0 20px; color: var(--stone); }
.facts dd:last-child { margin-bottom: 0; }
.facts a { color: var(--ink); text-decoration-color: var(--carnelian); text-underline-offset: 3px; }
.facts a:hover { color: var(--carnelian); }
.facts { border-radius: 6px; }
.apply { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.btn-apply { display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; font-size: 1.0625rem; border-radius: 6px; }
.btn-apply svg { transition: transform .15s ease; }
.btn-apply:hover svg { transform: translateX(4px); }
.apply-note { margin: 0; font-size: .875rem; color: var(--stone); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; --focus: #1F1A17; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot .brand svg { width: 22px; height: 30px; }
.foot .brand-name { color: var(--ink); }
.foot p { margin: 0; color: var(--stone); font-size: .9375rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .9375rem; font-weight: 500; }
.foot-links a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.foot-links a:hover { color: var(--carnelian); border-bottom-color: var(--carnelian); }
@media (max-width: 640px) { .foot-row { flex-direction: column; align-items: flex-start; } }

/* ---------- Coffee chat ---------- */
.coffee { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--bone); }
.coffee-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 20%;
  filter: blur(2.164px) brightness(.55) saturate(1.05); transform: scale(1.03); z-index: 0;
}
.coffee-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,26,23,.35), rgba(31,26,23,.78)); z-index: 1; }
.coffee-inner { position: relative; z-index: 2; text-align: center; padding: clamp(64px, 10vw, 112px) 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.coffee-inner h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.08; letter-spacing: -.015em; }
.coffee-inner p { margin: 0; max-width: 34em; color: #E6DDCF; font-size: 1.0625rem; }
.coffee-inner .btn { margin-top: 10px; }

.page-team { background: #FFFFFF; }
.exec-head { padding: clamp(32px, 5vw, 56px) 0 clamp(32px, 4.5vw, 56px); }
.exec-head .section-title { margin: 0; }
.exec-heading { display: flex; align-items: center; gap: .3em; }
.exec-head .wrap { max-width: none; margin: 0; padding-left: calc(8px + clamp(20px, 2.5vw, 28px)); padding-right: calc(8px + clamp(20px, 2.5vw, 28px)); }
/* ---------- E-board / Team (Palantir-style alternating rows) ---------- */
.exec { --exec-gap: 8px; padding: var(--exec-gap); display: flex; flex-direction: column; gap: var(--exec-gap); }
.exec-row {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--exec-gap);
  min-height: clamp(360px, 42vw, 520px);
}
.exec-row.reverse { flex-direction: row-reverse; }
.exec-info {
  flex: 1 1 420px; background: #EEEDF0;
  border-radius: 6px;
  padding: clamp(20px, 2.5vw, 28px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.exec-name { margin: 0 0 6px; font-family: var(--text); font-weight: 400; font-size: clamp(1.286rem, 2.5vw, 1.8375rem); line-height: 1.15; letter-spacing: 0; }
.exec-title { margin: 0; font-size: 1rem; color: var(--stone); font-weight: 500; }
.exec-bio { margin: 0; max-width: 34em; color: var(--stone); font-size: 1rem; line-height: 1.65; }
.exec-photo-wrap {
  flex: 1 1 420px; display: flex; align-items: stretch; justify-content: stretch;
}
.exec-photo {
  width: 100%; aspect-ratio: 4 / 5;
  border-radius: 6px; overflow: hidden; background: var(--ink);
}
.exec-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: grayscale(1) contrast(1.05);
}

@media (max-width: 860px) {
  .exec-row, .exec-row.reverse { flex-direction: column-reverse; min-height: 0; }
  .exec-info, .exec-photo-wrap { flex: 0 0 auto; width: 100%; }
  .exec { gap: 32px; }
  .exec-info { gap: 14px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .mark { max-width: 180px; justify-self: start; }
  .do-list li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .question-grid, .join-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-body { padding-bottom: 72px; }
  .topbar { flex-wrap: wrap; row-gap: 14px; }
  .topnav { flex-wrap: wrap; gap: 12px 20px; font-size: .875rem; }
}
@media (max-width: 480px) {
  .brand-name { max-width: 9em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar, .light { animation: none; }
  .btn { transition: none; }
  .topnav a::after { transition: none; }
}

/* ---------- Contact form ---------- */
.contact .facts { margin-top: 8px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; background: #FFFFFF; border-radius: 6px; padding: clamp(24px, 3.5vw, 36px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: .9375rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--text); color: var(--ink);
  background: var(--bone); border: 1px solid transparent; border-radius: 6px; padding: 12px 14px;
  transition: border-color .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%231F1A17' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--carnelian); background-color: #FFFFFF; }
.contact-form .btn-apply { align-self: flex-start; cursor: pointer; }
.contact-form .btn-apply:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: .9375rem; min-height: 1.4em; color: var(--stone); }
.form-status.is-ok { color: #2F6F4F; }
.form-status.is-err { color: var(--carnelian); }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
