:root {
  color-scheme: dark;
  --ink: #f3f0e8;
  --muted: #aaa69c;
  --paper: #11110f;
  --panel: #191916;
  --line: rgba(243, 240, 232, 0.12);
  --gold: #e1b45c;
  --violet: #8369ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 11%, rgba(225, 180, 92, 0.07), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms ease;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 660px;
  padding: 140px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-glow {
  position: absolute;
  top: 115px;
  right: 6%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(225, 180, 92, 0.09);
  filter: blur(90px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Newsreader", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 820px;
  margin-bottom: 31px;
  font-size: clamp(72px, 9vw, 126px);
  line-height: 0.86;
}

h1 em {
  color: var(--gold);
  font-weight: 400;
}

.intro {
  max-width: 560px;
  margin-bottom: 35px;
  color: var(--muted);
  font-family: "Newsreader", serif;
  font-size: 23px;
  line-height: 1.45;
}

.text-link {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(225, 180, 92, 0.5);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.text-link span {
  color: var(--gold);
}

.orbit {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 250px;
  height: 250px;
  opacity: 0.65;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(225, 180, 92, 0.3);
  border-radius: 50%;
  transform: rotate(-25deg) scaleY(0.32);
}

.ring-two {
  transform: rotate(32deg) scaleY(0.32);
}

.orbit-dot {
  position: absolute;
  top: 53px;
  left: 37px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px var(--gold);
}

.projects {
  padding: 110px 0 130px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-heading .eyebrow {
  margin-bottom: 11px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
}

.section-heading > p {
  max-width: 260px;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: "Newsreader", serif;
  font-size: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
}

.project-card {
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  text-decoration: none;
}

.project-card.featured {
  transition:
    transform 220ms ease,
    border-color 220ms ease;
}

.project-card.featured:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 180, 92, 0.48);
}

.project-visual {
  position: relative;
  height: 270px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.little-wins-visual {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(131, 105, 255, 0.37), transparent 30%),
    linear-gradient(140deg, #25203d, #15151b 65%);
}

.little-wins-visual::before,
.little-wins-visual::after {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.little-wins-visual::before {
  transform: translate(-100px, 82px);
}

.little-wins-visual::after {
  transform: translate(105px, -75px);
}

.status {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.6);
  color: #d9d7d0;
  font-size: 11px;
  text-transform: uppercase;
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6add9b;
  box-shadow: 0 0 8px #6add9b;
}

.trophy {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: linear-gradient(145deg, #7558ff, #9b6cff);
  box-shadow: 0 22px 50px rgba(72, 48, 180, 0.45);
  transform: rotate(-7deg);
}

.trophy span {
  color: #fff4b9;
  font-size: 46px;
  transform: rotate(7deg);
}

.s2s-visual {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(95, 206, 187, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 206, 187, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(15, 118, 110, 0.2), transparent 55%),
    #121918;
  background-size: 30px 30px;
}

.route-mark {
  position: absolute;
  display: flex;
  width: 190px;
  align-items: center;
}

.route-dot {
  z-index: 1;
  width: 20px;
  height: 20px;
  border: 5px solid #b6eee5;
  border-radius: 50%;
  background: #0f766e;
  box-shadow: 0 0 26px rgba(95, 206, 187, 0.65);
}

.route-dot.destination {
  border-radius: 3px 50% 50%;
  transform: rotate(45deg);
}

.route-line {
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, #5fcebb, rgba(95, 206, 187, 0.2), #5fcebb);
}

.project-copy {
  display: flex;
  min-height: 269px;
  padding: 31px;
  flex-direction: column;
  justify-content: space-between;
}

.project-type {
  margin-bottom: 13px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 12px;
  font-family: "Newsreader", serif;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.project-copy > div > p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.open-project {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.open-project span {
  color: var(--gold);
}

.open-project.muted {
  color: #77746d;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 150px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-brand {
  justify-self: start;
}

footer > p {
  margin: 0;
}

.copyright {
  justify-self: end;
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    min-height: 590px;
    padding: 100px 0 75px;
  }

  h1 {
    font-size: clamp(58px, 18vw, 88px);
  }

  .intro {
    font-size: 20px;
  }

  .orbit {
    right: -100px;
    bottom: 30px;
  }

  .projects {
    padding: 80px 0 90px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 20px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 500px;
  }

  .project-visual {
    height: 240px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 38px 0;
  }

  .copyright {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .project-card.featured {
    transition: none;
  }
}
