:root {
  --white: #ffffff;
  --brand-blue: #387ed1;
  --brand-yellow: #ffa412;
  --deep-grey: #424242;
  --body-grey: #5f6368;
  --label-grey: #7b7f84;
  --surface-1: #fafafb;
  --surface-2: #f5f5f7;
  --stroke: #d5d5d5;
  --shadow-1: 0 6px 16px rgba(66, 66, 66, 0.12);
  --shadow-2: 0 4px 12px rgba(66, 66, 66, 0.1);
  --radius-8: 8px;
  --radius-16: 16px;
  --radius-32: 32px;
  --font-main: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-editorial: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--deep-grey);
  font-family: var(--font-main);
  line-height: 1.58;
}

body.header-search-overlay-open {
  overflow: hidden;
}

.body--home-fixed {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.body--home-fixed .header {
  flex: 0 0 auto;
}

.body--home-fixed .container {
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 22px;
}

.body--home-fixed .home-minimal {
  min-height: 100%;
  padding-top: clamp(36px, 9vh, 86px);
  padding-bottom: 10px;
}

.body--home-fixed .footer {
  flex: 0 0 auto;
  padding-bottom: 20px;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 4.5vw;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 1em;
  font-size: 23px;
  line-height: 1;
}

.brand-text {
  display: grid;
  gap: 3px;
}

.brand-text strong {
  font-size: 23px;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.014em;
}

.brand-text small {
  color: var(--label-grey);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.012em;
  line-height: 1.32;
  text-transform: none;
}

.header-search {
  display: none;
  margin-left: auto;
  position: relative;
}

.body--company .header-search {
  display: block;
  flex: 0 1 430px;
  width: min(430px, 46vw);
}

.header-search-form {
  position: relative;
  width: 100%;
}

.header-search-shell {
  margin: 0;
  display: block;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-2);
  padding: 6px 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.header-search-shell:focus-within {
  border-color: var(--brand-blue);
  box-shadow:
    var(--shadow-2),
    0 0 0 3px rgba(56, 126, 209, 0.14);
}

.header-search-shell input {
  width: 100%;
  margin: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--deep-grey);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.34;
  padding: 5px 4px;
}

.header-search-shell input::placeholder {
  color: #97a0aa;
}

.header-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 46;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-1);
  padding: 0;
  max-height: min(55vh, 360px);
  overflow: hidden auto;
}

.header-search-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-blue);
  box-shadow: var(--shadow-2);
  cursor: pointer;
}

.header-search-toggle:hover {
  border-color: var(--brand-blue);
}

.header-search-toggle:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.header-search-toggle-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 999px;
  position: relative;
  vertical-align: middle;
}

.header-search-toggle-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  background: currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
}

.header-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(22, 28, 36, 0.35);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 14px;
}

.header-search-overlay-panel {
  width: min(760px, 100%);
  margin-top: 2px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-1);
  padding: 12px;
}

.header-search-overlay-panel.card {
  overflow: visible;
}

.header-search-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.header-search-overlay-head p {
  margin: 0;
  color: var(--label-grey);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-search-close {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--white);
  color: var(--body-grey);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  cursor: pointer;
}

.header-search-close:hover {
  color: var(--brand-blue);
  border-color: rgba(56, 126, 209, 0.42);
}

.header-search-mobile-form {
  margin: 0;
}

.header-search-mobile-results {
  margin-top: 10px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-1);
  max-height: min(62vh, 480px);
  overflow: hidden auto;
  padding: 0;
}

.header-search-mobile-results.card {
  overflow: hidden auto;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 4.5vw 82px;
}

.eyebrow {
  margin: 0;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.home-minimal {
  min-height: calc(100vh - 176px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 12px;
  padding: clamp(56px, 10vw, 108px) 8px 24px;
}

.home-minimal h2 {
  margin: 2px 0 0;
  max-width: 15ch;
  font-family: var(--font-editorial);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.008em;
  color: var(--deep-grey);
}

.search-subtle {
  margin: 0;
  color: var(--label-grey);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.search-module {
  width: min(760px, 100%);
  margin-top: 8px;
  position: relative;
}

.home-context {
  margin: 8px auto 0;
  width: min(760px, 100%);
  color: var(--body-grey);
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.5;
}

.home-context span {
  display: block;
}

.search-shell {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-32);
  background: var(--white);
  box-shadow: var(--shadow-2);
  padding: 8px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-shell.card {
  overflow: visible;
}

.search-field {
  margin: 0;
}

.search-shell:focus-within {
  border-color: var(--brand-blue);
  box-shadow:
    var(--shadow-2),
    0 0 0 3px rgba(56, 126, 209, 0.18);
}

.search-shell input {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--deep-grey);
  font-family: var(--font-main);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.32;
  padding: 10px 8px;
}

.search-shell input:focus {
  box-shadow: none;
}

.search-shell input::placeholder {
  color: #9aa0a6;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 40;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-1);
  padding: 0;
  max-height: min(60vh, 440px);
  overflow: hidden auto;
}

.results-meta {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--stroke);
  color: var(--label-grey);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

.result-item {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-top: 1px solid #ececef;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.result-item:first-of-type {
  border-top: 0;
}

.result-item:hover,
.result-item.active {
  background: var(--surface-2);
}

.result-item:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: -2px;
}

.result-item strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.004em;
  color: var(--deep-grey);
}

