:root {
  --ink: #151515;
  --paper: #f7f5ef;
  --acid: #ee8a35;
  --clay: #eef0ec;
  --line: rgba(21, 21, 21, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--clay); color: var(--ink); font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

header {
  width: min(calc(100% - 36px), 1340px);
  margin: 18px auto 0;
  padding: 34px 28px;
  border-radius: 34px 34px 0 0;
  background: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { font: 700 32px/1 "Syne", sans-serif; letter-spacing: -.08em; }
.logo span { color: var(--acid); }
.home-dot { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--acid); }
.back-link { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }

main {
  width: min(calc(100% - 36px), 1340px);
  margin: 0 auto 18px;
  padding: 80px 4vw 120px;
  border-radius: 0 0 34px 34px;
  background: var(--paper);
}

.eyebrow {
  margin: 0 0 26px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin: 0 0 84px;
  font: 500 clamp(52px, 8vw, 118px)/.9 "DM Sans", sans-serif;
  letter-spacing: -.06em;
}

h1 em { font: inherit; letter-spacing: inherit; }
.orange-stop { color: var(--acid); }

.brand-page-grid {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.brand-panel {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) 1.7fr;
  gap: 6vw;
  align-items: start;
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.brand-logo-box {
  min-height: 210px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 42px;
  background: rgba(255,255,255,.22);
}

.brand-logo-box img {
  width: auto;
  max-width: 260px;
  max-height: 88px;
  object-fit: contain;
  filter: grayscale(1) brightness(0);
}

.brand-logo-box--whac img {
  max-width: 220px;
  max-height: 68px;
  filter: none;
}

.brand-logo-box--castledex {
  padding: 26px;
  background: var(--paper);
}

.brand-logo-box--castledex img {
  width: 100%;
  max-width: 360px;
  max-height: 118px;
  filter: none;
  object-fit: contain;
}

.brand-logo-box--image {
  min-height: 320px;
  padding: 0;
  overflow: hidden;
}

.brand-logo-box--image img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  filter: none;
}

.brand-logo-box--type span {
  font: 700 clamp(34px, 5.5vw, 76px)/.85 "Syne", sans-serif;
  letter-spacing: -.08em;
}

.brand-index {
  margin: 0 0 22px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.brand-index--with-logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-index--with-logo strong {
  font: 700 18px/1 "Syne", sans-serif;
  letter-spacing: -.06em;
}

.brand-copy h2 {
  max-width: 780px;
  margin: 0 0 28px;
  font: 700 clamp(16px, 2.1vw, 31px)/1.08 "DM Sans", sans-serif;
  letter-spacing: -.05em;
}

.brand-copy p {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
}

.brand-copy a {
  color: var(--acid);
  border-bottom: 1px solid currentColor;
}

.brand-image {
  max-width: 860px;
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,.3);
}

.brand-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 760px) {
  header { padding: 24px 18px; border-radius: 24px 24px 0 0; }
  main { padding: 62px 18px 90px; border-radius: 0 0 24px 24px; }
  h1 { margin-bottom: 56px; }
  .brand-panel { grid-template-columns: 1fr; gap: 28px; padding: 42px 0; }
  .brand-logo-box { min-height: 150px; padding: 30px; }
  .brand-logo-box img { max-width: 210px; max-height: 70px; }
  .brand-logo-box--whac img { max-width: 180px; max-height: 56px; }
  .brand-logo-box--castledex { padding: 22px; }
  .brand-logo-box--castledex img { max-width: 260px; max-height: 92px; }
  .brand-image { border-radius: 18px; }
}
