html {
  scroll-behavior: smooth;
}

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

.brand-layout {
  --page-bleed: max(0px, (min(100vw, 1920px) - 1440px) / 2);
  display: grid;
  grid-template-columns: 271px minmax(0, 1fr);
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 80px;
}

.brand-toc {
  align-self: stretch;
  border-right: 1px solid var(--gray-300);
  padding: 32px 32px 0;
}

.brand-toc ol {
  position: sticky;
  top: 88px;
  list-style: none;
  margin: 0;
  padding: 0 0 16px;
}

.brand-toc li + li {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-200);
}

.brand-toc a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  color: var(--gray-900);
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  text-decoration: none;
}

.brand-toc a span {
  flex: 0 0 22px;
  margin-top: 3px;
  color: var(--gray-500);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.brand-toc a.is-active,
.brand-toc a:hover {
  color: var(--blue-700);
}

.brand-layout,
.brand-main,
.brand-sections {
  overflow: visible;
}

.brand-main {
  min-width: 0;
}

.brand-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% + var(--page-bleed));
  min-height: 354px;
  margin-right: calc(var(--page-bleed) * -1);
  padding: 64px 112px 64px 64px;
  background: var(--blue-800);
  color: var(--gray-50);
}

.brand-hero-copy {
  max-width: 494px;
}

.brand-hero h1 {
  margin: 0;
  color: var(--gray-50);
  font-family: "Be Vietnam Pro", Inter, sans-serif;
  font-size: 62px;
  font-weight: 600;
  letter-spacing: -1.24px;
  line-height: 77px;
}

.brand-hero h1 strong {
  font-weight: 800;
}

.brand-hero-copy p {
  max-width: 404px;
  margin: 24px 0 0;
  color: var(--blue-100);
  font-size: 20px;
  line-height: 30px;
}

.brand-hero-art {
  width: min(379px, 38%);
  height: auto;
}

.brand-section {
  padding: 64px 32px;
  border-bottom: 1px solid var(--gray-300);
  scroll-margin-top: 24px;
}

.brand-section h2 {
  margin: 0 0 32px;
  color: var(--gray-900);
  font-family: Sora, Inter, sans-serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.72px;
  line-height: 44px;
}

.philosophy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.philosophy-copy {
  max-width: 538px;
}

.mission-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 48px;
  padding: 16px 20px 16px 16px;
  border-radius: 8px;
  background: var(--blue-50);
}

.mission-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 11px;
  box-sizing: content-box;
  border: 1px solid var(--blue-100);
  border-radius: 40px;
  background: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-600);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.96px;
  line-height: 24px;
  text-transform: uppercase;
}

.mission-card p:last-child,
.philosophy-lead p:first-child {
  margin: 0;
  color: var(--gray-900);
  font-size: 20px;
  line-height: 30px;
}

.philosophy-lead {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
}

.philosophy-kicker {
  margin: 20px 0 0;
  color: var(--blue-700);
  font-family: Sora, Inter, sans-serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.72px;
  line-height: 44px;
}

.ikigai {
  width: min(350px, 38%);
  height: auto;
}

.brand-quote {
  margin: 40px 0 0;
  padding: 12px 20px;
  border-left: 8px solid var(--blue-300);
  border-radius: 0 8px 8px 0;
  color: var(--gray-700);
  font-size: 22px;
  font-style: italic;
  line-height: 32px;
}

.vision-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: 8px;
  background: var(--blue-50);
}

.vision-art {
  position: absolute;
  top: 0;
  left: 81px;
  width: 1036px;
  height: 518px;
  max-width: none;
  pointer-events: none;
}

.vision-card-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.vision-card h2 {
  margin: 0;
}

.vision-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vision-lead,
.vision-sub {
  max-width: 683px;
  margin: 0;
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 500;
  line-height: 32px;
}

.vision-sub {
  max-width: 600px;
  color: var(--gray-700);
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}

.vision-pull {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0;
  color: var(--blue-700);
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  line-height: 32px;
}

.vision-pull img {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}

.brand-section-represents {
  position: relative;
  overflow: visible;
}

.represents-scribble {
  position: absolute;
  top: -8px;
  right: calc(-1 * max(194px, var(--page-bleed)));
  width: 636px;
  max-width: none;
  height: auto;
  pointer-events: none;
}

