:root {
  --ink: #121212;
  --paper: #f5f5f0;
  --white: #ffffff;
  --purple: #5b3fee;
  --lime: #dafe62;
  --soft: #e9e9e3;
  --muted: #62625d;
  --line: rgba(18, 18, 18, 0.15);
  --pad: clamp(1.25rem, 4vw, 4.75rem);
  --radius: clamp(1.5rem, 2.5vw, 2.5rem);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 5rem;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-progress {
  position: fixed;
  z-index: 300;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  z-index: 200;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  min-height: 5.75rem;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  transition: min-height 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-header.scrolled {
  min-height: 4.75rem;
  background: rgba(245, 245, 240, 0.92);
  box-shadow: 0 1px 0 rgba(18, 18, 18, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.75rem);
  font-size: 0.875rem;
  font-weight: 650;
}

.desktop-nav a:not(.header-cta) {
  position: relative;
}

.desktop-nav a:not(.header-cta)::after {
  position: absolute;
  right: 0;
  bottom: -0.3rem;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-right {
  justify-content: flex-end;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 1rem;
  color: white;
  background: var(--ink);
  border-radius: 999px;
  transition: color 200ms ease, background 200ms ease;
}

.header-cta:hover {
  color: var(--ink);
  background: var(--lime);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  line-height: 0.95;
}

.wordmark > img {
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
}

.wordmark-copy {
  display: grid;
}

.wordmark-copy strong {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.wordmark-copy small {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  padding: clamp(8rem, 12vh, 9rem) var(--pad) clamp(3.5rem, 6vw, 5rem);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 17%, rgba(91, 63, 238, 0.08), transparent 25rem),
    var(--paper);
}

.eyebrow {
  margin: 0 0 1.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.way h2,
.contact h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(4rem, 9vw, 8.8rem);
}

.hero h1 span,
.section-heading h2 span,
.way h2 span,
.contact h2 span {
  color: var(--purple);
}

.hero-copy {
  width: min(36rem, 100%);
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.property-stage {
  width: min(68rem, 100%);
  margin: clamp(2.25rem, 4vw, 3.5rem) auto 0;
}

.property-visual {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 7.7;
  background: #d6d8d0;
  border-radius: var(--radius);
  box-shadow: 0 1.5rem 4.5rem rgba(18, 18, 18, 0.14);
}

.property-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.property-visual:hover > img {
  scale: 1.02;
}

.portfolio {
  padding: clamp(5.5rem, 8vw, 7.5rem) var(--pad);
  background: white;
}

.section-heading {
  max-width: 72rem;
  margin: 0 auto;
  text-align: left;
}

.section-heading h2,
.way h2 {
  max-width: 12ch;
  font-size: clamp(3.6rem, 7.2vw, 7.4rem);
}

.section-copy {
  width: min(38rem, 100%);
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.focus-grid {
  display: grid;
  max-width: 72rem;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: clamp(3.5rem, 6vw, 5.5rem) auto 0;
}

.focus-card {
  position: relative;
  min-height: 23rem;
  overflow: hidden;
  padding: 1.5rem;
  background: var(--soft);
  border-radius: var(--radius);
  transition: transform 220ms ease;
}

.focus-card:hover {
  transform: translateY(-0.25rem);
}

.focus-feature {
  color: white;
  background: var(--ink);
}

.focus-mixed {
  color: white;
  background: var(--purple);
}

.focus-number {
  position: relative;
  z-index: 3;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.focus-content {
  position: absolute;
  z-index: 3;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
}

.focus-content p {
  margin: 0 0 0.7rem;
  font-size: 0.875rem;
  font-weight: 650;
}

.focus-content h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 2.75vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-transform: uppercase;
}

.way {
  padding: clamp(5.5rem, 8vw, 7.5rem) var(--pad);
  color: white;
  background: var(--ink);
}

.way-heading,
.way-grid {
  max-width: 72rem;
  margin-right: auto;
  margin-left: auto;
}

.way-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(3.5rem, 6vw, 5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.way-card {
  display: flex;
  min-height: 16rem;
  flex-direction: column;
  padding: 1.5rem 1.75rem 1.5rem 0;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.way-card + .way-card {
  padding-left: 1.75rem;
}

.way-card:last-child {
  border-right: 0;
}

.way-card > span {
  color: var(--lime);
  font-size: 0.875rem;
  font-weight: 700;
}

.way-card h3 {
  margin: auto 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-transform: uppercase;
}

.way-card p {
  max-width: 20rem;
  margin: 0;
  color: #aaa9a3;
}

.contact {
  display: grid;
  min-height: 32rem;
  place-items: center;
  align-content: center;
  padding: 5.5rem var(--pad);
  color: white;
  background: var(--purple);
  text-align: center;
}

.contact h2 {
  font-size: clamp(4rem, 9vw, 8.8rem);
}

.contact h2 span {
  color: var(--lime);
}

.contact-button {
  display: inline-flex;
  min-width: min(21rem, 92vw);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.75rem;
  padding: 1.2rem 1.4rem;
  color: var(--ink);
  background: white;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 200ms ease;
}

.contact-button:hover {
  background: var(--lime);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: end;
  padding: 2.5rem var(--pad);
  color: white;
  background: var(--ink);
  font-size: 0.875rem;
}

.footer-wordmark {
  color: white;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    display: flex;
    justify-content: space-between;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    background: transparent;
    border: 0;
    font-size: 0.875rem;
    font-weight: 700;
  }

  .menu-button i,
  .menu-button i::before {
    display: block;
    width: 1.6rem;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform 200ms ease;
  }

  .menu-button i::before {
    transform: translateY(-0.4rem);
  }

  .menu-button[aria-expanded="true"] i {
    transform: rotate(45deg);
  }

  .menu-button[aria-expanded="true"] i::before {
    transform: rotate(-90deg);
  }

  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7rem var(--pad) 3rem;
    color: white;
    background: var(--purple);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav a {
    padding: 0.4rem 0;
    font-family: var(--display);
    font-size: clamp(3rem, 12vw, 5rem);
    font-weight: 750;
    letter-spacing: -0.06em;
    line-height: 0.95;
    text-transform: uppercase;
  }

  .site-header:has(.mobile-nav.open) {
    color: white;
    background: transparent;
    box-shadow: none;
  }

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

  .focus-card {
    min-height: 28rem;
  }

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

  .way-card,
  .way-card + .way-card {
    min-height: 14rem;
    padding: 1.5rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

}

@media (max-width: 640px) {
  .hero {
    padding-top: 8rem;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 18vw, 6rem);
  }

  .property-visual {
    aspect-ratio: 4 / 4.5;
  }

  .property-visual > img {
    object-position: 63% center;
  }

  .section-heading h2,
  .way h2 {
    font-size: clamp(3.4rem, 15vw, 5.2rem);
  }

  .contact {
    min-height: 30rem;
  }

  .contact h2 {
    font-size: clamp(3.9rem, 17vw, 6rem);
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer > p:nth-child(2) {
    display: none;
  }

  .site-footer p:last-child {
    text-align: left;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
