:root {
  color-scheme: dark;
  --bg: #030508;
  --bg-2: #080c11;
  --surface: rgba(17, 23, 30, 0.76);
  --surface-2: #11171e;
  --line: rgba(228, 236, 245, 0.16);
  --line-strong: rgba(228, 236, 245, 0.28);
  --text: #f5f7fa;
  --muted: #aab3bd;
  --soft: #6f7b87;
  --accent: #25c8ff;
  --accent-2: #7de8ff;
  --green: #77df9f;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 112px 112px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 72%, transparent);
  z-index: -1;
}

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

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

button {
  font: inherit;
}

.bb-shell {
  width: min(var(--max), calc(100% - 56px));
  margin-inline: auto;
}

.brandbook-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  width: min(var(--max), calc(100% - 56px));
  height: 68px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(228, 236, 245, 0.12);
  border-radius: 8px;
  background: rgba(3, 5, 8, 0.62);
  backdrop-filter: blur(18px);
}

.brand-lockup img {
  width: 158px;
}

.brandbook-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: rgba(245, 247, 250, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.brandbook-nav a:hover,
.brandbook-nav a:focus-visible {
  color: var(--accent-2);
}

.header-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 760;
}

.bb-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 120px 0 76px;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 8, 0.92) 0%, rgba(3, 5, 8, 0.64) 42%, rgba(3, 5, 8, 0.1) 100%),
    linear-gradient(180deg, rgba(3, 5, 8, 0.28) 0%, rgba(3, 5, 8, 0.05) 50%, #030508 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.chapter {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 780;
}

.hero-content h1 {
  max-width: 890px;
  margin: 0;
  font-size: clamp(56px, 8vw, 118px);
  line-height: 0.94;
  font-weight: 780;
}

.hero-content > p:not(.chapter) {
  max-width: 700px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.hero-actions a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
}

.hero-actions a:first-child {
  background: linear-gradient(180deg, #42d6ff, #07aeea);
  border-color: rgba(125, 232, 255, 0.78);
  color: #041018;
}

.bb-section,
.bb-band {
  padding: 116px 0;
}

.bb-band {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 12, 17, 0.82), rgba(3, 5, 8, 0.82));
}

.section-heading {
  max-width: 860px;
}

.section-heading.compact {
  max-width: 720px;
}

.section-heading h2,
.residential-layout h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.01;
  font-weight: 780;
}

.section-heading p:not(.chapter),
.residential-layout p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 52px;
}

.principle-grid article {
  min-height: 320px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
}

.principle-grid span,
.logo-notes span,
.image-gallery span,
.application-grid span,
.type-sample span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 780;
}

.principle-grid h3 {
  margin: 44px 0 0;
  font-size: 28px;
  line-height: 1.08;
}

.principle-grid p {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.identity-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(560px, 1.14fr);
  gap: 72px;
  align-items: center;
}

.logo-showcase {
  display: grid;
  gap: 14px;
}

.logo-stage {
  min-height: 210px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #030508;
}

.logo-stage.light {
  background: #f5f7fa;
}

.logo-stage img {
  width: min(70%, 460px);
}

.logo-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.logo-notes span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.color-section,
.type-section {
  border-top: 1px solid var(--line);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 42px;
}

.swatches div {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--swatch);
  color: var(--text);
}

.swatches .light-swatch {
  color: #030508;
}

.swatches span {
  font-size: 18px;
  font-weight: 780;
}

.swatches strong {
  font-size: 13px;
  opacity: 0.72;
}

.type-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(420px, 0.95fr);
  gap: 70px;
  align-items: start;
  margin-top: 42px;
}

.type-sample {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.type-sample h3 {
  margin: 42px 0 0;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.98;
}

.voice-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
}

.voice-rules p {
  margin: 0;
  color: var(--accent-2);
  font-weight: 780;
}

.voice-rules ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.residential-feature {
  padding: 86px 0;
}

.residential-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(620px, 1.28fr);
  gap: 76px;
  align-items: center;
}

.residential-layout figure {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.42);
}

.residential-layout figure img {
  width: 100%;
}

.module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.module-list span {
  padding: 10px 12px;
  border: 1px solid rgba(125, 232, 255, 0.26);
  border-radius: 4px;
  color: var(--accent-2);
  background: rgba(37, 200, 255, 0.08);
  font-size: 13px;
  font-weight: 760;
}

.gallery-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.gallery-filters button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.gallery-filters button.is-active {
  border-color: rgba(125, 232, 255, 0.62);
  color: #041018;
  background: var(--accent);
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 44px;
}

.image-gallery article {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.026);
  transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.image-gallery article.is-hidden {
  display: none;
}

.image-gallery article:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 232, 255, 0.42);
}

.image-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.image-gallery div {
  min-height: 132px;
  padding: 16px;
}

.image-gallery h3 {
  margin: 12px 0 0;
  font-size: 19px;
}

.image-gallery p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.applications .section-heading {
  max-width: 1000px;
}

.application-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 14px;
  margin-top: 52px;
}

.application-grid a {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.application-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #030508;
}

.brandbook-footer {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.brandbook-footer img {
  width: 142px;
}

.brandbook-footer a {
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 760;
}

@media (max-width: 1180px) {
  .brandbook-header {
    grid-template-columns: 170px 1fr;
  }

  .header-action {
    display: none;
  }

  .identity-layout,
  .residential-layout,
  .type-layout,
  .gallery-heading {
    grid-template-columns: 1fr;
  }

  .principle-grid,
  .swatches,
  .image-gallery,
  .application-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-filters {
    justify-content: start;
  }
}

@media (max-width: 760px) {
  .bb-shell,
  .brandbook-header {
    width: min(100% - 28px, var(--max));
  }

  .brandbook-header {
    height: auto;
    min-height: 66px;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .brand-lockup img {
    width: 136px;
  }

  .brandbook-nav {
    justify-content: start;
    flex-wrap: wrap;
    gap: 10px 18px;
    overflow-x: visible;
    padding-bottom: 0;
    font-size: 13px;
  }

  .bb-hero {
    min-height: 92svh;
    padding-top: 152px;
  }

  .hero-content h1 {
    font-size: clamp(48px, 14vw, 68px);
  }

  .bb-section,
  .bb-band {
    padding: 82px 0;
  }

  .principle-grid,
  .swatches,
  .image-gallery,
  .application-grid,
  .voice-rules,
  .logo-notes {
    grid-template-columns: 1fr;
  }

  .principle-grid article {
    min-height: auto;
  }

  .image-gallery img,
  .application-grid img {
    aspect-ratio: 16 / 10;
  }

  .brandbook-footer {
    padding: 28px 0;
    flex-direction: column;
    align-items: start;
  }
}

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