:root {
  --ink: #102c27;
  --deep: #09231f;
  --green: #174b3d;
  --lime: #d7e7a9;
  --sand: #e8e2d4;
  --paper: #f2efe7;
  --orange: #e8653a;
  --line: rgba(16, 44, 39, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.grain {
  position: fixed;
  z-index: 9999;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 96px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font: 600 13px/1 "Manrope", sans-serif;
  letter-spacing: 0.16em;
}

.brand svg {
  width: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.desktop-nav {
  display: flex;
  gap: 42px;
  font-size: 13px;
}

.desktop-nav a,
.header-contact {
  transition: opacity 0.25s;
}

.desktop-nav a:hover,
.header-contact:hover {
  opacity: 0.55;
}

.header-contact {
  justify-self: end;
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 13px;
}

.arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: 150px 4vw 6vh;
  overflow: hidden;
  background: var(--sand);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 74%;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 10px/1 "Manrope", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.eyebrow.light {
  color: var(--lime);
}

.hero h1 {
  margin-top: 5vh;
  font: 300 clamp(58px, 8.4vw, 142px)/0.91 "Manrope", sans-serif;
  letter-spacing: -0.065em;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line > span {
  display: block;
}

.hero h1 .italic,
h2 em {
  color: var(--orange);
  font-family: Georgia, serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.045em;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  gap: 38px;
  width: 480px;
  margin-top: 7vh;
  margin-left: 24%;
}

.hero-bottom p {
  max-width: 350px;
  font-size: 15px;
  line-height: 1.65;
}

.round-link {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: 0.3s ease;
}

.round-link:hover {
  color: var(--paper);
  background: var(--ink);
  transform: translateY(4px);
}

.hero-map {
  position: absolute;
  top: 8%;
  right: -3%;
  width: min(40vw, 560px);
  height: 85%;
  opacity: 0.32;
}

.hero-map svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-map path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
}

.hero-map .para-outline {
  fill: rgba(23, 75, 61, 0.015);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-map circle {
  fill: var(--orange);
  stroke: none;
}

.hero-map .map-line {
  stroke-dasharray: 3 5;
}

.hero-map text {
  fill: var(--ink);
  font: 500 9px "Manrope", sans-serif;
  letter-spacing: 0.22em;
}

.hero-index,
.hero-place {
  position: absolute;
  bottom: 5vh;
  font: 500 9px/1.6 "Manrope", sans-serif;
  letter-spacing: 0.14em;
}

.hero-index {
  left: 4vw;
}

.hero-place {
  right: 4vw;
  text-align: right;
}

.building-section {
  position: relative;
  height: 310vh;
  color: var(--paper);
  background: var(--deep);
}

.building-sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 38% 1fr;
  align-items: center;
  height: 100vh;
  padding: 8vh 5vw;
  overflow: hidden;
}

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

.building-copy h2,
.portfolio h2,
.numbers h2 {
  margin-top: 5vh;
  font: 300 clamp(54px, 6.5vw, 108px)/0.94 "Manrope", sans-serif;
  letter-spacing: -0.06em;
}

.section-text {
  max-width: 390px;
  margin-top: 6vh;
  color: rgba(242, 239, 231, 0.62);
  font-size: 15px;
  line-height: 1.8;
}

.tower-stage {
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(38vw, 480px);
  height: 89vh;
  perspective: 1000px;
}

.tower {
  position: absolute;
  bottom: 8%;
  left: 50%;
  z-index: 2;
  width: 54%;
  transform: translateX(-50%);
  transform-origin: bottom center;
}

.tower-top {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 54px;
  color: var(--lime);
  background: #173b35;
  clip-path: polygon(12% 100%, 22% 30%, 50% 0, 78% 30%, 88% 100%);
}

.tower-top span {
  margin-bottom: 7px;
  font: 600 9px "Manrope", sans-serif;
  letter-spacing: 0.18em;
}

.floors {
  display: flex;
  flex-direction: column-reverse;
}

.floor {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  height: 44px;
  padding: 6px 9px;
  background: #c9c7bb;
  border-bottom: 4px solid #1b3631;
  transform-origin: center bottom;
}

.floor:nth-child(2n) {
  background: #d9d6cb;
}

.floor i {
  display: block;
  background: linear-gradient(135deg, #24463e, #122d29);
  box-shadow: inset 8px 0 12px rgba(255, 255, 255, 0.05);
}

.floor:nth-child(3n) i:nth-child(3),
.floor:nth-child(4n) i:nth-child(1) {
  background: #d9a468;
  box-shadow: 0 0 16px rgba(235, 178, 101, 0.25);
}

.tower-base {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 9px;
  height: 60px;
  padding: 10px 14px 0;
  background: #b9b8ae;
  border-bottom: 8px solid #19352f;
}

.tower-base span {
  background: #173c35;
}

.tower-glow {
  position: absolute;
  bottom: 4%;
  left: 50%;
  width: 90%;
  height: 60%;
  background: radial-gradient(circle, rgba(215, 231, 169, 0.11), transparent 68%);
  transform: translateX(-50%);
}

.ground {
  position: absolute;
  bottom: 6.5%;
  left: 50%;
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 231, 169, 0.5), transparent);
  transform: translateX(-50%);
}

.tower-caption {
  position: absolute;
  right: -12%;
  bottom: 4%;
  color: rgba(242, 239, 231, 0.55);
  font: 500 8px "Manrope", sans-serif;
  letter-spacing: 0.15em;
}

.tower-caption span {
  color: var(--lime);
}

.scroll-meter {
  position: absolute;
  right: 3vw;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(242, 239, 231, 0.4);
  font: 500 8px "Manrope", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(90deg) translateY(-50%);
  transform-origin: right center;
}

.scroll-meter > div {
  width: 100px;
  height: 1px;
  background: rgba(242, 239, 231, 0.18);
}

.scroll-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
}

.numbers {
  min-height: 100vh;
  padding: 14vh 5vw;
  background: var(--lime);
}

.numbers-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
}

