/* ==========================================================================
   Brand Brokery
   Palette and type per Brand Brokery Brand Guide (Rev. 8.26.26).

   Typeface: Söhne (Klim Type Foundry). The webfonts below are served from
   assets/fonts/ and picked up automatically by the --font stack.

   NOTE: the current files are Klim's *trial* fonts ("Test Söhne") — a subset
   covering A–Z a–z 0–9 , . - and Ö/ö only. Characters outside that set
   (apostrophes, em dashes, &, ?, /, :, quotes) fall back per-glyph to Inter.
   Drop in the licensed full-character woff2 files under the same names to
   render everything in Söhne. Inter remains the fallback stand-in.
   ========================================================================== */

@font-face {
  font-family: "Söhne";
  src: url("../fonts/soehne-buch.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("../fonts/soehne-kraftig.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --charcoal: #1C2321;        /* Pantone 419 C */
  --silver: #8A8D8C;
  --off-white: #F3EFE7;
  --white: #FFFFFF;

  --hairline: rgba(28, 35, 33, 0.14);

  --font: "Söhne", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Helvetica, Arial, sans-serif;

  --shell: 1180px;
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --section-y: clamp(5.5rem, 11vw, 10.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

/* ── Reset ───────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
  border-radius: 1px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--charcoal); color: var(--white);
  font-size: 0.875rem; letter-spacing: 0.02em;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ── Layout ──────────────────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--rule { border-top: 1px solid var(--hairline); }
.section--tint { background: var(--off-white); }

/* Tinted blocks sit flush against each other rather than doubling a rule. */
.section--tint + .section--rule { border-top: 0; }

/* ── Dark section variant — inverts the palette (the Network band) ──────── */
.section--dark {
  background: var(--charcoal);
  color: var(--off-white);
}
/* The charcoal band is its own separator, so the next ruled section drops its line. */
.section--dark + .section--rule { border-top: 0; }

.section--dark .label { color: rgba(243, 239, 231, 0.6); }
.section--dark .label.bar { border-left-color: rgba(243, 239, 231, 0.35); }
.section--dark :focus-visible { outline-color: var(--off-white); }

/* Form — labels, legend, hints, required marks */
.section--dark .field label,
.section--dark .checks__legend,
.section--dark .checks__hint,
.section--dark .req { color: rgba(243, 239, 231, 0.6); }

/* Form — text inputs */
.section--dark .field input,
.section--dark .field textarea {
  color: var(--white);
  border-bottom-color: rgba(243, 239, 231, 0.28);
}
.section--dark .field input::placeholder,
.section--dark .field textarea::placeholder { color: rgba(243, 239, 231, 0.4); }
.section--dark .field input:hover,
.section--dark .field textarea:hover { border-bottom-color: rgba(243, 239, 231, 0.5); }
.section--dark .field input:focus,
.section--dark .field textarea:focus,
.section--dark .field.is-invalid input,
.section--dark .field.is-invalid textarea { border-bottom-color: var(--off-white); }
.section--dark .field__error { color: var(--off-white); }

/* Form — choice pills */
.section--dark .intent__opt span {
  color: var(--off-white);
  border-color: rgba(243, 239, 231, 0.28);
}
.section--dark .intent__opt input:hover + span { border-color: rgba(243, 239, 231, 0.6); }
.section--dark .intent__opt input:checked + span {
  background: var(--off-white);
  border-color: var(--off-white);
  color: var(--charcoal);
}

/* Form — primary button inverts to light on the dark ground */
.section--dark .btn--primary {
  background: var(--off-white);
  border-color: var(--off-white);
  color: var(--charcoal);
}
.section--dark .btn--primary:hover {
  background: var(--white);
  border-color: var(--white);
}

/* Form — status text, success confirmation, error link */
.section--dark .form__status { color: var(--off-white); }
.section--dark .form-success__title { border-left-color: var(--off-white); }
.section--dark .opps__link { border-bottom-color: var(--off-white); }

[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.measure { max-width: 58ch; }
.measure > p + p { margin-top: 1.15em; }

/* ── Type ────────────────────────────────────────────────────────────── */

.eyebrow {
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 1.5;
  color: var(--charcoal);
  max-width: 34ch;
}

.label {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
}

/* The vertical bar from the identity, used as a supporting element. */
.bar {
  border-left: 1px solid currentColor;
  padding-left: clamp(0.875rem, 1.6vw, 1.25rem);
}
.label.bar { border-left-color: var(--silver); }
.hero__title.bar { border-left: none; }

.statement {
  font-size: clamp(1.75rem, 3.5vw, 2.875rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.022em;
  max-width: 22ch;
}

.pull {
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.015em;
  max-width: 30ch;
  border-left-width: 2px;
}

/* ── Header ──────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); }

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header__logo img { width: 132px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
}

.nav__list a {
  position: relative;
  display: block;
  padding-block: 0.35rem;
  font-size: 0.875rem;
  letter-spacing: 0.005em;
  color: var(--charcoal);
  transition: opacity 0.2s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--charcoal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__list a:hover::after,
.nav__list a.is-active::after { transform: scaleX(1); }
.nav__list a.is-active { font-weight: 500; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle__box {
  display: block;
  position: relative;
  width: 22px; height: 12px;
}
.nav-toggle__box span {
  position: absolute; left: 0;
  width: 100%; height: 1px;
  background: var(--charcoal);
  transition: transform 0.32s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__box span:first-child { top: 0; }
.nav-toggle__box span:last-child { bottom: 0; }
[aria-expanded="true"] .nav-toggle__box span:first-child { transform: translateY(5.5px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle__box span:last-child { transform: translateY(-5.5px) rotate(-45deg); }

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  border: 1px solid var(--charcoal);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              opacity 0.25s var(--ease);
}

.btn--primary { background: var(--charcoal); color: var(--white); }
.btn--primary:hover { background: #2C3532; border-color: #2C3532; }

.btn--ghost { background: transparent; color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--white); }

.btn--sm { padding: 0.7rem 1.15rem; font-size: 0.8125rem; }

.btn[disabled] { opacity: 0.45; cursor: default; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(4.5rem, 11vw, 9rem);
  padding-bottom: clamp(5rem, 11vw, 9.5rem);
}

.hero__title {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  font-size: clamp(2.625rem, 6.4vw, 5.125rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.033em;
  max-width: 16ch;
}

.hero__body {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
}

/* ── What We Represent ───────────────────────────────────────────────── */

.represent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.represent__item {
  padding-block: clamp(2rem, 3.4vw, 2.75rem);
  border-top: 1px solid var(--hairline);
}

.represent__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: clamp(1.15rem, 2vw, 1.55rem);
  color: var(--charcoal);
  border: 1px solid var(--hairline);
  transition: background-color 0.28s var(--ease),
              border-color 0.28s var(--ease),
              color 0.28s var(--ease);
}
.represent__icon svg { width: 1.5rem; height: 1.5rem; }

/* Invert the tile on hover — echoes the selected-pill language in the form. */
.represent__item:hover .represent__icon {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--off-white);
}

.represent__title {
  font-size: clamp(1.1875rem, 1.7vw, 1.4375rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin-bottom: 0.6rem;
}

.represent__item p { max-width: 42ch; }

/* ── How We're Different ─────────────────────────────────────────────── */

.different { margin-top: clamp(2.5rem, 5vw, 4rem); }
.different .measure { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.different .pull { margin-top: clamp(2.75rem, 5.5vw, 4.5rem); }

/* ── Split sections (label left, content right) ──────────────────────── */

.split__inner {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.split__body .measure { margin-top: clamp(1.5rem, 2.6vw, 2.25rem); }
.split__body .pull { margin-top: clamp(2.25rem, 4vw, 3rem); }

/* ── Inline link (used in form error messages) ───────────────────────── */

.opps__link {
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 1px;
  transition: opacity 0.2s var(--ease);
}
.opps__link:hover { opacity: 0.6; }

/* ── Form ────────────────────────────────────────────────────────────── */

.form-wrap { max-width: 40rem; }

.form { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

.intent {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  border: 0;
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.intent__opt { position: relative; }
.intent__opt input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.intent__opt span {
  display: block;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--hairline);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--charcoal);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease),
              color 0.2s var(--ease);
}
.intent__opt input:hover + span { border-color: var(--silver); }
.intent__opt input:checked + span {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}
.intent__opt input:focus-visible + span {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
}

/* Multi-select — "Which best describes you?" (reuses the .intent__opt pills). */
.checks {
  border: 0;
  padding: 0;
  margin: 0 0 1.75rem;
}
.checks__legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
}
.checks__hint {
  margin: 0 0 0.9rem;
  font-size: 0.8125rem;
  color: var(--silver);
}
.pillset {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.checks.is-invalid .field__error { display: block; }

.req { color: var(--silver); }

.field { margin-bottom: 1.75rem; }

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  color: var(--charcoal);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 7rem; }

.field input:hover,
.field textarea:hover { border-bottom-color: var(--silver); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--charcoal);
  border-bottom-width: 1px;
}

.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: var(--charcoal); }

.field__error {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--charcoal);
  display: none;
}
.field.is-invalid .field__error { display: block; }

/* Spam trap. */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
}

