html {
  scroll-padding-top: 0;
}

.brandbook-page {
  background: #f4f2f4;
  color: var(--ink);
}

.brandbook-nav {
  position: sticky;
  top: 60px;
  left: auto;
  right: auto;
  z-index: 900;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 12, 16, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: none;
}

.brandbook-nav-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brandbook-nav-title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brandbook-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.brandbook-nav-links::-webkit-scrollbar {
  display: none;
}

.brandbook-nav-links a {
  position: relative;
  padding: 17px 0 15px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.brandbook-nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.brandbook-nav-links a:hover,
.brandbook-nav-links a.active {
  color: #fff;
}

.brandbook-nav-links a.active::after {
  transform: scaleX(1);
}

.brandbook-hero {
  position: relative;
  min-height: calc(100svh - 112px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 76% 30%, rgba(125, 69, 124, 0.34), transparent 35%),
    linear-gradient(135deg, #0b090c 0%, #1c111d 58%, #2d122b 100%);
}

.brandbook-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
}

.brandbook-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 80px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.brandbook-eyebrow,
.brandbook-kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brandbook-hero .brandbook-eyebrow {
  color: rgba(255, 255, 255, 0.58);
}

.brandbook-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(58px, 7.4vw, 102px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.brandbook-hero-lead {
  max-width: 650px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 400;
  line-height: 1.52;
}

.brandbook-meta {
  display: flex;
  gap: 54px;
  margin: 54px 0 0;
}

.brandbook-meta div {
  min-width: 110px;
}

.brandbook-meta dt {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brandbook-meta dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.brandbook-hero-mark {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 58px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.brandbook-hero-mark::before,
.brandbook-hero-mark::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(255, 255, 255, 0.3);
}

.brandbook-hero-mark::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.brandbook-hero-mark::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.brandbook-hero-mark img {
  width: min(100%, 390px);
  height: auto;
}

.brandbook-hero-mark-line {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.38);
}

.brandbook-hero-mark-caption {
  position: absolute;
  right: 28px;
  bottom: 24px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.brandbook-section {
  padding: 140px 0;
  scroll-margin-top: 110px;
}

.brandbook-section-heading {
  display: grid;
  grid-template-columns: 90px minmax(0, 760px);
  gap: 34px;
  margin-bottom: 72px;
}

.brandbook-section-index {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brandbook-section-heading h2,
.brandbook-downloads-hero h2 {
  margin: 0;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.brandbook-section-heading p:not(.brandbook-section-index),
.brandbook-downloads-hero p:not(.brandbook-section-index) {
  max-width: 690px;
  margin: 24px 0 0;
  color: #5f5b60;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.5;
}

.brandbook-logo-section {
  background: #f4f2f4;
}

.brandbook-logo-list {
  display: grid;
  gap: 70px;
}

.brandbook-logo-item {
  border-bottom: 1px solid #cfcbcf;
  padding-bottom: 68px;
}

.brandbook-logo-stage {
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 74px;
}

.brandbook-logo-stage--dark {
  background: #0b0b0d;
}

.brandbook-logo-stage--light {
  background: #fff;
}

.brandbook-logo-stage img {
  width: min(72%, 630px);
  max-height: 140px;
  object-fit: contain;
}

.brandbook-logo-stage--emblem img {
  width: min(50%, 500px);
  max-height: 260px;
}

.brandbook-logo-info {
  display: flex;
  justify-content: space-between;
  gap: 42px;
  align-items: flex-start;
  padding-top: 28px;
}

.brandbook-logo-info h3,
.brandbook-guideline h3 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.035em;
}

.brandbook-logo-info p,
.brandbook-guideline > p:not(.brandbook-kicker) {
  max-width: 620px;
  margin: 10px 0 0;
  color: #666166;
  font-size: 16px;
  line-height: 1.6;
}

.brandbook-format-list {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.brandbook-format-list a {
  min-width: 56px;
  padding: 10px 14px;
  border: 1px solid #bdb8bd;
  border-radius: 999px;
  color: #302d30;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.brandbook-format-list a:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.brandbook-guideline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
  padding-top: 98px;
}

.brandbook-guideline {
  min-width: 0;
}

.brandbook-safe-area {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 38px;
  padding: 72px;
  background: #2d122b;
}

.brandbook-safe-area-logo {
  width: 100%;
  padding: 50px;
  border: 1px dashed rgba(255, 255, 255, 0.45);
}

.brandbook-safe-area-logo img {
  display: block;
  width: 100%;
}

.brandbook-safe-area-label {
  position: absolute;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brandbook-safe-area-label--top {
  top: 40px;
}

.brandbook-safe-area-label--side {
  left: 28px;
  transform: rotate(-90deg);
}

.brandbook-size-demo {
  min-height: 330px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  background: #d7d2d7;
}

.brandbook-size-demo > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
  background: #fff;
}

.brandbook-size-demo span {
  margin-bottom: 52px;
  color: #777177;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.brandbook-size-demo img {
  width: 100%;
  max-height: 58px;
  object-fit: contain;
}

.brandbook-size-demo > div:last-child img {
  width: 76%;
}

.brandbook-size-demo small {
  margin-top: 52px;
  color: #777177;
  font-size: 10px;
}

.brandbook-color-section {
  color: #fff;
  background: #111013;
}

.brandbook-section-heading--light p:not(.brandbook-section-index) {
  color: rgba(255, 255, 255, 0.58);
}

.brandbook-color-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 470px;
}

.brandbook-color {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 22px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(127, 127, 127, 0.2);
  background: var(--swatch);
  color: var(--swatch-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: flex-grow 0.28s ease, transform 0.28s ease;
}

.brandbook-color:last-child {
  border-right: 0;
}

.brandbook-color:hover,
.brandbook-color:focus-visible {
  z-index: 1;
  transform: translateY(-8px);
}

.brandbook-color:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.brandbook-color-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brandbook-color-values {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.brandbook-color-values strong {
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: -0.025em;
}

.brandbook-color-values small {
  opacity: 0.68;
  font-size: 10px;
}

.brandbook-color-copy {
  position: absolute;
  right: 20px;
  bottom: 22px;
  opacity: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brandbook-color:hover .brandbook-color-copy,
.brandbook-color.is-copied .brandbook-color-copy {
  opacity: 0.72;
  transform: translateY(0);
}

.brandbook-color.is-copied .brandbook-color-copy {
  font-size: 0;
}

.brandbook-color.is-copied .brandbook-color-copy::after {
  content: "Másolva";
  font-size: 10px;
}

.brandbook-copy-status {
  min-height: 20px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  text-align: right;
}

.brandbook-type-section {
  background: #fff;
}

.brandbook-type-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: end;
  padding: 58px 0 72px;
  border-top: 1px solid #d6d2d6;
  border-bottom: 1px solid #d6d2d6;
}

.brandbook-type-hero h3 {
  margin: 0;
  font-size: clamp(62px, 10vw, 138px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.brandbook-type-hero > div > p:last-child {
  margin: 26px 0 0;
  color: #6a656a;
  font-size: 14px;
}

.brandbook-type-glyphs {
  margin: 0;
  color: var(--primary);
  font-size: clamp(110px, 17vw, 220px);
  font-weight: 800;
  letter-spacing: -0.1em;
  line-height: 0.72;
}

.brandbook-type-samples {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.8fr;
  gap: 62px;
  padding-top: 78px;
}

.brandbook-type-samples article {
  min-width: 0;
}

.brandbook-type-samples span {
  display: block;
  margin-bottom: 28px;
  color: #8a858a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.brandbook-type-display,
.brandbook-type-heading,
.brandbook-type-body {
  margin: 0;
}

.brandbook-type-display {
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.brandbook-type-heading {
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.brandbook-type-body {
  color: #575257;
  font-size: 16px;
  line-height: 1.65;
}

.brandbook-usage-section {
  background: #eeebee;
}

.brandbook-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px 30px;
}

.brandbook-usage-item {
  min-width: 0;
}

.brandbook-usage-preview {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  overflow: hidden;
  background: #201620;
}

.brandbook-usage-preview img {
  width: 88%;
  max-height: 80px;
  transition: none;
}

.brandbook-usage-preview > span {
  position: absolute;
  top: 15px;
  right: 18px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.brandbook-usage-preview--distort img {
  transform: scaleX(0.65) scaleY(1.45);
}

.brandbook-usage-preview--recolor img {
  filter: sepia(1) saturate(7) hue-rotate(90deg);
}

.brandbook-usage-preview--rotate img {
  transform: rotate(-12deg);
}

.brandbook-usage-preview--effect img {
  filter: drop-shadow(8px 8px 2px #7d457c);
}

.brandbook-usage-preview--contrast {
  background: #ded9de;
}

.brandbook-usage-preview--contrast img {
  opacity: 0.22;
}

.brandbook-usage-preview--proportion img {
  transform: skewX(-18deg);
}

.brandbook-usage-item h3 {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.brandbook-downloads-section {
  color: #fff;
  background:
    radial-gradient(circle at 85% 5%, rgba(125, 69, 124, 0.36), transparent 33%),
    #0c0a0d;
}

.brandbook-downloads-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 80px;
  align-items: end;
  padding-bottom: 74px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brandbook-downloads-hero p:not(.brandbook-section-index) {
  color: rgba(255, 255, 255, 0.58);
}

.brandbook-download-button {
  min-width: 310px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.brandbook-download-button:hover {
  background: #fff;
  color: #171218;
  transform: translateY(-3px);
}

.brandbook-download-button svg {
  width: 19px;
  height: 19px;
}

.brandbook-download-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 54px;
  padding-top: 48px;
}

.brandbook-download-list a {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 25px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.brandbook-download-list a:hover {
  border-color: rgba(255, 255, 255, 0.62);
}

.brandbook-download-list span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brandbook-download-list strong {
  font-size: 14px;
  font-weight: 600;
}

.brandbook-download-list small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

.brandbook-download-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .brandbook-nav-inner {
    padding-right: 0;
  }

  .brandbook-nav-title {
    display: none;
  }

  .brandbook-nav-links {
    width: 100%;
  }

  .brandbook-hero-inner {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .brandbook-hero-mark {
    min-height: 320px;
  }

  .brandbook-guideline-grid,
  .brandbook-type-samples {
    grid-template-columns: 1fr;
  }

  .brandbook-type-samples {
    gap: 56px;
  }

  .brandbook-color-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: auto;
  }

  .brandbook-color {
    min-height: 280px;
  }

  .brandbook-usage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brandbook-downloads-hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .brandbook-download-button {
    min-width: 0;
    width: fit-content;
  }
}

@media (max-width: 680px) {
  .brandbook-nav {
    top: 60px;
  }

  .brandbook-nav-inner {
    padding-left: 20px;
  }

  .brandbook-nav-links {
    gap: 22px;
  }

  .brandbook-hero {
    min-height: auto;
  }

  .brandbook-hero-inner {
    padding-top: 84px;
    padding-bottom: 72px;
  }

  .brandbook-hero h1 {
    font-size: clamp(49px, 16vw, 72px);
  }

  .brandbook-meta {
    gap: 28px;
    justify-content: space-between;
  }

  .brandbook-hero-mark {
    min-height: 250px;
    padding: 40px;
  }

  .brandbook-section {
    padding: 92px 0;
  }

  .brandbook-section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 52px;
  }

  .brandbook-section-index {
    margin-top: 0;
  }

  .brandbook-logo-list {
    gap: 54px;
  }

  .brandbook-logo-stage {
    min-height: 250px;
    padding: 42px 28px;
  }

  .brandbook-logo-stage img {
    width: 86%;
  }

  .brandbook-logo-stage--emblem img {
    width: 75%;
    max-height: 180px;
  }

  .brandbook-logo-info {
    flex-direction: column;
    gap: 24px;
  }

  .brandbook-guideline-grid {
    gap: 72px;
    padding-top: 72px;
  }

  .brandbook-safe-area {
    min-height: 260px;
    padding: 50px 38px;
  }

  .brandbook-safe-area-logo {
    padding: 34px 24px;
  }

  .brandbook-size-demo {
    min-height: 290px;
  }

  .brandbook-size-demo > div {
    padding: 25px 18px;
  }

  .brandbook-color-grid {
    grid-template-columns: 1fr;
  }

  .brandbook-color {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid rgba(127, 127, 127, 0.22);
  }

  .brandbook-color:hover,
  .brandbook-color:focus-visible {
    transform: none;
  }

  .brandbook-type-hero {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .brandbook-type-glyphs {
    text-align: right;
  }

  .brandbook-usage-grid,
  .brandbook-download-list {
    grid-template-columns: 1fr;
  }

  .brandbook-usage-preview {
    height: 190px;
  }

  .brandbook-downloads-hero {
    padding-bottom: 54px;
  }

  .brandbook-download-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brandbook-nav-links a,
  .brandbook-format-list a,
  .brandbook-color,
  .brandbook-download-button,
  .brandbook-download-list a {
    transition: none;
  }
}