.numbers h2 {
  margin-top: 0;
}

.numbers h2 em {
  color: var(--green);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 15vh;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats article {
  min-height: 240px;
  padding: 45px 30px;
  border-right: 1px solid var(--line);
}

.stats article:last-child {
  border-right: 0;
}

.stat-number {
  font: 300 clamp(64px, 7vw, 112px)/1 "Manrope", sans-serif;
  letter-spacing: -0.07em;
}

.stats sup {
  margin-left: 8px;
  font-size: 15px;
}

.stats p {
  margin-top: 30px;
  font-size: 12px;
  line-height: 1.5;
}

.portfolio {
  padding: 14vh 5vw 8vh;
  color: var(--paper);
  background: #112f29;
}

.portfolio-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
  gap: 10vw;
  margin-bottom: 12vh;
}

.portfolio-intro > p {
  max-width: 420px;
  color: rgba(242, 239, 231, 0.55);
  font-size: 15px;
  line-height: 1.8;
}

.project {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 67vh;
  margin-bottom: 4vh;
  padding: 4vw;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 24, 20, 0.08), rgba(7, 24, 20, 0.84));
  transition: background 0.5s;
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 75, 61, 0.25);
  mix-blend-mode: color;
}

.project:hover::before {
  background: linear-gradient(180deg, transparent, rgba(7, 24, 20, 0.68));
}

.project-one {
  background-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=85");
}

.project-two {
  background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=85");
}

.project-three {
  background-image: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=85");
}

.project-number,
.project-info,
.project-arrow {
  position: relative;
  z-index: 2;
}

.project-number {
  align-self: flex-start;
  font: 500 10px "Manrope", sans-serif;
  letter-spacing: 0.15em;
}

.project-info {
  margin-left: auto;
  margin-right: auto;
}

.project-info p {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.65);
  font: 500 9px "Manrope", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-info h3 {
  font: 300 clamp(45px, 6vw, 92px)/1 "Manrope", sans-serif;
  letter-spacing: -0.06em;
}

.project-arrow {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: 0.35s;
}

.project:hover .project-arrow {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
  transform: rotate(45deg);
}

.manifesto {
  min-height: 90vh;
  padding: 16vh 8vw;
  background: var(--paper);
}

.manifesto-text {
  max-width: 1250px;
  margin-top: 12vh;
  font: 300 clamp(42px, 6.2vw, 102px)/1.08 "Manrope", sans-serif;
  letter-spacing: -0.055em;
}

