.brand-page {
  background: #ede8df;
}

.brand-page .site-header {
  background: rgba(237, 232, 223, 0.86);
  backdrop-filter: blur(18px);
}

.brand-page .site-nav > a[aria-current="page"] {
  color: var(--plum);
  font-weight: 700;
}

.brand-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 19px;
  color: #a54120;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-kicker > span {
  width: 22px;
  height: 2px;
  background: var(--orange);
}

.brand-kicker-light {
  color: #e99b7d;
}

.brand-hero h1,
.brand-essence h2,
.brand-section-heading h2,
.brand-name h2,
.brand-rules h2,
.brand-contact h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.brand-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.brand-button:hover {
  transform: translateY(-2px);
}

.brand-button span {
  color: var(--orange);
  font-size: 18px;
}

.brand-button-primary {
  background: var(--plum);
  box-shadow: 0 12px 30px rgba(43, 23, 52, 0.14);
  color: #fffaf0;
}

.brand-button-primary:hover {
  background: #3a2045;
}

.brand-button-secondary {
  border-color: rgba(43, 23, 52, 0.15);
  background: rgba(255, 253, 247, 0.6);
  color: var(--plum);
}

.brand-button-secondary:hover {
  border-color: rgba(43, 23, 52, 0.28);
  background: #fffdf7;
}

.brand-hero {
  position: relative;
  min-height: 790px;
  padding: 184px 0 125px;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 15%, rgba(255, 107, 53, 0.16), transparent 23%),
    radial-gradient(circle at 12% 91%, rgba(43, 23, 52, 0.1), transparent 29%),
    #ede8df;
}

.brand-hero::after {
  position: absolute;
  right: -210px;
  bottom: -390px;
  width: 780px;
  height: 780px;
  border: 1px solid rgba(43, 23, 52, 0.11);
  border-radius: 50%;
  content: "";
}

.brand-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.78fr;
  align-items: center;
  gap: clamp(58px, 8vw, 112px);
}

.brand-hero-copy {
  position: relative;
  z-index: 3;
}

.brand-hero h1 {
  max-width: 760px;
  color: var(--plum);
  font-size: clamp(66px, 7.5vw, 108px);
  line-height: 0.9;
}

.brand-hero h1 em {
  color: var(--orange);
  font-style: normal;
}

.brand-hero-copy > p:not(.brand-kicker) {
  max-width: 660px;
  margin: 31px 0 0;
  color: #635765;
  font-size: 18px;
  line-height: 1.72;
}

.brand-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 35px;
}

.brand-manifest {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(43, 23, 52, 0.15);
  border-radius: 28px;
  background: rgba(255, 253, 247, 0.78);
  box-shadow: 0 34px 75px rgba(43, 23, 52, 0.12);
}

.brand-manifest::after {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 230px;
  height: 230px;
  border: 44px solid rgba(255, 107, 53, 0.08);
  border-radius: 50%;
  content: "";
}

.brand-manifest-label {
  margin: 0;
  color: #9b8f98;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-manifest-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin: 28px 0 38px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.brand-manifest-flow span {
  max-width: 86px;
  color: var(--plum);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.brand-manifest-flow i {
  color: var(--orange);
  font-style: normal;
}

.brand-manifest blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--plum);
  font-family: "Manrope", sans-serif;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.brand-manifest-signature {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 57px;
}

.brand-manifest-signature small {
  color: var(--muted);
  font-size: 10px;
}

.brand-manifest-signature strong {
  color: var(--plum);
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  letter-spacing: -0.05em;
}

.brand-manifest-signature strong span {
  color: var(--orange);
}

.brand-orbit {
  position: absolute;
  top: 90px;
  left: calc(50% + 6px);
  width: 430px;
  height: 430px;
  border: 1px solid rgba(43, 23, 52, 0.08);
  border-radius: 50%;
}

.brand-orbit i {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 3px solid #ede8df;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 1px rgba(43, 23, 52, 0.12);
}

.brand-orbit i:nth-child(1) {
  top: 22px;
  left: 87px;
}

.brand-orbit i:nth-child(2) {
  right: -5px;
  bottom: 168px;
}

