:root {
  --ink: #151515;
  --muted: #6e6a64;
  --paper: #fbfaf7;
  --line: #ded8ce;
  --dark: #00030a;
  --dark-ink: #f7f4ed;
  --dark-muted: rgba(247, 244, 237, 0.68);
  --dark-line: rgba(247, 244, 237, 0.14);
  --header-dropdown-bg: rgba(255, 255, 255, 0.94);
  --header-dropdown-border: rgba(0, 3, 10, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
  overflow-x: clip;
}

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

a:focus-visible,
button:focus-visible,
.portfolio-menu summary:focus-visible {
  outline: 2px solid #ff0099;
  outline-offset: 4px;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid rgba(0, 3, 10, 0.08);
  backdrop-filter: blur(0) saturate(100%);
  display: grid;
  font-family: "National Park", Arial, sans-serif;
  gap: 18px;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  padding: 27.5px clamp(20px, 4vw, 64px);
  position: sticky;
  top: 0;
  transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
  z-index: 10;
}

.brand,
.site-nav > a,
.portfolio-menu summary {
  color: rgba(0, 3, 10, 0.74);
  font-size: 15px;
  font-weight: 340;
  transition: color 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(3, 6, 12, 0.5);
  border-bottom-color: rgba(247, 244, 237, 0.1);
  backdrop-filter: blur(22px) saturate(114%);
}

.site-header.is-scrolled .brand,
.site-header.is-scrolled .site-nav > a,
.site-header.is-scrolled .portfolio-menu summary,
.site-header.is-scrolled .menu-toggle {
  color: rgba(247, 244, 237, 0.88);
}

.brand {
  font-size: 17px;
  justify-self: start;
  line-height: 22.5px;
}

.brand span {
  color: currentColor;
  position: relative;
}

.brand span::after {
  background: linear-gradient(90deg, #ff0099 0%, #fcc900 100%);
  bottom: -7px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 58px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}

.site-nav > a:hover,
.portfolio-menu summary:hover,
.portfolio-menu[open] summary {
  color: rgba(0, 3, 10, 0.94);
}

.site-header.is-scrolled .site-nav > a:hover,
.site-header.is-scrolled .portfolio-menu summary:hover,
.site-header.is-scrolled .portfolio-menu[open] summary {
  color: rgba(247, 244, 237, 1);
}

.portfolio-menu {
  position: relative;
}

.portfolio-menu summary {
  cursor: pointer;
  list-style: none;
}

@media (min-width: 721px) {
  .site-nav > a,
  .portfolio-menu summary {
    position: relative;
  }

  .site-nav > a::after,
  .portfolio-menu summary::after {
    background: currentColor;
    bottom: -6px;
    content: "";
    height: 0.5px;
    left: 0;
    opacity: 0.58;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 200ms ease;
    width: 22px;
  }

  .site-nav > a:hover::after,
  .site-nav > a:focus-visible::after,
  .portfolio-menu summary:hover::after,
  .portfolio-menu summary:focus-visible::after,
  .portfolio-menu[open] summary::after {
    transform: scaleX(1);
  }
}

.portfolio-menu summary::-webkit-details-marker {
  display: none;
}

.portfolio-menu-panel {
  background: var(--header-dropdown-bg);
  border: 1px solid var(--header-dropdown-border);
  border-radius: 14px;
  backdrop-filter: blur(22px) saturate(112%);
  display: grid;
  gap: 2px;
  left: 50%;
  min-width: 172px;
  padding: 12px;
  position: absolute;
  top: calc(100% + 14px);
  transform: translateX(-50%);
  z-index: 20;
}

.portfolio-menu:not([open]) .portfolio-menu-panel {
  display: none;
}

.portfolio-menu-panel a {
  border-radius: 8px;
  color: rgba(21, 21, 21, 0.72);
  display: block;
  font-size: 14px;
  font-weight: 360;
  padding: 12px 10px;
  position: relative;
  transition: color 180ms ease;
  white-space: nowrap;
}

.portfolio-menu-panel a::after {
  background: linear-gradient(90deg, #ff0099 0%, #fcc900 100%);
  bottom: 7px;
  content: "";
  height: 1px;
  left: 10px;
  opacity: 0;
  position: absolute;
  transition: opacity 180ms ease;
  width: 28px;
}

.portfolio-menu-panel a:hover,
.portfolio-menu-panel a:focus-visible {
  color: var(--ink);
}

.portfolio-menu-panel a:hover::after,
.portfolio-menu-panel a:focus-visible::after {
  opacity: 1;
}

.menu-toggle {
  background: transparent;
  border: 0;
  color: rgba(0, 3, 10, 0.74);
  display: none;
  height: 34px;
  padding: 8px;
  width: 40px;
}

.menu-toggle span {
  background: currentColor;
  display: block;
  height: 1px;
  margin: 7px 0;
  width: 100%;
}

.hero {
  align-items: flex-start;
  display: flex;
  isolation: isolate;
  margin: 0 auto;
  max-width: 1320px;
  min-height: calc(100vh - 285px);
  padding: clamp(60px, 7vw, 92px) clamp(20px, 4vw, 64px) clamp(36px, 4.5vw, 60px);
  position: relative;
}

.hero-copy {
  max-width: 1180px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.hero-environment {
  bottom: 65px;
  height: auto;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: calc((100vw - 100%) / -2 - 68px);
  width: 50.4vw;
  z-index: 0;
}

.hero-environment img {
  display: block;
  height: auto;
  max-width: none;
  transform: translateX(18%);
  width: 118%;
}

.eyebrow,
.hero h1,
.hero-text {
  margin-top: 0;
}

.eyebrow {
  color: #ff0099;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.135em;
  margin-bottom: clamp(24px, 3vw, 40px);
  text-transform: uppercase;
}

.hero h1 {
  font-family: "National Park", Arial, sans-serif;
  font-size: clamp(58px, 7.5vw, 108px);
  font-weight: 340;
  letter-spacing: -0.045em;
  line-height: 0.94;
  margin-bottom: clamp(30px, 4vw, 52px);
  max-width: 1100px;
}

.hero-accent {
  animation: clarity-focus 3000ms cubic-bezier(0.16, 1, 0.3, 1) 150ms both;
  background: linear-gradient(90deg, #ff0099 0%, #fcc900 100%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 320;
  line-height: 1.58;
  margin-bottom: 0;
  max-width: 720px;
}

.expertise-index {
  animation: expertise-group-reveal 500ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
  margin-top: clamp(22px, 4vw, 54px);
  max-width: 720px;
}

.expertise-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.expertise-row li {
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 999px;
  color: rgba(21, 21, 21, 0.76);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1;
  padding: 8px 11px;
}

.selected-work {
  background: var(--dark);
  color: var(--dark-ink);
  padding: clamp(92px, 11vw, 156px) clamp(20px, 4vw, 64px) clamp(72px, 8vw, 96px);
}

.selected-work-inner {
  margin: 0 auto;
  max-width: 1320px;
}

.selected-work-header {
  align-items: end;
  border-bottom: 1px solid var(--dark-line);
  display: grid;
  grid-template-columns: 1fr;
  padding-bottom: clamp(32px, 4vw, 54px);
}

.section-index {
  color: rgba(21, 21, 21, 0.12);
  font-family: "National Park", Arial, sans-serif;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 260;
  letter-spacing: -0.04em;
  line-height: 0.8;
  margin: 0;
}

.selected-work .section-index {
  display: none;
}

.project-number {
  color: #ff0099;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.11em;
  margin: 0;
}

.selected-work h2,
.about-section h2 {
  font-family: "National Park", Arial, sans-serif;
  font-size: clamp(42px, 6.4vw, 88px);
  font-weight: 340;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
}

.project-sequence {
  display: grid;
}

.project-entry {
  border-bottom: 1px solid var(--dark-line);
  padding: clamp(72px, 9vw, 124px) 0;
}

.project-entry-swapp {
  border-bottom: 0;
}

.project-entry > a {
  align-items: center;
  display: grid;
  gap: clamp(38px, 6vw, 88px);
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.65fr);
}

.project-entry-featured {
  padding-top: clamp(80px, 9vw, 122px);
}

.project-entry-featured > a {
  align-items: end;
  grid-template-columns: minmax(0, 1.85fr) minmax(260px, 0.55fr);
}

.project-entry-reverse > a {
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.45fr);
}

.project-entry-reverse .project-visual {
  grid-column: 2;
  grid-row: 1;
}

.project-entry-reverse .project-copy {
  grid-column: 1;
  grid-row: 1;
}

.project-entry-narrow .project-visual {
  max-width: 820px;
}

.project-entry-wide .project-visual {
  margin-right: 0;
}

.project-entry-featured .project-visual {
  width: 76%;
}

.project-entry-swapp .project-visual {
  width: 75%;
}

.project-visual {
  border: 1px solid rgba(247, 244, 237, 0.12);
  justify-self: start;
  margin: 0;
  overflow: hidden;
  padding: clamp(10px, 1.2vw, 18px);
  width: 82%;
}

.project-entry-reverse .project-visual {
  justify-self: end;
}

.project-visual img {
  display: block;
  height: auto;
  transition: filter 260ms ease, transform 260ms ease;
  width: 100%;
}

.project-copy {
  align-self: center;
  max-width: 420px;
}

.project-copy h3 {
  font-family: "National Park", Arial, sans-serif;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 340;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 18px 0 22px;
}

.project-framing {
  color: var(--dark-muted);
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 320;
  line-height: 1.58;
  margin: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.project-tags li {
  color: rgba(247, 244, 237, 0.54);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.project-link {
  align-items: center;
  display: inline-flex;
  font-size: 13px;
  font-weight: 400;
  gap: 9px;
  margin-top: 34px;
  padding-bottom: 5px;
  position: relative;
}

.project-link::after {
  background: rgba(247, 244, 237, 0.45);
  bottom: 0;
  content: "";
  height: 0.5px;
  left: 0;
  position: absolute;
  transform: scaleX(0.28);
  transform-origin: left center;
  transition: transform 240ms ease;
  width: 100%;
}

.project-entry > a:hover .project-visual img,
.project-entry > a:focus-visible .project-visual img {
  filter: brightness(1.04);
  transform: translateY(-3px);
}

.project-entry > a:hover .project-link::after,
.project-entry > a:focus-visible .project-link::after {
  transform: scaleX(1);
}

.about-section {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(112px, 14vw, 190px) clamp(20px, 4vw, 64px) clamp(96px, 12vw, 168px);
  scroll-margin-top: 86px;
}

.about-inner {
  margin: 0 auto;
  max-width: 1320px;
}

.about-header {
  margin-bottom: clamp(64px, 8vw, 104px);
}

.about-copy {
  display: grid;
  gap: clamp(22px, 2.4vw, 32px);
  max-width: 740px;
}

.about-copy p {
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 21px);
  font-weight: 320;
  line-height: 1.72;
  margin: 0;
}

.about-copy p:nth-child(3) {
  padding-left: clamp(20px, 2.4vw, 32px);
  position: relative;
}

.about-copy p:nth-child(3)::before {
  background: var(--line);
  background: color-mix(in srgb, var(--line) 85%, var(--muted) 15%);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: 1px;
}

.about-contact {
  margin-top: clamp(77px, 9.6vw, 118px);
}

.about-contact p {
  font-family: "National Park", Arial, sans-serif;
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 340;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 0 18px;
}

.about-contact a {
  color: var(--muted);
  font-size: 14px;
  text-decoration-color: rgba(21, 21, 21, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.about-contact a:hover,
.about-contact a:focus-visible {
  color: var(--ink);
  text-decoration-color: rgba(21, 21, 21, 0.72);
}

.case-footer {
  align-items: center;
  background: var(--dark);
  border-top: 1px solid var(--dark-line);
  display: flex;
  justify-content: center;
  padding: clamp(22px, 3vw, 34px) clamp(20px, 4vw, 64px);
}

.case-footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3.2vw, 42px);
  justify-content: center;
}

.case-footer-links a {
  color: rgba(247, 244, 237, 0.7);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.2;
  padding: 8px 0;
  position: relative;
  transition: color 180ms ease, transform 180ms ease;
}

.case-footer-links a::after {
  background: linear-gradient(90deg, #ff0099 0%, #fcc900 100%);
  bottom: 3px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
  width: 100%;
}

.case-footer-links a:hover,
.case-footer-links a:focus-visible {
  color: rgba(247, 244, 237, 0.96);
  transform: translateY(-1px);
}

.case-footer-links a:hover::after,
.case-footer-links a:focus-visible::after {
  transform: scaleX(1);
}

@keyframes clarity-focus {
  from {
    filter: blur(12px);
    opacity: 0.5;
  }

  to {
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes expertise-group-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes selected-work-block-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (animation-timeline: view()) {
  .selected-work-inner {
    animation: selected-work-block-reveal 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-range: entry 0% entry 24%;
    animation-timeline: view();
  }
}

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

  .hero-accent {
    animation: none;
    filter: none;
    opacity: 1;
  }

  .expertise-index,
  .selected-work-inner {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .portfolio-menu-panel a,
  .portfolio-menu-panel a::after,
  .site-header,
  .brand,
  .site-nav > a,
  .site-nav > a::after,
  .portfolio-menu summary,
  .portfolio-menu summary::after,
  .project-visual img,
  .project-link::after,
  .case-footer-links a,
  .case-footer-links a::after {
    transition: none;
  }

  .case-footer-links a:hover,
  .case-footer-links a:focus-visible {
    transform: none;
  }

  .project-entry > a:hover .project-visual img,
  .project-entry > a:focus-visible .project-visual img {
    transform: none;
  }
}

@media (max-width: 1200px) {
  .hero-environment {
    bottom: 60px;
    right: calc((100vw - 100%) / -2 - 58px);
    width: 46.8vw;
  }

  .hero-environment img {
    transform: translateX(20%);
    width: 120%;
  }
}

@media (max-width: 900px) {
  .hero {
    align-items: start;
    min-height: auto;
  }

  .hero-environment {
    display: none;
  }

  .project-entry > a,
  .project-entry-featured > a,
  .project-entry-reverse > a {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .project-entry-reverse .project-visual,
  .project-entry-reverse .project-copy {
    grid-column: 1;
  }

  .project-entry-reverse .project-visual {
    grid-row: 1;
  }

  .project-entry-reverse .project-copy {
    grid-row: 2;
  }

  .project-copy {
    max-width: 620px;
  }

  .project-visual {
    justify-self: stretch;
    width: 100%;
  }

  .project-entry-featured .project-visual {
    width: 100%;
  }

  .project-entry-swapp .project-visual {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-bottom: 18px;
    padding-top: 18px;
  }

  .brand {
    font-size: 16px;
  }

  .site-header-center {
    display: none;
  }

  .menu-toggle {
    color: rgba(0, 3, 10, 0.74);
    display: block;
    grid-column: 2;
  }

  .site-nav {
    align-items: stretch;
    background: rgba(251, 250, 247, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 0;
    grid-column: 1 / -1;
    margin: 10px calc(clamp(20px, 4vw, 64px) * -1) -18px;
    padding: 10px clamp(20px, 4vw, 64px) 18px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a,
  .portfolio-menu summary {
    animation: none;
    color: var(--muted);
    display: block;
    padding: 12px 0;
  }

  .site-header.is-scrolled .site-nav > a,
  .site-header.is-scrolled .portfolio-menu summary {
    color: var(--muted);
  }

  .site-header.is-scrolled .site-nav > a:hover,
  .site-header.is-scrolled .portfolio-menu summary:hover,
  .site-header.is-scrolled .portfolio-menu[open] summary {
    color: var(--ink);
  }

  .portfolio-menu-panel {
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    left: 0;
    margin: 2px 0 8px;
    padding: 2px 0 2px 14px;
    position: relative;
    top: 0;
    transform: none;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .selected-work-header {
    align-items: start;
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .project-entry {
    padding: 64px 0;
  }

  .project-entry > a {
    gap: 30px;
  }

  .project-copy h3 {
    font-size: clamp(34px, 11vw, 50px);
  }

  .case-footer {
    align-items: flex-start;
  }
}