.result-item span {
  color: var(--label-grey);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.empty-state {
  margin: 0;
  padding: 14px;
  text-align: left;
  color: var(--body-grey);
  font-size: 14px;
}

.company-hero {
  margin-bottom: 14px;
}

.company-hero-minimal {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-16);
  background:
    linear-gradient(180deg, rgba(56, 126, 209, 0.06) 0%, rgba(255, 255, 255, 0) 46%),
    var(--surface-1);
  box-shadow: var(--shadow-2);
  padding: clamp(20px, 3.4vw, 30px);
}

.company-hero-minimal.card {
  overflow: visible;
}

.company-hero-minimal h2 {
  margin: 8px 0 4px;
  font-family: var(--font-editorial);
  font-size: clamp(36px, 5.1vw, 54px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.006em;
  color: var(--deep-grey);
}

.company-title-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(56, 126, 209, 0.5);
  text-underline-offset: 6px;
}

.company-title-link:hover {
  text-decoration-color: var(--brand-blue);
}

.company-mini-meta {
  margin: 0;
  color: var(--label-grey);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.company-summary {
  margin: 8px 0 0;
  color: var(--body-grey);
  font-size: 15px;
  line-height: 1.64;
}

.segment-card {
  margin-bottom: 14px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-16);
  background: var(--surface-1);
  box-shadow: var(--shadow-2);
  padding: 14px 16px;
}

.segment-card.card {
  overflow: visible;
}

.brief-card {
  border-color: #efdec0;
  background:
    linear-gradient(180deg, rgba(255, 164, 18, 0.09) 0%, rgba(255, 255, 255, 0) 42%),
    var(--surface-1);
}

.chatter-card {
  border-color: #d7e1ef;
  background:
    linear-gradient(180deg, rgba(56, 126, 209, 0.08) 0%, rgba(255, 255, 255, 0) 40%),
    var(--surface-1);
}

.segment-header h3 {
  margin: 6px 0 2px;
  font-family: var(--font-editorial);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.004em;
  color: var(--deep-grey);
}

.segment-subtitle {
  margin: 0;
  color: var(--body-grey);
  font-size: 14px;
  line-height: 1.52;
}