.manifesto-text span {
  color: var(--orange);
  font-family: Georgia, serif;
  font-style: italic;
}

footer {
  padding: 12vh 5vw 4vh;
  color: var(--paper);
  background: #071b18;
}

.footer-main {
  padding-bottom: 12vh;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6vh;
  font: 300 clamp(42px, 7vw, 110px)/1 "Manrope", sans-serif;
  letter-spacing: -0.06em;
}

.footer-cta span:last-child {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-size: 28px;
  transition: transform 0.3s;
}

.footer-cta:hover span:last-child {
  transform: rotate(45deg);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  align-items: end;
  gap: 4vw;
  padding-top: 6vh;
  color: rgba(242, 239, 231, 0.55);
  font-size: 10px;
  line-height: 1.7;
}

.footer-brand {
  color: var(--paper);
}

.footer-bottom div {
  display: flex;
  flex-direction: column;
}

.mobile-menu {
  display: none;
}

@media (max-width: 800px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 76px;
    padding: 0 22px;
  }

  .desktop-nav,
  .header-contact {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 32px;
    border: 0;
    background: transparent;
  }

  .menu-toggle span {
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: 0.3s;
  }

  .mobile-menu {
    position: fixed;
    z-index: 101;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8vw;
    color: var(--paper);
    background: var(--deep);
    visibility: hidden;
    opacity: 0;
  }

  .mobile-menu a {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    font: 300 42px "Manrope", sans-serif;
  }

  body.menu-open .mobile-menu {
    visibility: visible;
    opacity: 1;
  }

  body.menu-open .menu-toggle {
    color: var(--paper);
  }

  body.menu-open .menu-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  body.menu-open .menu-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .hero {
    min-height: 100svh;
    padding: 130px 22px 34px;
  }

  .hero-copy {
    width: 100%;
    justify-content: flex-start;
    padding-top: 9vh;
  }

  .hero h1 {
    margin-top: 4vh;
    font-size: clamp(52px, 16vw, 78px);
  }

  .hero-bottom {
    width: 90%;
    margin-top: 7vh;
    margin-left: 0;
  }

  .hero-map {
    top: 39%;
    right: -25%;
    width: 90vw;
    height: 58%;
  }

  .hero-index {
    display: none;
  }

  .building-sticky {
    display: block;
    padding: 11vh 22px 0;
  }

  .building-copy h2,
  .portfolio h2,
  .numbers h2 {
    font-size: 52px;
  }

  .section-text {
    margin-top: 3vh;
    font-size: 13px;
  }

  .tower-stage {
    position: absolute;
    right: -5%;
    bottom: 0;
    width: 78vw;
    height: 59vh;
  }

  .tower {
    width: 45%;
  }

  .floor {
    height: 27px;
    padding: 4px 6px;
    border-bottom-width: 3px;
  }

  .tower-top {
    height: 38px;
  }

  .tower-base {
    height: 40px;
  }

  .scroll-meter {
    display: none;
  }

  .numbers {
    padding: 11vh 22px;
  }

  .numbers-heading {
    display: block;
  }

  .numbers-heading h2 {
    margin-top: 5vh;
  }

  .stats {
    display: block;
    margin-top: 8vh;
  }

  .stats article {
    min-height: auto;
    padding: 38px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portfolio {
    padding: 11vh 22px 7vh;
  }

  .portfolio-intro {
    display: block;
    margin-bottom: 8vh;
  }

  .portfolio-intro > p {
    margin-top: 5vh;
  }

  .project {
    min-height: 65vh;
    padding: 26px;
  }

  .project-info {
    margin: 0 auto 12px 0;
  }

  .project-info h3 {
    font-size: 42px;
  }

  .project-arrow {
    width: 45px;
    height: 45px;
  }

  .manifesto {
    min-height: 75vh;
    padding: 12vh 22px;
  }

  .manifesto-text {
    margin-top: 8vh;
    font-size: 44px;
  }

  footer {
    padding: 10vh 22px 4vh;
  }

  .footer-cta {
    align-items: flex-end;
    font-size: 47px;
  }

  .footer-cta span:first-child {
    max-width: 280px;
  }

  .footer-cta span:last-child {
    width: 58px;
    height: 58px;
    font-size: 18px;
  }

  .footer-bottom {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
