:root {
  --paper: #FAF7F5;
  --surface: #EDE4E1;
  --ink: #241618;
  --ink-deep: #1A1012;
  --crimson: #C0344A;
  --crimson-d: #9C2639;
  --muted: #8C7B7C;
  --line: rgba(36, 22, 24, 0.14);
  --font-head: Onest, system-ui, sans-serif;
  --font-body: Literata, Georgia, serif;
}

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

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.68;
  min-height: 100vh;
}

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

a {
  color: var(--crimson-d);
  text-underline-offset: 3px;
}

a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid #C0344A;
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  margin: 0 0 0.7em;
  color: inherit;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.brief { max-width: 72ch; }

/* side rail */
.railbar {
  position: fixed;
  left: 0;
  top: 0;
  width: 264px;
  height: 100vh;
  background: var(--ink);
  color: #FAF7F5;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 24px;
  overflow-y: auto;
}

.railbar__mark {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: #FAF7F5;
  margin-bottom: 28px;
}

.railbar__mark:hover { color: #FAF7F5; }

.railbar__mark svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
  margin-top: 2px;
}

.railbar__mark strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.railbar__mark em {
  display: block;
  margin-top: 4px;
  font-family: var(--font-head);
  font-style: normal;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #8C7B7C;
}

.railbar__menu {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.railbar__menu li { margin: 0; }

.railbar__link {
  display: block;
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: #C9B8B6;
  text-decoration: none;
  padding: 8px 0 8px 14px;
}

.railbar__link:hover { color: #FAF7F5; }

.railbar__link.is-current,
.railbar__link.is-current:hover {
  color: #FAF7F5;
}

.railbar__link.is-current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--crimson);
}

.rule-thin {
  border: 0;
  border-top: 1px solid var(--crimson);
  opacity: 0.85;
  margin: 0 0 20px;
  width: 42px;
}

.railbar__contact {
  margin-top: auto;
  font-family: var(--font-head);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #C9B8B6;
}

.railbar__contact p { margin: 0 0 0.4em; }

.railbar__contact a {
  color: #E7DCD9;
  text-decoration: none;
}

.railbar__contact a:hover { color: #C0344A; }

.railbar__contact .btn-line--light {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
}

.railtoggle {
  display: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FAF7F5;
  background: transparent;
  border: 1px solid #FAF7F5;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.railtoggle:hover {
  background: #FAF7F5;
  color: var(--ink);
}

.canvas { margin-left: 264px; min-height: 100vh; }

/* masthead */
.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
}

body.is-overview .masthead { min-height: 62vh; }

.masthead__media {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.masthead__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg, rgba(26, 16, 18, .88) 0%, rgba(26, 16, 18, .68) 55%, rgba(26, 16, 18, .52) 100%);
}

.masthead__inner {
  position: relative;
  z-index: 1;
  padding: 72px 44px 52px;
  max-width: 920px;
  color: #FAF7F5;
}