.segment-meta {
  margin: 2px 0 0;
  color: var(--label-grey);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.segment-chip {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.segment-chip:hover {
  filter: brightness(0.97);
}

.segment-chip:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.segment-chip-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.segment-chip-brief {
  color: #9b6400;
  background: rgba(255, 164, 18, 0.2);
}

.segment-chip-brief .segment-chip-icon {
  background: rgba(255, 164, 18, 0.36);
  color: #8e5b00;
}

.segment-chip-chatter {
  color: #2f6db6;
  background: rgba(56, 126, 209, 0.18);
}

.segment-chip-chatter .segment-chip-icon {
  background: rgba(56, 126, 209, 0.3);
  color: #255ca0;
}

.headline-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.headline-item {
  padding: 9px 0;
  border-top: 1px solid #e4e7ea;
}

.headline-item:first-child {
  border-top: 0;
}

.headline-link {
  color: var(--deep-grey);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.002em;
}

.headline-link:hover {
  color: #9b6400;
}

.headline-meta {
  margin: 3px 0 0;
  color: var(--label-grey);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.segment-empty {
  margin: 10px 0 2px;
  color: var(--body-grey);
  font-size: 14px;
}

.segment-dropdown {
  margin-top: 8px;
  border-top: 1px dashed #cfd3d7;
  padding-top: 8px;
}

.segment-dropdown > summary {
  cursor: pointer;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  list-style: none;
}

.segment-dropdown > summary::-webkit-details-marker {
  display: none;
}

.segment-dropdown-panel {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.28s ease,
    opacity 0.28s ease,
    margin-top 0.28s ease;
}

.segment-dropdown[open] .segment-dropdown-panel {
  margin-top: 8px;
  max-height: 3200px;
  opacity: 1;
}

.headline-list-more {
  margin-top: 0;
}

.story-timeline-more {
  margin-top: 0;
}

.story-timeline {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.edition-chapter {
  border: 1px solid #dce3ec;
  border-radius: var(--radius-16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-2);
  padding: 16px;
}

.edition-chapter.card {
  overflow: visible;
}

.chapter-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.chapter-date {
  margin: 0;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chapter-head h3 {
  margin: 5px 0 3px;
  font-family: var(--font-editorial);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.002em;
  color: var(--deep-grey);
}

.chapter-meta {
  margin: 0;
  color: var(--label-grey);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.storyline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.story-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  border-top: 1px dashed #cfd3d7;
  padding: 12px 0 2px;
}

.story-card:nth-child(-n + 2) {
  border-top: 0;
}

.story-mention {
  border-top-style: solid;
}

.story-index {
  padding-top: 3px;
  color: var(--label-grey);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.story-body {
  min-width: 0;
  max-width: 68ch;
}

.story-kicker {
  margin: 0 0 8px;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.story-context {
  margin: 0 0 10px;
  color: var(--body-grey);
  font-size: clamp(16px, 1.15vw, 17.5px);
  line-height: 1.68;
  font-weight: 500;
}

.story-quote {
  margin: 0;
  position: relative;
  padding: 12px 14px 12px 20px;
  border: 1px solid var(--stroke);
  border-left: 3px solid var(--brand-blue);
  border-radius: var(--radius-8);
  background: var(--white);
  box-shadow: var(--shadow-2);
  color: var(--deep-grey);
  font-family: var(--font-editorial);
  font-size: clamp(17px, 1.4vw, 19.5px);
  font-weight: 500;
  line-height: 1.57;
  letter-spacing: 0;
}

.story-quote::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: 7px;
  color: rgba(255, 164, 18, 0.42);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.story-footer {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.story-speaker {
  margin: 0;
  color: var(--body-grey);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.mention-note {
  margin: 0;
  padding: 10px 12px;
  border-left: 2px solid var(--brand-blue);
  border-radius: 0 var(--radius-8) var(--radius-8) 0;
  background: var(--surface-2);
  color: var(--body-grey);
  font-size: 14px;
  line-height: 1.6;
}

.small-link {
  display: inline-flex;
  align-items: center;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.small-link::after {
  content: "\2197";
  margin-left: 5px;
  font-size: 11px;
}

.small-link:hover {
  color: #2a64a9;
}

.quote-source {
  margin-left: auto;
}

.footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 4.5vw 40px;
  color: var(--label-grey);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.01em;
  text-align: center;
}

.footer a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-family: var(--font-main);
  font-weight: 600;
}

.footer a:hover {
  color: #2a64a9;
}

.fade-in {
  animation: fadeIn 0.24s ease both;
}

@media (max-width: 980px) {
  .storyline,
  .story-timeline {
    grid-template-columns: 1fr;
  }

  .story-card:nth-child(2) {
    border-top: 1px dashed #cfd3d7;
  }
}

@media (max-width: 840px) {
  .header-inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .container {
    padding-top: 24px;
  }

  .home-minimal {
    min-height: calc(100vh - 150px);
    padding-top: clamp(38px, 14vw, 68px);
  }

  .home-minimal h2 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .home-context {
    font-size: 12.5px;
    line-height: 1.52;
  }

  .brand-mark {
    font-size: 22px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .brand-text small {
    font-size: 9px;
  }

  .body--company .header-search {
    width: auto;
    flex: 0 0 auto;
  }

  .body--company .header-search-form {
    display: none;
  }

  .body--company .header-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .body--home-fixed .home-minimal {
    padding-top: clamp(24px, 9vh, 56px);
  }

  .body--home-fixed .footer {
    padding-bottom: 14px;
  }

  .segment-card {
    padding: 12px 13px;
  }

  .segment-header h3 {
    font-size: 24px;
  }

  .headline-link {
    font-size: 17px;
  }

  .segment-dropdown > summary {
    font-size: 10px;
  }

  .chapter-head {
    flex-direction: column;
  }

  .story-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .story-index {
    order: 2;
  }

  .story-quote {
    font-size: clamp(16.5px, 4.5vw, 18.2px);
    line-height: 1.56;
  }

  .quote-source {
    margin-left: 0;
  }
}

@media (min-width: 841px) {
  .header-search-overlay {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