.brand-section-represents > h2,
.brand-section-represents > p,
.brand-section-represents > ul,
.brand-section-represents > blockquote,
.brand-section-represents > .value-grid {
  position: relative;
  z-index: 1;
}

.represents-title {
  max-width: 830px;
  margin: 0 0 32px;
  color: var(--gray-900);
  font-family: Sora, Inter, sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 38px;
}

.represents-title strong {
  color: var(--blue-700);
  font-weight: 700;
}

.represents-body {
  max-width: 707px;
  margin: 0;
  color: var(--gray-900);
  font-size: 22px;
  line-height: 32px;
}

.represents-pillar {
  margin-top: 32px;
  margin-bottom: 32px;
}

.represents-points {
  max-width: 753px;
  margin: 0;
  padding: 0 0 32px 8px;
  list-style: none;
  border-bottom: 1px solid var(--gray-200);
}

.represents-points li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 20px;
  color: var(--gray-900);
  font-size: 20px;
  line-height: 32px;
}

.represents-points img {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 12px;
}

.represents-note {
  display: flex;
  gap: 12px;
  margin: 32px 0;
  padding: 16px;
  border: 1px solid var(--blue-100);
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--gray-900);
  font-size: 20px;
  font-style: italic;
  line-height: 32px;
}

.represents-note img {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-grid article {
  position: relative;
  min-height: 184px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--blue-100);
  border-radius: 12px;
  background:
    radial-gradient(circle at 90% 8%, rgba(239, 248, 255, 0.9), transparent 42%),
    rgba(252, 252, 253, 0.6);
}

.value-grid h3 {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0 0 16px;
  color: var(--gray-900);
  font-family: Sora, Inter, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.value-grid h3 img {
  width: 19px;
  height: 19px;
  padding: 6.5px;
  box-sizing: content-box;
  border-radius: 4px;
  background: var(--blue-100);
  box-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
}

.value-grid p {
  margin: 0;
  color: var(--gray-800);
  font-size: 16px;
  line-height: 24px;
}

.value-grid article.value-wide {
  grid-column: 1 / -1;
  min-height: 136px;
}

.value-deco {
  position: absolute;
  top: -6px;
  right: -26px;
  width: 344px;
  height: 172px;
  max-width: none;
  pointer-events: none;
}

.logo-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 32px;
}

.logo-heading h2 {
  margin: 0;
}

.logo-download {
  color: var(--blue-700);
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  text-decoration: none;
}

.logo-download:hover {
  text-decoration: underline;
}

.logo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.logo-row + .logo-row {
  margin-top: 32px;
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 232px;
  padding: 40px 16px;
}

.logo-tile-dark {
  border-radius: 8px;
  background: var(--gray-900);
}

.logo-row:first-of-type .logo-tile img {
  width: 192px;
  height: 192px;
}

.wordmark-light {
  display: flex;
  align-items: center;
  gap: 19px;
}

.wordmark-light img:first-child {
  width: 72px;
  height: 72px;
}

.wordmark-light img:last-child {
  width: 211px;
  height: 41px;
}

.palette {
  display: flex;
  gap: 24px;
  min-height: 224px;
  margin-bottom: 32px;
}

.swatch-label {
  display: flex;
  flex: 0 0 296px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 8px;
  color: var(--blue-25);
}

.swatch-blue {
  background: var(--blue-600);
}

.swatch-ink {
  background: var(--gray-900);
}

.swatch-label p {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
}

.swatch-label dl {
  margin: 0;
}

.swatch-label div {
  display: flex;
  gap: 16px;
  font-size: 14px;
  line-height: 20px;
}

.swatch-label dt,
.swatch-label dd {
  margin: 0;
  font-weight: 400;
}

.swatch-strip {
  display: flex;
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
}

.swatch-strip span {
  flex: 1;
}

.type-sample {
  display: flex;
  align-items: center;
  gap: 72px;
}

.type-aa {
  margin: 0;
  color: var(--gray-900);
  font-family: "Be Vietnam Pro", Inter, sans-serif;
  font-size: 180px;
  font-weight: 600;
  line-height: 0.9;
}