.masthead__flag,
.flag {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.masthead__flag { color: #C9B8B6; }

.masthead h1 { color: #FAF7F5; max-width: 18ch; }

.masthead__lede {
  color: #E7DCD9;
  max-width: 62ch;
  margin: 0 0 1.4em;
}

.masthead__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.masthead__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 40px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(250, 247, 245, 0.18);
}

.masthead__facts div { margin: 0; min-width: 10rem; }

.masthead__facts dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8C7B7C;
  margin: 0 0 4px;
}

.masthead__facts dd {
  margin: 0;
  color: #FAF7F5;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
}

/* layout */
main { padding: 42px 44px 88px; }

main > * + * { margin-top: 42px; }

.board {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.cell {
  background: var(--surface);
  padding: 28px 26px;
}

.cell--major { grid-column: 1; }
.cell--minor { grid-column: 2; }
.cell--tall { grid-row: span 2; }
.cell--full { grid-column: 1 / -1; }

.cell--ink {
  background: var(--ink-deep);
  color: #FAF7F5;
}

.cell--ink h2,
.cell--ink h3 { color: #FAF7F5; }

.cell--ink p,
.cell--ink li { color: #E7DCD9; }

.cell--ink a { color: #E7DCD9; }
.cell--ink a:hover { color: #C0344A; }

.cell--edge { border-left: 3px solid var(--crimson); }

.duo {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: start;
}

.lift-in { opacity: 1; transform: none; }

html.js .lift-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .52s ease, transform .52s ease;
}

html.js .lift-in.is-on {
  opacity: 1;
  transform: none;
}

.no-js .lift-in {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lift-in,
  html.js .lift-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* buttons */
.btn-solid,
.btn-line,
.btn-line--light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.82rem 1.2rem;
  cursor: pointer;
  border-radius: 0;
  line-height: 1.2;
}

.btn-solid {
  background: #9C2639;
  color: #FFF7F4;
  border: 1px solid #9C2639;
}

.btn-solid:hover {
  background: #7F1E2E;
  color: #FFF7F4;
  border-color: #7F1E2E;
}

.btn-line {
  background: transparent;
  color: #241618;
  border: 1px solid #241618;
}

.btn-line:hover {
  background: #241618;
  color: #FAF7F5;
}

.btn-line--light {
  background: transparent;
  color: #FAF7F5;
  border: 1px solid #FAF7F5;
}

.btn-line--light:hover {
  background: #FAF7F5;
  color: #241618;
}

button.btn-solid,
button.btn-line,
button.btn-line--light { appearance: none; }

/* lists */
.listplain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.listplain li { margin: 0 0 0.55em; }

.listmark {
  list-style: none;
  margin: 0;
  padding: 0;
}

.listmark li {
  position: relative;
  padding-left: 1.2rem;
  margin: 0 0 0.7em;
}

.listmark li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  background: var(--crimson);
}

.cell--ink .listmark li::before { background: #C0344A; }

/* phases */
.phase {
  padding: 0 0 22px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.phase:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.phase__head {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
}

.phase__head span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

/* figures */
.figplate { margin: 0; }

.figplate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.figplate__cap {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.65rem;
}

/* faq */
.qa {
  background: var(--surface);
  padding: 22px 24px;
  margin: 0 0 12px;
}

.qa__q {
  margin: 0 0 0.55em;
}

.qa__a { margin: 0; }

/* insights */
.brieflist { display: grid; gap: 18px; }

.briefitem {
  background: var(--surface);
  padding: 28px 26px;
}

.briefitem__meta {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

/* cta */
.ctaband {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: center;
  background: var(--ink);
  color: #FAF7F5;
  padding: 48px 40px;
}

.ctaband h2 { color: #FAF7F5; margin-bottom: 0.5em; }
.ctaband p { color: #E7DCD9; }

.ctaband .btn-solid { justify-self: start; }

/* footer */
.footmega {
  background: #1A1012;
  color: #E7DCD9;
  padding: 56px 44px 28px;
}

.footmega > div:first-child {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px 28px;
}

.footmega__head {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8C7B7C;
  margin: 0 0 14px;
}

.footmega__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footmega__links li { margin: 0 0 0.45em; }

.footmega__links a,
.footmega__col a {
  color: #E7DCD9;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
}

.footmega__links a:hover,
.footmega__col a:hover { color: #C0344A; }

.footmega__col p {
  font-size: 0.95rem;
  color: #C9B8B6;
}

.footmega__base {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 247, 245, 0.12);
  font-size: 0.88rem;
  color: #8C7B7C;
}

.footmega__base p { margin: 0 0 0.55em; }

.footmega__base a {
  color: #E7DCD9;
  text-decoration: none;
}

.footmega__base a:hover { color: #C0344A; }

/* cookies */
.cookiebar {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: 460px;
  background: #241618;
  color: #FAF7F5;
  padding: 22px 22px 18px;
}

.cookiebar p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: #FAF7F5;
}

.cookiebar a { color: #E7DCD9; }
.cookiebar a:hover { color: #C0344A; }

.cookiebar__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 1040px) {
  .cookiebar { left: 284px; }
}

/* forms */
.formgrid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }

.field__lbl {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.72rem 0.8rem;
  width: 100%;
  border-radius: 0;
}

.field textarea { min-height: 160px; resize: vertical; }

.alertbox {
  padding: 16px 18px;
  margin: 0 0 18px;
  background: var(--surface);
  border-left: 3px solid var(--ink);
}

.alertbox--ok { border-left-color: var(--ink); }
.alertbox--bad { border-left-color: var(--crimson); }

.honeyfield {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.maplate {
  background: var(--surface);
  overflow: hidden;
}

.maplate iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

@media (max-width: 1039px) {
  .railbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 14px 18px;
    overflow: visible;
  }

  .railbar__mark {
    margin: 0;
    align-items: center;
  }

  .railtoggle {
    display: inline-flex;
    margin-left: auto;
  }

  .railbar__menu,
  .railbar__contact,
  .railbar .rule-thin {
    width: 100%;
  }

  .railbar .rule-thin { margin-top: 12px; }

  html.js .railbar:not(.is-open) .railbar__menu,
  html.js .railbar:not(.is-open) .railbar__contact,
  html.js .railbar:not(.is-open) .rule-thin {
    display: none;
  }

  .no-js .railbar__menu,
  .no-js .railbar__contact,
  .no-js .railbar .rule-thin {
    display: flex !important;
  }

  .no-js .railbar .rule-thin { display: block !important; }

  .canvas { margin-left: 0; }

  .masthead__inner,
  main,
  .footmega,
  .ctaband { padding-left: 22px; padding-right: 22px; }

  .board,
  .duo,
  .formgrid,
  .ctaband,
  .footmega > div:first-child {
    grid-template-columns: 1fr;
  }

  .cell--major,
  .cell--minor,
  .cell--full { grid-column: auto; }

  .cell--tall { grid-row: auto; }

  .cookiebar {
    left: 12px;
    right: 12px;
    max-width: none;
  }
}
