:root {
  --paper: #101114;
  --paper-raised: #16181d;
  --paper-soft: #1c1f25;
  --ink: #f5f5f7;
  --ink-soft: #bcc1c9;
  --ink-faint: #7d8591;
  --line: rgba(245, 245, 247, 0.1);
  --line-strong: rgba(245, 245, 247, 0.18);
  --accent: #ffffff;
  --max: 1160px;
  --reading: 720px;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(180deg, #131418 0%, var(--paper) 52%, #0e0f12 100%);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(245, 245, 247, 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

::selection {
  background: var(--accent);
  color: #0f1012;
}

.page-shell {
  overflow: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(16, 17, 20, 0.78);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(16, 17, 20, 0.94);
  border-bottom-color: var(--line);
}

.site-header-inner,
.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand span {
  margin-left: 0.3rem;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  padding: 6px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 4px 0;
  background: var(--ink);
}

.mobile-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(16, 17, 20, 0.985);
  padding: 88px 24px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mobile-panel.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-panel button {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 30px;
  cursor: pointer;
}

.mobile-panel nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-panel a {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -0.04em;
  text-decoration: none;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.reading {
  max-width: calc(var(--reading) + 56px);
}

.section-label,
.eyebrow,
.note-label,
.rail-label,
.fact-label {
  margin: 0 0 0.85rem;
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.masthead {
  padding: 26px 0 24px;
}

.masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 460px);
  gap: 48px;
  align-items: end;
  min-height: calc(100svh - 128px);
}

.masthead-copy {
  padding: 2vh 0 2.5rem;
}

.hero-title,
.page-title,
.article-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero-title {
  font-size: clamp(4rem, 8vw, 7.6rem);
  max-width: 8.8ch;
}

.hero-deck,
.hero-subdeck {
  max-width: 38rem;
  color: var(--ink-soft);
}

.hero-deck {
  margin: 1.35rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.38rem, 2.8vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.hero-emphasis {
  color: var(--ink);
  font-weight: 600;
}

.hero-subdeck {
  margin: 1rem 0 0;
  font-size: 1rem;
}

.hero-subdeck strong,
.lede strong,
.story-copy strong,
.article-body strong,
.about-body strong {
  color: var(--ink);
  font-weight: 600;
}

.masthead-note {
  align-self: end;
  padding: 0 0 2.8rem;
}

.trust-panel {
  max-width: 460px;
  margin-left: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.trust-panel-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.trust-panel-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.5vw, 2rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
  max-width: 8ch;
  text-wrap: balance;
}

.trust-panel-header p {
  margin: 0;
  max-width: 18rem;
  color: var(--ink-faint);
  font-size: 0.86rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.credential-band,
.section-shell {
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}

.credential-band-inner {
  display: flex;
  align-items: center;
  gap: 18px 28px;
  flex-wrap: wrap;
}

.credential-line {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.credential-line strong {
  color: var(--ink);
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 18px 26px;
  flex-wrap: wrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  text-transform: none;
  white-space: nowrap;
}

.logo-mark.amazon,
.logo-mark.merchant {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-mark.microsoft,
.logo-mark.sais {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-mark.sais {
  font-family: var(--sans);
  font-size: 0.98rem;
}

.org-logo {
  display: block;
  flex: 0 0 auto;
}

.org-logo-amazon {
  width: 1.8rem;
  height: auto;
}

.org-logo-sais {
  width: 1.45rem;
  height: auto;
}

.ms-grid {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 2px;
}

.ms-grid span {
  display: block;
  width: 8px;
  height: 8px;
}

.ms-grid span:nth-child(1) { background: #f25022; }
.ms-grid span:nth-child(2) { background: #7fba00; }
.ms-grid span:nth-child(3) { background: #00a4ef; }
.ms-grid span:nth-child(4) { background: #ffb900; }

.trust-voices {
  display: grid;
  grid-template-columns: 62px repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}

.trust-voice-spacer {
  min-height: 1px;
}

.trust-voice-quote {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.trust-voice-label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.4;
  text-wrap: pretty;
}

.trust-grid {
  display: grid;
  grid-template-columns: 62px repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  background: none;
}

.trust-row-label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  min-height: 132px;
  padding-top: 0.6rem;
}

.trust-cell {
  padding: 14px 14px 16px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(245, 245, 247, 0.08);
  border-radius: 15px;
  min-height: 132px;
}

.trust-cell h3 {
  margin: 0 0 0.3rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}

.trust-cell p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.42;
  text-wrap: pretty;
}

.lede-section {
  padding: 4.8rem 0;
}

.lede {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.13;
  letter-spacing: -0.048em;
  max-width: 18ch;
}

.lede-body {
  margin-top: 1.6rem;
  max-width: var(--reading);
}

.lede-body p,
.story-copy p,
.about-body p,
.article-body p,
.contact-copy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.lede-body p:last-child,
.story-copy p:last-child,
.about-body p:last-child,
.article-body p:last-child,
.contact-copy p:last-child {
  margin-bottom: 0;
}

.pull-line {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--line-strong);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.9vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 28px;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head h2,
.about-grid h2,
.contact-panel h1,
.article-body h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.section-head h2,
.about-grid h2,
.contact-panel h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.section-head p,
.about-side p,
.pager p {
  margin: 0;
  color: var(--ink-soft);
}

.stories {
  padding: 2.2rem 0 1rem;
}

.story-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 38px;
  padding: 2.6rem 0 3.4rem;
  border-top: 1px solid var(--line);
  align-items: start;
}

.story-tag,
.article-tag {
  margin: 0 0 0.75rem;
  color: var(--ink-faint);
  font-size: 0.92rem;
}

.story-title {
  margin: 0 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.2vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 600;
  max-width: 12ch;
}

.story-opener {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.story-link,
.text-link {
  color: var(--ink);
  text-decoration-color: rgba(245, 245, 247, 0.36);
}

.story-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.story-link:hover,
.text-link:hover {
  color: var(--accent);
}

.story-rail {
  padding-top: 0.2rem;
}

.fact-group {
  margin-bottom: 1.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.fact-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.fact-label {
  margin-bottom: 0.35rem;
}

.fact-group p,
.fact-group li {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.55;
}

.fact-list {
  margin: 0;
  padding-left: 1rem;
}

.fact-list li + li {
  margin-top: 0.45rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(220px, 0.32fr);
  gap: 36px;
  align-items: start;
  padding: 4.4rem 0 5rem;
}

.about-page-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px 40px;
  align-items: start;
  max-width: 980px;
}

.about-profile {
  align-self: start;
}

.about-profile img {
  width: 100%;
  aspect-ratio: 724 / 1086;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(245, 245, 247, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.about-side {
  padding-top: 0.5rem;
}

.meta-notes {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.meta-notes p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-shell {
  padding: 5.8rem 0 6rem;
}

.contact-panel {
  max-width: 44rem;
}

.contact-panel h1 {
  max-width: 11ch;
}

.contact-panel p {
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 1.4rem;
}

.contact-links a {
  font-weight: 600;
  text-decoration: none;
}

.article-hero {
  padding: 3.2rem 0 1.4rem;
}

.article-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 36px;
  align-items: end;
}

.article-title {
  font-size: clamp(3.5rem, 7vw, 6.4rem);
  max-width: 11ch;
}

.article-deck {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--ink-soft);
}

.article-opener {
  margin: 1.5rem 0 0;
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.article-note {
  align-self: end;
  padding-bottom: 0.3rem;
}

.article-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.article-shell {
  padding: 2rem 0 5rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--reading));
  gap: 42px;
}

.fact-rail {
  position: sticky;
  top: 92px;
  align-self: start;
}

.article-body {
  max-width: var(--reading);
}

.article-body h2 {
  margin-top: 2.6rem;
  margin-bottom: 0.8rem;
  font-size: clamp(1.85rem, 3.2vw, 2.8rem);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body blockquote {
  margin: 1.7rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--line-strong);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.038em;
  color: var(--ink);
}

.article-body ul {
  margin: 0 0 1.2rem 1.15rem;
  padding: 0;
  color: var(--ink-soft);
}

.article-body li {
  margin-bottom: 0.7rem;
}

.pager-shell {
  padding: 1.6rem 0 4.8rem;
  border-top: 1px solid var(--line);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  align-items: start;
}

.pager-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.site-footer {
  padding: 0 0 2rem;
}

.site-footer-inner {
  color: var(--ink-faint);
  font-size: 0.92rem;
  flex-wrap: wrap;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .masthead-grid,
  .section-head,
  .story-item,
  .about-grid,
  .about-page-grid,
  .article-header,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .fact-rail {
    position: static;
  }

  .masthead-copy {
    padding-top: 2rem;
  }

  .masthead-note {
    padding-bottom: 1.2rem;
  }

  .trust-panel {
    max-width: none;
    margin-left: 0;
  }

  .trust-voices {
    grid-template-columns: 1fr;
  }

  .trust-voice-spacer {
    display: none;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .trust-row-label {
    writing-mode: horizontal-tb;
    transform: none;
    justify-content: flex-start;
    padding: 0.3rem 0 0;
  }

  .about-profile {
    position: static;
    max-width: 260px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .site-header-inner,
  .site-footer-inner,
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle,
  .mobile-panel {
    display: block;
  }

  .masthead {
    padding-top: 20px;
  }

  .masthead-grid {
    min-height: auto;
    gap: 20px;
  }

  .credential-band,
  .section-shell,
  .lede-section,
  .about-grid,
  .about-page-grid,
  .contact-shell,
  .article-hero,
  .article-shell,
  .pager-shell {
    padding-top: 2.6rem;
    padding-bottom: 2.6rem;
  }

  .story-item {
    gap: 18px;
    padding-top: 1.8rem;
    padding-bottom: 2.4rem;
  }

  .contact-links,
  .pager-links {
    flex-direction: column;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