.brand-orbit i:nth-child(3) {
  bottom: 28px;
  left: 70px;
  background: var(--moss);
}

.brand-essence {
  position: relative;
  overflow: hidden;
  background: var(--plum-deep);
  color: #fff8ef;
}

.brand-essence::before {
  position: absolute;
  top: -270px;
  right: -120px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.brand-essence-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
  gap: clamp(60px, 9vw, 130px);
}

.brand-essence h2 {
  color: #fff8ef;
  font-size: clamp(45px, 5.8vw, 78px);
  line-height: 1.02;
}

.brand-essence-copy {
  padding-bottom: 8px;
}

.brand-essence-copy p {
  margin: 0;
  color: #c1b4c0;
  font-size: 15px;
  line-height: 1.75;
}

.brand-essence-copy p + p {
  margin-top: 22px;
}

.brand-section-heading {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 52px;
}

.brand-section-heading h2,
.brand-name h2,
.brand-rules h2,
.brand-contact h2 {
  color: var(--plum);
  font-size: clamp(43px, 5vw, 68px);
  line-height: 0.98;
}

.brand-section-heading > p {
  max-width: 500px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.brand-principles {
  background: #f7f3ec;
}

.brand-principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(43, 23, 52, 0.13);
  list-style: none;
}

.brand-principle-grid li {
  min-height: 310px;
  padding: 29px;
  background: #fffdf7;
}

.brand-principle-grid li > span,
.brand-voice-traits article > span,
.brand-behaviour-grid article > span {
  color: #b85631;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.brand-principle-grid h3 {
  max-width: 200px;
  margin: 94px 0 15px;
  color: var(--plum);
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.brand-principle-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.brand-name {
  overflow: hidden;
  background: #ded7cd;
}

.brand-name-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(60px, 10vw, 145px);
}

.brand-name-lockup {
  position: relative;
  display: flex;
  min-height: 430px;
  align-items: center;
  justify-content: center;
  padding: 50px;
  border-radius: 50%;
  background: var(--plum);
  box-shadow: 26px 32px 0 rgba(255, 107, 53, 0.11);
  color: #fffaf0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(53px, 6vw, 83px);
  font-weight: 800;
  letter-spacing: -0.07em;
  white-space: nowrap;
}

.brand-name-lockup::before,
.brand-name-lockup::after {
  position: absolute;
  border: 1px solid rgba(43, 23, 52, 0.17);
  border-radius: 50%;
  content: "";
}

.brand-name-lockup::before {
  inset: -26px;
}

.brand-name-lockup::after {
  inset: 29px;
  border-color: rgba(255, 255, 255, 0.09);
}

.brand-name-lockup i {
  color: var(--orange);
  font-style: normal;
}

.brand-name-copy > p:not(.brand-kicker) {
  margin: 24px 0 0;
  color: #5d525d;
  font-size: 15px;
  line-height: 1.72;
}

.brand-name-copy > p strong {
  color: var(--plum);
}

.brand-architecture {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 35px;
  overflow: hidden;
  border: 1px solid rgba(43, 23, 52, 0.12);
  border-radius: 17px;
  background: rgba(43, 23, 52, 0.12);
}

.brand-architecture div {
  display: flex;
  min-height: 108px;
  flex-direction: column;
  padding: 18px;
  background: rgba(255, 253, 247, 0.57);
}

.brand-architecture small {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-architecture strong {
  margin-top: auto;
  color: var(--plum);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  letter-spacing: -0.04em;
}

.brand-architecture span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.brand-master-kit {
  position: relative;
  overflow: hidden;
  background: #1b0e20;
  color: #fff8ef;
}

.brand-master-kit::before {
  position: absolute;
  top: -240px;
  right: -180px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(255, 107, 53, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.018), 0 0 0 180px rgba(255, 107, 53, 0.025);
  content: "";
}

.brand-master-kit .shell {
  position: relative;
}

.brand-master-kit .brand-section-heading h2 {
  color: #fff8ef;
}

.brand-master-kit .brand-section-heading > p {
  color: #bbaeb9;
}

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

.brand-master-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.035);
}