.type-name {
  margin: 0 0 32px;
  color: var(--gray-900);
  font-family: "Be Vietnam Pro", Inter, sans-serif;
  font-size: 44px;
  line-height: 1.1;
}

.type-weights {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 31px;
  margin: 0 0 32px;
  color: var(--gray-900);
  font-family: "Be Vietnam Pro", Inter, sans-serif;
  font-size: 19px;
}

.type-weights .w300 { font-weight: 300; }
.type-weights .w400 { font-weight: 400; }
.type-weights .w500 { font-weight: 500; }
.type-weights .w600 { font-weight: 600; }
.type-weights .w700 { font-weight: 700; }

.type-alphabet {
  max-width: 468px;
  margin: 0;
  color: var(--gray-600);
  font-family: "Be Vietnam Pro", Inter, sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
}

.illu-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.illu-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  padding: 40px 16px;
  border-radius: 8px;
  background: var(--gray-100);
}

.illu-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-join {
  padding: 64px 24px 80px;
  text-align: center;
}

.brand-join-kicker {
  margin: 0 0 12px;
  color: var(--blue-600);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.72px;
  line-height: 28px;
  text-transform: uppercase;
}

.brand-join h2 {
  margin: 0;
  color: var(--gray-900);
  font-family: Sora, Inter, sans-serif;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -1.12px;
  line-height: 68px;
}

.brand-join > p:last-of-type {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--gray-900);
  font-size: 20px;
  line-height: 30px;
}

.brand-join-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.brand-join-quiet,
.brand-join-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(370px, 100%);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  text-decoration: none;
}

.brand-join-quiet {
  border: 1px solid var(--blue-100);
  background: var(--blue-50);
  color: var(--blue-700);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
}

.brand-join-solid {
  border: 1px solid var(--blue-600);
  background: linear-gradient(85deg, #1570ef 0%, #1260cc 100%);
  color: #fff;
  box-shadow: 0 0 0 4px #ecf4fe, 0 1px 2px rgba(16, 24, 40, 0.05);
}

@media (max-width: 1100px) {
  .brand-layout {
    display: block;
    padding-left: 0;
  }

  .brand-toc {
    display: none;
  }

  .vision-art,
  .represents-scribble {
    display: none;
  }

  .value-deco {
    right: -80px;
    width: 220px;
    height: auto;
  }

  .brand-sections {
    display: flex;
    flex-direction: column;
  }

  .brand-section-logo { order: 1; }
  .brand-section-colors { order: 2; }
  .brand-section-type { order: 3; }
  .brand-section-illu { order: 4; }
  .brand-section-philosophy { order: 5; }
  .brand-section-vision { order: 6; }
  .brand-section-represents { order: 7; }

  .brand-hero {
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    min-height: 0;
    margin-right: 0;
    padding: 48px 20px;
  }

  .brand-hero h1 {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -0.72px;
  }

  .brand-hero-art {
    width: min(335px, 100%);
  }

  .brand-section {
    padding: 48px 20px;
  }

  .philosophy-top,
  .type-sample,
  .brand-join-actions {
    display: flex;
    flex-direction: column;
  }

  .logo-row {
    grid-template-columns: 1fr;
  }

  .brand-section-colors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }

  .brand-section-colors h2 {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .palette {
    flex-direction: column;
    min-height: 0;
    margin: 0;
  }

  .value-grid,
  .illu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .value-wide,
  .value-grid article {
    grid-column: auto;
  }

  .value-wide {
    grid-column: 1 / -1;
  }

  .ikigai,
  .type-aa {
    width: min(280px, 100%);
  }

  .type-aa {
    font-size: 120px;
  }

  .swatch-label {
    flex-basis: auto;
    min-height: 0;
    padding: 16px;
  }

  .palette .swatch-strip {
    flex-direction: column;
    min-height: 220px;
  }

  .brand-join h2 {
    font-size: 38px;
    line-height: 46px;
  }

  .value-deco {
    width: 160px;
    opacity: 0.7;
  }
}

@media (max-width: 640px) {
  .illu-grid {
    grid-template-columns: 1fr 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .logo-row:first-of-type .logo-tile img {
    width: 128px;
    height: 128px;
  }
}