.form__status {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--charcoal);
}

.form-success {
  padding-block: clamp(1rem, 2vw, 1.5rem);
}
/* Focus is moved here on submit so keyboard and screen reader users land on
   the confirmation. The box is the only thing left in the form, so a visible
   ring adds nothing. */
.form-success:focus,
.form-success:focus-visible { outline: none; }
.form-success__title {
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.015em;
  border-left: 2px solid var(--charcoal);
  padding-left: clamp(0.875rem, 1.6vw, 1.25rem);
}
.form-success__body { margin-top: 1.25rem; max-width: 46ch; }

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer__logo img { width: 120px; }

.site-footer__legal {
  font-size: 0.8125rem;
  color: var(--silver);
}

/* ── Reveal on scroll ────────────────────────────────────────────────── */

/* Gated on a class set by main.js, so a failed script can never leave the
   page blank — without JS, nothing is ever hidden in the first place. */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .split__inner { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem var(--gutter) 2.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
                visibility 0.28s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  body.nav-open { overflow: hidden; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a {
    padding-block: 0.95rem;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--hairline);
  }
  .nav__list a::after { display: none; }

  .split__inner { grid-template-columns: minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 2.5rem); }

  .represent { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .site-header__logo img { width: 112px; }
  .btn { width: 100%; }
  .btn--sm { width: auto; }
  .btn-row { gap: 0.75rem; }
  .form__foot { align-items: flex-start; }
}

/* ── Motion and print ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .skip-link, .btn { display: none !important; }
  .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
  body { font-size: 11pt; }
}
