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

/* ── Design tokens ──────────────────────────────────────── */
:root {
  --black: #000;
  --white: #fff;
  --offwhite: #F8F8F6;
  --g1: #B0B0B0;
  --g2: #777;
  --g3: #444;
  --g4: #222;
  --g5: #E8E8E8;
  --green: #2AFF00;
  --blue: #38618C;
  --fh: 'Outfit', sans-serif;
  --fb: 'Inter', sans-serif;
  --fn: 'Exo 2', sans-serif;
}

/* ── Base ───────────────────────────────────────────────── */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: var(--fb);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

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

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

/* ── Top nav (fixed) ────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 40px);
  height: 56px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--g5);
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-logo img {
  height: 22px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: clamp(24px, 3vw, 40px);
  list-style: none;
}

.nav-links a {
  font-family: var(--fh);
  font-size: .78rem;
  font-weight: 500;
  color: var(--g3);
  letter-spacing: .01em;
  transition: color .2s;
}

.nav-links a:hover { color: var(--black); }

/* ── Mobile hamburger ───────────────────────────────────── */
.hb {
  display: none;
  position: fixed;
  top: 14px;
  right: 20px;
  z-index: 102;
  cursor: pointer;
  width: 28px;
  height: 28px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: flex-end;
}

.hb span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
}

.hb span:nth-child(1) { width: 22px; }
.hb span:nth-child(2) { width: 16px; }
.hb span:nth-child(3) { width: 22px; }

.hb.open span:nth-child(1) { transform: rotate(45deg) translate(2.5px, 4.5px); }
.hb.open span:nth-child(2) { opacity: 0; }
.hb.open span:nth-child(3) { transform: rotate(-45deg) translate(2.5px, -4.5px); }

.mob {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}

.mob.open {
  opacity: 1;
  pointer-events: all;
}

.mob a {
  font-family: var(--fh);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--g2);
  transition: color .2s;
}

.mob a:hover { color: var(--black); }
.mob a.mob-download { color: var(--green); }

@media (max-width: 768px) {
  .hb { display: flex; }
  .nav-links { display: none; }
}


/* ── HERO ───────────────────────────────────────────────── */
.brand-hero {
  margin: 56px auto 0;
  padding: clamp(40px, 7vh, 96px) clamp(20px, 5vw, 40px) clamp(20px, 3vh, 32px);
  max-width: 1080px;
}

.brand-eyebrow {
  font-family: var(--fh);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--g2);
  margin-bottom: 14px;
}

.brand-hero h1 {
  font-family: var(--fh);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  margin-bottom: 18px;
}

.lede {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--g3);
  max-width: 620px;
}

.brand-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.brand-toc a {
  font-family: var(--fh);
  font-size: .78rem;
  font-weight: 500;
  color: var(--g3);
  padding: 7px 14px;
  border: 1px solid var(--g5);
  border-radius: 999px;
  transition: all .2s;
}

.brand-toc a:hover { border-color: var(--g2); color: var(--black); }

/* ── SECTIONS ───────────────────────────────────────────── */
.brand-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(32px, 5vh, 56px) clamp(20px, 5vw, 40px);
  border-top: 1px solid var(--g5);
  scroll-margin-top: 56px;
}

.brand-section h2 {
  font-family: var(--fh);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.brand-section h3 {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.section-intro {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--g3);
  max-width: 640px;
  margin-bottom: 24px;
}

/* ── ASSET CARDS ────────────────────────────────────────── */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.asset {
  border: 1px solid var(--g5);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.asset-preview {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.asset-preview img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
}

/* same colors as the logo tiles, so a tile blends into its card */
.asset-preview.bg-light { background: var(--white); }
.asset-preview.bg-dark { background: #010101; }

/* logo tiles fill the preview height; their own margin frames the S */
.asset-preview.tile { padding: 0; }
.asset-preview.tile img { height: 100%; }

.asset-body { padding: 18px 18px 8px; }

.asset-note {
  font-size: .8rem;
  line-height: 1.5;
  color: var(--g2);
  margin-bottom: 12px;
}

/* ── FILE ROWS ──────────────────────────────────────────── */
.file-list { list-style: none; }

.file {
  padding: 10px 0;
  border-top: 1px solid var(--g5);
}

.file-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.file-label {
  font-family: var(--fh);
  font-size: .8rem;
  font-weight: 600;
}

.file-size {
  font-family: var(--fn);
  font-size: .75rem;
  color: var(--g2);
}

.file-url {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  color: var(--g3);
  word-break: break-all;
  margin-bottom: 6px;
  user-select: all;
}

.file-actions {
  display: flex;
  gap: 16px;
}

.file-actions a,
.copy {
  font-family: var(--fh);
  font-size: .74rem;
  font-weight: 600;
  color: var(--blue);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.file-actions a:hover,
.copy:hover { color: var(--black); }

.copy.copied { color: var(--g2); }

.file-list.legacy { max-width: 720px; }

/* ── COLOR ──────────────────────────────────────────────── */
.palette + .palette { margin-top: 32px; }

.swatches {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.swatch {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chip {
  display: block;
  height: 88px;
  border-radius: 8px;
  border: 1px solid var(--g5);
  margin-bottom: 6px;
  background: var(--c);
}

/* text tints: shown as type on the app's dark background */
.chip-on-dark {
  background: #0A0B0D;
  color: var(--c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fh);
  font-size: 2rem;
  font-weight: 700;
}

.chip-sm { height: 48px; border-radius: 6px; }

.ramp + .ramp { margin-top: 20px; }

.ramp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 8px;
}

/* 11 columns = one full ramp per row; shorter scales share the same column width */
.ramp-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 10px 8px;
}

@media (max-width: 760px) {
  .ramp-steps { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
}

.ramp-steps li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ramp-step {
  font-size: .7rem;
  color: var(--g3);
}

.ramp-steps .swatch-hex { font-size: .74rem; }

.swatch-name {
  font-family: var(--fh);
  font-size: .85rem;
  font-weight: 600;
}

.swatch-hex {
  align-self: flex-start;
  font-family: var(--fn);
  font-size: .82rem;
}

.swatch-token {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  color: var(--g2);
}

.swatch-note {
  font-size: .72rem;
  color: var(--g2);
}

/* ── TYPE ───────────────────────────────────────────────── */
.type-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--g5);
}

.type-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.type-family {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 600;
}

.type-role {
  font-size: .78rem;
  color: var(--g2);
}

.type-meta a {
  font-family: var(--fh);
  font-size: .74rem;
  font-weight: 600;
  color: var(--blue);
}

.type-sample {
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .type-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ── USAGE ──────────────────────────────────────────────── */
.usage {
  padding-left: 18px;
  max-width: 680px;
}

.usage li {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--g3);
  margin-bottom: 8px;
}

.usage a { color: var(--blue); }