.brand-master-card header,
.brand-master-card footer {
  display: flex;
  align-items: center;
  padding: 16px 18px;
}

.brand-master-card header {
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-master-card header span,
.brand-master-resources span {
  color: #fff8ef;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-master-card header small {
  color: #9e909d;
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-master-stage {
  display: grid;
  min-height: 270px;
  place-items: center;
  padding: clamp(40px, 7vw, 84px);
  background: #f4f0e8;
}

.brand-master-stage img {
  display: block;
  width: min(100%, 380px);
  max-height: 120px;
}

.brand-master-reversed .brand-master-stage {
  background: #2b1734;
}

.brand-master-symbol .brand-master-stage img {
  width: 116px;
  height: 116px;
}

.brand-master-horizontal {
  grid-column: 1 / -1;
}

.brand-master-horizontal .brand-master-stage {
  min-height: 230px;
}

.brand-master-horizontal .brand-master-stage img {
  width: min(100%, 570px);
  max-height: 150px;
}

.brand-master-card footer {
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-master-card footer a,
.brand-master-resources nav a {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff8ef;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease;
}

.brand-master-card footer a:hover,
.brand-master-card footer a:focus-visible,
.brand-master-resources nav a:hover,
.brand-master-resources nav a:focus-visible {
  border-color: var(--orange);
  background: rgba(255, 107, 53, 0.1);
}

.brand-master-resources {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 40px;
  margin-top: 16px;
  padding: 25px 27px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.035);
}

.brand-master-resources p {
  max-width: 520px;
  margin: 7px 0 0;
  color: #a99ca8;
  font-size: 12px;
  line-height: 1.6;
}

.brand-master-resources nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-voice {
  background: #28152f;
  color: #fff8ef;
}

.brand-voice .brand-section-heading h2 {
  color: #fff8ef;
}

.brand-voice .brand-section-heading > p {
  color: #bbaeb9;
}

.brand-voice-traits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.brand-voice-traits article {
  min-height: 215px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.025);
}

.brand-voice-traits h3 {
  margin: 58px 0 11px;
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.brand-voice-traits p {
  margin: 0;
  color: #bbaeb9;
  font-size: 12px;
  line-height: 1.6;
}

.brand-writing-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.brand-writing-examples article {
  min-height: 250px;
  padding: 30px;
  border-radius: 21px;
}

.brand-writing-do {
  background: #dce9dc;
  color: #183225;
}

.brand-writing-dont {
  background: #f2dcd5;
  color: #522314;
}

.brand-writing-examples article > span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-writing-examples blockquote {
  max-width: 500px;
  margin: 45px 0 18px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.brand-writing-examples p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  opacity: 0.75;
}

.brand-visual {
  background: #f7f3ec;
}

.brand-visual-block,
.brand-type-grid {
  padding: 34px;
  border: 1px solid rgba(43, 23, 52, 0.12);
  border-radius: 24px;
  background: #fffdf7;
}

.brand-type-grid {
  display: grid;
  grid-template-columns: 0.48fr 1.52fr;
  gap: 65px;
  margin-top: 18px;
}

.brand-subheading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.brand-subheading > span {
  flex: 0 0 auto;
  color: #b85631;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.brand-subheading h3 {
  margin: -5px 0 7px;
  color: var(--plum);
  font-family: "Manrope", sans-serif;
  font-size: 26px;
  letter-spacing: -0.045em;
}

.brand-subheading p {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.brand-palette {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 31px;
}

.brand-palette article {
  min-width: 0;
}

.brand-palette article > div {
  height: 160px;
  border: 1px solid rgba(43, 23, 52, 0.1);
  border-radius: 14px;
}

.palette-register > div { background: #2b1734; }
.palette-stamp > div { background: #ff6b35; }
.palette-archive > div { background: #f4f0e8; }
.palette-chalk > div { background: #fffdf7; }
.palette-ink > div { background: #261d28; }
.palette-moss > div { background: #436956; }

.brand-palette h4 {
  margin: 12px 0 4px;
  color: var(--plum);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  letter-spacing: -0.03em;
}

.brand-palette p {
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  line-height: 1.55;
}

.brand-type-specimens {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--line);
}

.brand-type-specimens article {
  display: grid;
  grid-template-columns: 135px 1fr;
  align-items: baseline;
  gap: 18px;
  padding: 24px;
  background: #f7f3ec;
}

.brand-type-specimens small {
  color: #9a8e98;
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
}

.brand-type-specimens strong {
  color: var(--plum);
}

.brand-type-specimens p {
  grid-column: 2;
  margin: -8px 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
}

.type-manrope strong {
  font-family: "Manrope", sans-serif;
  font-size: clamp(28px, 4vw, 47px);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.type-inter strong {
  font-family: "Inter", sans-serif;
  font-size: clamp(20px, 2.5vw, 29px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.type-mono strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(12px, 1.5vw, 17px);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.brand-behaviour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.brand-behaviour-grid article {
  min-height: 210px;
  padding: 28px;
  border: 1px solid rgba(43, 23, 52, 0.12);
  border-radius: 21px;
  background: #ded7cd;
}

.brand-behaviour-grid h3 {
  margin: 57px 0 11px;
  color: var(--plum);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.brand-behaviour-grid p {
  margin: 0;
  color: #625762;
  font-size: 12px;
  line-height: 1.6;
}

.brand-library {
  background: #ede8df;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.brand-card {
  --brand-primary: #2b1734;
  --brand-accent: #ff6b35;
  --brand-surface: #f4f0e8;
  position: relative;
  display: grid;
  grid-template-rows: auto 210px auto auto auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(43, 23, 52, 0.13);
  border-radius: 23px;
  background: #fffdf7;
  box-shadow: 0 12px 30px rgba(43, 23, 52, 0.035);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.brand-card[data-brand="gohugo"] { --brand-primary: #0f172a; --brand-accent: #3b82f6; --brand-surface: #f1f5f9; }
.brand-card[data-brand="pimble"] { --brand-primary: #1d1d22; --brand-accent: #ff6a3c; --brand-surface: #f5f2ea; }
.brand-card[data-brand="rekly"] { --brand-primary: #174b3a; --brand-accent: #dbff72; --brand-surface: #f7f4ec; }
.brand-card[data-brand="bolagssok"] { --brand-primary: #1b4332; --brand-accent: #d8f3dc; --brand-surface: #fafaf8; }

.brand-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary) 0 72%, var(--brand-accent) 72%);
  content: "";
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(43, 23, 52, 0.09);
}

.brand-card > header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid rgba(43, 23, 52, 0.09);
}

.brand-card > header > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-primary);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.brand-card header div {
  display: flex;
  flex-direction: column-reverse;
  gap: 1px;
}

.brand-card h3 {
  margin: 0;
  color: var(--brand-primary);
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-card header small {
  color: var(--muted);
  font-size: 10px;
}

.brand-logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 42px;
  overflow: hidden;
  background: var(--brand-surface);
}

.brand-logo-stage::after {
  position: absolute;
  right: 18px;
  bottom: 15px;
  width: 42px;
  height: 42px;
  border-right: 1px solid rgba(43, 23, 52, 0.16);
  border-bottom: 1px solid rgba(43, 23, 52, 0.16);
  content: "";
}

.brand-logo-stage img {
  width: auto;
  max-width: 78%;
  max-height: 75px;
}

.brand-card > p {
  min-height: 63px;
  margin: 0;
  padding: 18px 22px 7px;
  color: #625863;
  font-size: 12px;
  line-height: 1.55;
}

.brand-swatches {
  display: flex;
  gap: 7px;
  padding: 10px 22px 17px;
}

.brand-swatches i {
  width: 25px;
  height: 25px;
  border: 1px solid rgba(43, 23, 52, 0.1);
  border-radius: 8px;
}

.brand-card[data-brand="gohugo"] .brand-swatches i:nth-child(1) { background: #0f172a; }
.brand-card[data-brand="gohugo"] .brand-swatches i:nth-child(2) { background: #3b82f6; }
.brand-card[data-brand="gohugo"] .brand-swatches i:nth-child(3) { background: #475569; }
.brand-card[data-brand="gohugo"] .brand-swatches i:nth-child(4) { background: #f1f5f9; }
.brand-card[data-brand="pimble"] .brand-swatches i:nth-child(1) { background: #1d1d22; }
.brand-card[data-brand="pimble"] .brand-swatches i:nth-child(2) { background: #ff6a3c; }
.brand-card[data-brand="pimble"] .brand-swatches i:nth-child(3) { background: #344445; }
.brand-card[data-brand="pimble"] .brand-swatches i:nth-child(4) { background: #bcd3d0; }
.brand-card[data-brand="rekly"] .brand-swatches i:nth-child(1) { background: #174b3a; }
.brand-card[data-brand="rekly"] .brand-swatches i:nth-child(2) { background: #dbff72; }
.brand-card[data-brand="rekly"] .brand-swatches i:nth-child(3) { background: #f7f4ec; }
.brand-card[data-brand="rekly"] .brand-swatches i:nth-child(4) { background: #ffb38a; }
.brand-card[data-brand="bolagssok"] .brand-swatches i:nth-child(1) { background: #1b4332; }
.brand-card[data-brand="bolagssok"] .brand-swatches i:nth-child(2) { background: #2d6a4f; }
.brand-card[data-brand="bolagssok"] .brand-swatches i:nth-child(3) { background: #d8f3dc; }
.brand-card[data-brand="bolagssok"] .brand-swatches i:nth-child(4) { background: #fafaf8; }
.brand-card:not([data-brand="gohugo"]):not([data-brand="pimble"]):not([data-brand="rekly"]):not([data-brand="bolagssok"]) .brand-swatches i:nth-child(1) { background: #2b1734; }
.brand-card:not([data-brand="gohugo"]):not([data-brand="pimble"]):not([data-brand="rekly"]):not([data-brand="bolagssok"]) .brand-swatches i:nth-child(2) { background: #ff6b35; }
.brand-card:not([data-brand="gohugo"]):not([data-brand="pimble"]):not([data-brand="rekly"]):not([data-brand="bolagssok"]) .brand-swatches i:nth-child(3) { background: #f4f0e8; }
.brand-card:not([data-brand="gohugo"]):not([data-brand="pimble"]):not([data-brand="rekly"]):not([data-brand="bolagssok"]) .brand-swatches i:nth-child(4) { background: #436956; }
.brand-card[data-brand="by-hugo-status"] .brand-swatches i:nth-child(3) { background: #287149; }
.brand-card[data-brand="by-hugo-status"] .brand-swatches i:nth-child(4) { background: #a45f00; }

.brand-card > footer {
  display: flex;
  gap: 7px;
  padding: 15px 22px 19px;
  border-top: 1px solid rgba(43, 23, 52, 0.09);
}

.brand-card > footer a {
  min-width: 58px;
  padding: 8px 11px;
  border: 1px solid rgba(43, 23, 52, 0.13);
  border-radius: 9px;
  color: var(--brand-primary);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.brand-card > footer a:hover {
  border-color: var(--brand-primary);
  background: var(--brand-surface);
}

.brand-rules {
  position: relative;
  overflow: hidden;
  background: var(--plum-deep);
  color: #fff8ef;
}

.brand-rules::before {
  position: absolute;
  top: -240px;
  left: -120px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.brand-rules-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 95px;
}

.brand-rules h2 {
  color: #fff8ef;
}

.brand-rules-heading > p:not(.brand-kicker) {
  max-width: 390px;
  margin: 26px 0 0;
  color: #b7aab8;
  font-size: 13px;
  line-height: 1.7;
}

.brand-rule-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  list-style: none;
}

.brand-rule-list li {
  display: grid;
  min-height: 190px;
  grid-template-columns: 35px 1fr;
  gap: 15px;
  padding: 28px;
  background: #211227;
}

.brand-rule-list li > span {
  color: #e7825d;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.brand-rule-list h3 {
  margin: 0 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
}

.brand-rule-list p {
  margin: 0;
  color: #b7aab8;
  font-size: 12px;
  line-height: 1.65;
}

.brand-contact {
  background: #ede8df;
}

.brand-contact-card {
  display: grid;
  grid-template-columns: 1fr 0.68fr;
  align-items: end;
  gap: 70px;
  padding: 64px;
  border: 1px solid rgba(43, 23, 52, 0.13);
  border-radius: 28px;
  background: #fffdf7;
  box-shadow: 0 24px 55px rgba(43, 23, 52, 0.06);
}

.brand-contact-card > div:last-child {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 20px;
}

.brand-contact-card > div:last-child p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1050px) {
  .brand-hero {
    min-height: auto;
  }

  .brand-hero-grid,
  .brand-essence-grid,
  .brand-name-grid,
  .brand-rules-grid,
  .brand-contact-card {
    grid-template-columns: 1fr;
  }

  .brand-manifest {
    max-width: 700px;
  }

  .brand-principle-grid,
  .brand-voice-traits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-principle-grid li {
    min-height: 260px;
  }

  .brand-name-lockup {
    width: min(480px, 80vw);
    min-height: auto;
    aspect-ratio: 1;
  }

  .brand-palette {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 24px;
  }

  .brand-master-resources {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .brand-master-resources nav {
    justify-content: flex-start;
  }

  .brand-type-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .brand-rules-grid,
  .brand-contact-card {
    gap: 52px;
  }
}

@media (max-width: 720px) {
  .brand-page .section-pad {
    padding-block: 86px;
  }

  .brand-hero {
    padding: 142px 0 86px;
  }

  .brand-hero h1 {
    font-size: clamp(52px, 15vw, 70px);
  }

  .brand-hero-copy > p:not(.brand-kicker) {
    font-size: 16px;
  }

  .brand-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-button {
    width: 100%;
  }

  .brand-manifest {
    padding: 27px 23px;
    border-radius: 21px;
  }

  .brand-manifest-flow {
    align-items: flex-start;
  }

  .brand-manifest-flow span {
    font-size: 9px;
  }

  .brand-manifest-signature {
    margin-top: 42px;
  }

  .brand-essence h2,
  .brand-section-heading h2,
  .brand-name h2,
  .brand-rules h2,
  .brand-contact h2 {
    font-size: 42px;
  }

  .brand-section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 35px;
  }

  .brand-principle-grid,
  .brand-voice-traits,
  .brand-writing-examples,
  .brand-behaviour-grid,
  .brand-master-grid,
  .brand-grid,
  .brand-rule-list {
    grid-template-columns: 1fr;
  }

  .brand-principle-grid li {
    min-height: 220px;
  }

  .brand-principle-grid h3 {
    margin-top: 65px;
  }

  .brand-name-grid {
    gap: 70px;
  }

  .brand-name-lockup {
    width: min(335px, calc(100vw - 64px));
    padding: 30px;
    font-size: 52px;
  }

  .brand-architecture {
    grid-template-columns: 1fr;
  }

  .brand-architecture div {
    min-height: 90px;
  }

  .brand-master-horizontal {
    grid-column: auto;
  }

  .brand-master-stage,
  .brand-master-horizontal .brand-master-stage {
    min-height: 190px;
    padding: 39px 28px;
  }

  .brand-master-card header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .brand-master-resources {
    padding: 22px 19px;
  }

  .brand-voice-traits article {
    min-height: 185px;
  }

  .brand-voice-traits h3 {
    margin-top: 47px;
  }

  .brand-writing-examples article {
    min-height: 225px;
  }

  .brand-visual-block,
  .brand-type-grid {
    padding: 24px 19px;
    border-radius: 19px;
  }

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

  .brand-palette article > div {
    height: 126px;
  }

  .brand-type-specimens article {
    display: block;
    padding: 20px;
  }

  .brand-type-specimens strong {
    display: block;
    margin-top: 16px;
  }

  .brand-type-specimens p {
    margin-top: 12px;
  }

  .brand-card {
    grid-template-rows: auto 175px auto auto auto;
  }

  .brand-logo-stage {
    padding: 30px;
  }

  .brand-rule-list li {
    min-height: 160px;
  }

  .brand-contact-card {
    padding: 35px 24px;
    border-radius: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-card,
  .brand-button {
    transition: none;
  }
}
