: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;
}

.home-dot { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--acid); }
.project-mark { display: block; width: 54px; transform: translateY(6px); }
.project-mark img { width: 100%; height: auto; }
h1 span { color: var(--acid); }
.back-link { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; transition: color .25s; }
.back-link:hover { color: var(--acid); }

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: 1040px;
  margin: 0 0 34px;
  font: 500 clamp(52px, 8vw, 118px)/.9 "DM Sans", sans-serif;
  letter-spacing: -.06em;
}

.project-subtitle {
  max-width: none;
  margin: 0 0 18px;
  color: var(--acid);
  font: 500 clamp(18px, 2.4vw, 34px)/1 "DM Sans", sans-serif;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.project-subtitle span {
  display: inline-block;
  color: var(--ink);
  font-size: clamp(10px, 1vw, 14px);
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: translateY(.28em);
}

.project-hero {
  overflow: hidden;
  margin-bottom: 40px;
}

.project-hero img {
  height: min(68vh, 760px);
  object-fit: cover;
}

.project-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 7vw;
  padding: 40px 0 70px;
  border-top: 1px solid var(--line);
}

.project-meta p,
.sponsors > p,
.future-grid span {
  margin: 0 0 14px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.project-copy h2 {
  max-width: 820px;
  margin: 0 0 28px;
  font: 500 clamp(25px, 3.1vw, 46px)/1.18 "DM Sans", sans-serif;
  letter-spacing: -.035em;
}

.project-copy p {
  max-width: 680px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.project-copy p + p {
  margin-top: 0;
}

.project-copy p:nth-of-type(3) {
  margin-top: 10px;
}

.project-link {
  display: inline-flex;
  gap: 14px;
  margin-top: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .25s, padding .25s;
}

.project-link:hover {
  padding-left: 10px;
  color: var(--acid);
}

.sponsors {
  padding: 34px 0 74px;
  border-top: 1px solid var(--line);
  text-align: right;
}

.brand-strip {
  display: flex;
  justify-content: flex-end;
  gap: clamp(12px, 1.6vw, 22px);
  margin-top: 18px;
}

.brand-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(78px, 7vw, 94px);
  height: clamp(78px, 7vw, 94px);
  border-radius: 50%;
  background: white;
}

.brand-strip img {
  width: auto;
  max-width: 58%;
  max-height: 34%;
  object-fit: contain;
  filter: grayscale(1) brightness(0);
}

.brand-strip .brand-strip-castledex img {
  max-width: 78%;
  max-height: 42%;
  filter: none;
}

.brand-strip-wordmark {
  color: var(--ink);
  font: 700 clamp(23px, 2.2vw, 30px)/.85 "Syne", sans-serif;
  letter-spacing: -.08em;
}

.future-projects {
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.future-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.future-grid article {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.future-grid h2 {
  max-width: 420px;
  margin: auto 0 20px;
  font: 500 clamp(25px, 3.1vw, 46px)/1.18 "DM Sans", sans-serif;
  letter-spacing: -.035em;
}

.future-grid p {
  max-width: 420px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

@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: 48px; }
  .project-subtitle { white-space: normal; font-size: clamp(30px, 10vw, 48px); }
  .project-hero img { height: 112vw; max-height: 620px; }
  .project-detail, .future-grid { grid-template-columns: 1fr; }
  .project-detail { gap: 34px; padding-bottom: 56px; }
  .sponsors { text-align: left; }
  .brand-strip { justify-content: flex-start; flex-wrap: wrap; }
  .brand-strip a { width: 76px; height: 76px; }
  .future-grid article { min-height: 220px; }
}
