:root {
  --red: #b92627;
  --red-dark: #8e1c1d;
  --orange: #f49433;
  --ink: #1a1a1a;
  --muted: #5c5854;
  --line: #e6e0d8;
  --paper: #f7f4ef;
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 77px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 16px/1.5 Outfit, "Segoe UI", sans-serif;
  overflow-x: clip;
}

img { max-width: 100%; }

a { color: inherit; }

h1, h2, h3, p { overflow-wrap: break-word; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p { margin: 0; }

button, input, select, textarea { font: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
}

.skip:focus { top: 8px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  min-height: 76px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  line-height: 0;
}

.brand img {
  height: 46px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover { color: var(--red); }

.menu {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.hero {
  background: #101418;
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 36px;
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.08;
}

.hero h1 span { display: block; }

.hero p { color: rgba(255, 255, 255, 0.88); font-size: 18px; }

.hero-photo {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: 30% center;
  border-radius: 16px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .kicker { color: var(--orange); margin: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn:hover { background: var(--red-dark); }

.btn:disabled { opacity: 0.65; cursor: wait; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
}

.btn-ghost:hover { background: #fff; color: #141414; }

.facts {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.facts p {
  margin: 0;
  padding: 18px 10px;
  text-align: center;
}

.facts strong, .facts span { display: block; }

.facts span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.story {
  width: min(46rem, 100%);
  margin-inline: auto;
}

.story h2 {
  margin: 0 0 16px;
  font-size: 34px;
  text-align: center;
}

.story p { margin: 0 0 14px; }

.story p:last-child { margin-bottom: 0; }

.section { padding: 56px 0; }

.section.paper,
.news-band { background: var(--paper); }

.section-head { margin-bottom: 28px; text-align: center; }

.section-head h2 { font-size: 34px; }

.lead {
  max-width: 40rem;
  margin: 12px auto 0;
  color: var(--muted);
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: start;
}

.split h2,
.relation h2,
.steps h3,
.directory h3,
.card h3 { font-size: 28px; }

.stack { display: grid; gap: 14px; }

.stack > * { margin: 0; }

.relation {
  background: var(--paper);
  border-radius: 16px;
  padding: 24px;
}

.relation h2 { font-size: 22px; }

.relation ol {
  margin: 14px 0 0;
  padding-left: 1.15em;
}

.relation li + li { margin-top: 10px; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.logo-well {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 148px;
  padding: 18px 24px;
}

.logo-well img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.well-light { background: #fff; border-bottom: 1px solid var(--line); }
.well-light img { max-height: 58px; }
.well-kings { background: #0c0c0c; }
.well-kings img { max-height: 116px; }
.logo-well.logo-pair {
  height: auto;
  min-height: 0;
  gap: 8px;
  padding: 16px 14px;
}
.logo-well.logo-pair img {
  width: auto;
  max-width: calc(50% - 32px);
  max-height: 112px;
}
.logo-arrow {
  width: 28px;
  height: 28px;
  flex: 0 0 40px;
  padding: 6px;
  border-radius: 50%;
  background: #111;
  color: #ffe14a;
  box-sizing: content-box;
}
.well-emulait { background: #3f0733; }
.well-emulait img { max-height: 44px; max-width: 78%; }
.well-energize { background: #07141c; }
.well-energize img { max-height: 52px; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 22px;
}

.card-body > * { margin: 0; min-width: 0; }

.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.muted, .address { color: var(--muted); }

.address { font-size: 14px; }

.meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.meta a,
.extras a,
.directory a,
.narrow a,
.check a {
  color: #9d1c1c;
  text-underline-offset: 2px;
}

.meta a, .extras a, .address { overflow-wrap: anywhere; }

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.social a:hover { color: var(--red); }

.social svg { width: 18px; height: 18px; flex: 0 0 auto; }

.extras { font-size: 14px; }

.card .btn { width: 100%; margin-top: auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step {
  padding-top: 14px;
  border-top: 3px solid var(--red);
}

.step h3 { font-size: 22px; margin-bottom: 8px; }

.step p { margin: 0; color: var(--muted); }

.contact-grid {
  display: grid;
  gap: 28px;
}

.directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 32px;
}

.directory article {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.directory h3 { font-size: 20px; margin-bottom: 4px; }

.directory-note { margin: 8px 0 0; }

.contact-form-head {
  width: min(640px, 100%);
  margin: 8px auto 0;
  text-align: center;
}

.contact-form-head h2 { font-size: 34px; }

.contact-form-head p { margin: 8px 0 0; font-weight: 600; }

.form, .news-box { min-width: 0; }

.form {
  display: grid;
  gap: 14px;
  width: min(640px, 100%);
  margin-inline: auto;
}

.form label, .check span { font-weight: 600; }

.optional { color: var(--muted); font-weight: 500; }

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d9d2c8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

textarea { min-height: 140px; resize: vertical; }

.check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-weight: 500;
}

.check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 3px 0 0;
  padding: 0;
}

.check span { font-weight: 500; }

.form .btn { width: 100%; }

.form-note { min-height: 0; font-weight: 600; }

.form-note:empty { display: none; }

.news-box {
  width: min(640px, 100%);
  margin-inline: auto;
  text-align: center;
}

.news-box .lead { max-width: none; }

.news-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "email button"
    "check check"
    "note note";
  gap: 12px;
  margin-top: 20px;
  text-align: left;
}

.news-form input[type="email"] { grid-area: email; margin-top: 0; }
.news-form .news-check { grid-area: check; }
.news-form .btn { grid-area: button; }
.news-form .form-note { grid-area: note; text-align: center; }

.narrow { max-width: 42rem; }

.narrow h1 { font-size: 36px; margin: 0 0 16px; }

.narrow h2 { font-size: 22px; margin: 28px 0 8px; letter-spacing: 0; }

.narrow p { margin: 0 0 14px; color: var(--muted); }

.narrow .kicker { margin-bottom: 8px; }

.narrow ul {
  margin: 0 0 14px;
  padding-left: 1.15em;
  color: var(--muted);
}

.narrow .btn { margin-top: 8px; }

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 28px;
  padding: 36px 0;
}

.footer-grid p,
.footer-grid a { margin: 0 0 8px; }

.footer-name { font-weight: 700; }

.footer-grid nav { display: grid; align-content: start; }

.footer-grid a { text-underline-offset: 2px; }

.footer-bar { background: #141414; color: #fff; }

.footer-bar p { margin: 0; padding: 14px 0; font-size: 14px; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .bar { flex-wrap: wrap; min-height: 68px; }
  .brand img { height: 36px; }
  .menu { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 8px;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
    padding-bottom: 28px;
  }
  .hero-photo {
    order: -1;
    height: 200px;
    border-radius: 0;
    width: calc(100% + var(--gutter) * 2);
    max-width: none;
    margin-left: calc(var(--gutter) * -1);
    margin-bottom: 22px;
  }
  .hero h1 { font-size: 34px; }
  .story h2 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head h2,
  .contact-form-head h2,
  .split h2 { font-size: 28px; }
  .split,
  .cards,
  .steps,
  .directory,
  .pair,
  .footer-grid { grid-template-columns: 1fr; }
  .cards, .steps, .contact-grid, .footer-grid { gap: 16px; }
  .split { gap: 20px; }
  .news-form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "email"
      "check"
      "button"
      "note";
  }
  .news-form .btn { width: 100%; }
  .narrow h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
