:root {
  --bg: #000;
  --text: #ededed;
  --muted: #767676;
  --pad-x: 28px;
  --pad-top: 27px;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url('https://cdn.prod.website-files.com/6400ba8aff366b20ca06e45e/64010cfc188cb0503752bf4d_Grain.gif');
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.035;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

/* ACCESSIBILITY */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 9px 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}
.skip-link:focus {
  transform: translateY(0);
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* PAGE + HEADER */
.page {
  width: 100%;
  min-height: 100svh;
  padding: var(--pad-top) var(--pad-x) 30px;
}
.header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  column-gap: 48px;
}
.brand,
.nav a,
.clock,
.contact {
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-weight: 400;
}
.brand {
  justify-self: start;
}
.nav {
  display: flex;
  justify-self: center;
  gap: 30px;
}
.nav a,
.clock,
.contact {
  color: var(--muted);
}
.nav a {
  position: relative;
  padding-bottom: 5px;
}
.nav a.active {
  color: var(--text);
}
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
}
.nav a:hover,
.contact:hover,
.profile-cta:hover {
  color: var(--text);
}
.mobile-contact {
  display: none;
}
.right {
  justify-self: stretch;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 34px;
}
.clock {
  justify-self: center;
  white-space: nowrap;
}
.clock .city {
  margin-left: 10px;
  color: var(--text);
}
.contact {
  justify-self: end;
}

/* FOOTER */
.site-footer {
  width: 100%;
  margin-top: 140px;
  padding-top: 18px;
  border-top: 1px solid #1c1c1c;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.018em;
}
.about-page .site-footer {
  margin-top: clamp(115px, 14vh, 175px);
}
.footer-right {
  display: flex;
  gap: 28px;
}
.site-footer a {
  transition: color 0.18s ease;
}
.site-footer a:hover {
  color: var(--text);
}

/* INDEX */
.index-page .hero {
  min-height: clamp(590px, 69svh, 720px);
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(560px, 680px) 1fr;
  align-items: start;
  align-content: center;
  column-gap: clamp(145px, 9vw, 190px);
  padding-top: 48px;
}
.index-page .metrics {
  width: 100%;
  max-width: 390px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  row-gap: 52px;
}
.metric-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.018em;
}
.metric-value {
  margin: 0;
  font-size: 15px;
  line-height: 1.38;
  letter-spacing: -0.018em;
}
.hero-main {
  min-width: 0;
}
.hero-copy {
  margin: 0;
  width: 100%;
  max-width: 680px;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.038em;
  text-wrap: pretty;
}
.hero-sub {
  margin: 28px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.018em;
}
.hero-actions {
  align-self: center;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.status {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: -0.018em;
  white-space: nowrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}
.hero-cta {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.018em;
  white-space: nowrap;
  color: var(--text);
}
.hero-cta > span[aria-hidden='true'] {
  margin-right: 10px;
  color: var(--muted);
}

/* PROJECTS */
.work {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 56px;
}
.project {
  display: block;
  min-width: 0;
}
.project-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #080808;
}
.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-meta {
  min-height: 72px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-top: 14px;
}
.project-date {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.018em;
}
.project-title {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.project-role {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.project-title,
.project-date,
.project-role {
  transition: color 0.3s ease;
}

/* ABOUT */

.about-page .page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.about-main {
  flex: 1 0 auto;
  padding-top: clamp(64px, 8vh, 92px);
}
.about-title {
  margin: 0;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.042em;
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  column-gap: clamp(95px, 9vw, 175px);
  align-items: start;
  margin-top: clamp(130px, 15vh, 175px);
}
.block-title {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.018em;
}
.detail-list,
.detail-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
  letter-spacing: -0.018em;
}
.detail-list {
  padding: 0;
  list-style: none;
}
.detail-list li {
  margin: 0;
}
.profile {
  max-width: 480px;
}
.profile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}
.profile p + p {
  margin-top: 17px;
}
.profile .lead {
  color: var(--text);
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.profile-cta {
  display: inline-block;
  margin-top: 28px;
  padding-bottom: 3px;
  border-bottom: 1px solid #444;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.018em;
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}
.profile-cta:hover {
  border-color: var(--text);
}
.about-details {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(200px, 0.92fr);
  column-gap: clamp(70px, 6vw, 110px);
  align-items: start;
}
.details-side {
  display: flex;
  flex-direction: column;
  gap: 62px;
}
.service-groups {
  display: flex;
  flex-direction: column;
  gap: 42px;
}
.service-group {
  max-width: 340px;
}
.service-group .detail-copy {
  max-width: 340px;
  margin-bottom: 12px;
}
.service-group .block-title {
  margin-bottom: 14px;
}

/* 404 */
.error-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 0 0;
}
.error-code {
  margin: 0;
  font-size: clamp(130px, 24vw, 340px);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.07em;
}
.error-text {
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.018em;
}
.error-main .profile-cta {
  margin-top: 24px;
}
.error-page .site-footer {
  margin-top: 40px;
}

/* HOVER */
@media (hover: hover) and (pointer: fine) {
  .project:hover .project-media img {
    transform: scale(1.012);
  }
  .project:hover .project-title {
    color: #fff;
  }
  .project:hover .project-date,
  .project:hover .project-role {
    color: #8f8f8f;
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .project-media img {
    transform: none !important;
  }
}

/* RESPONSIVE */
@media (max-width: 1180px) {
  .index-page .hero {
    grid-template-columns: minmax(275px, 330px) minmax(520px, 590px) 1fr;
    column-gap: 105px;
  }
  .index-page .metrics {
    column-gap: 42px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    row-gap: 90px;
    margin-top: 105px;
  }
  .profile {
    max-width: 680px;
  }
  .about-details {
    width: 100%;
    max-width: 840px;
    grid-template-columns: 1fr 1fr;
    column-gap: 90px;
  }
}
@media (max-width: 1020px) {
  .index-page .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 165px 0 120px;
    gap: 62px;
  }
  .hero-main {
    order: 1;
  }
  .hero-copy {
    max-width: 560px;
  }
  .index-page .metrics {
    order: 2;
    max-width: 540px;
  }
  .hero-actions {
    order: 3;
    justify-self: start;
    align-items: flex-start;
  }
  .work {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
}
@media (max-width: 900px) {
  :root {
    --pad-x: 28px;
    --pad-top: 32px;
  }
  .header {
    display: block;
    width: 100%;
    text-align: left;
  }
  .brand,
  .nav a,
  .clock,
  .contact {
    font-size: 16px;
    line-height: 1.18;
    letter-spacing: -0.025em;
  }
  .brand {
    display: inline-block;
  }
  .right {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: auto;
    margin: 0;
    text-align: right;
  }
  .right .contact {
    display: none;
  }
  .clock {
    color: var(--muted);
    white-space: nowrap;
    text-align: right;
  }
  .clock .city {
    display: none;
  }
  .nav {
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 34px;
    margin-top: 28px;
  }
  .nav a {
    padding-bottom: 7px;
  }
  .mobile-contact {
    display: inline-block;
  }
  .index-page .hero {
    padding: 150px 0 92px;
    gap: 54px;
  }
  .hero-copy {
    max-width: 95%;
    font-size: clamp(26px, 6.2vw, 32px);
    line-height: 1.08;
    letter-spacing: -0.042em;
  }
  .index-page .metrics {
    grid-template-columns: 1fr 1fr;
    column-gap: 34px;
    row-gap: 40px;
  }
  .metric-label {
    font-size: 13px;
  }
  .metric-value,
  .hero-cta {
    font-size: 14px;
  }
  .project-meta {
    grid-template-columns: 54px minmax(0, 1fr);
  }
  .project-date,
  .project-role {
    font-size: 13px;
  }
  .project-title {
    font-size: 14px;
  }
  .site-footer,
  .index-page .site-footer {
    margin-top: 90px;
    font-size: 13px;
  }
  .about-main {
    padding-top: 105px;
  }
  .about-layout {
    margin-top: 84px;
    row-gap: 72px;
  }
  .about-details {
    column-gap: 55px;
  }
  .details-side {
    gap: 55px;
  }
}
@media (max-width: 767px) {
  .work {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .site-footer {
    align-items: flex-start;
  }
  .footer-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    text-align: right;
  }
}
@media (max-width: 620px) {
  .about-layout {
    margin-top: 30px;
    row-gap: 65px;
  }
  .about-details {
    grid-template-columns: 1fr;
    row-gap: 60px;
  }
  .service-group,
  .service-group .detail-copy {
    max-width: 100%;
  }
}
@media (max-width: 430px) {
  :root {
    --pad-x: 20px;
    --pad-top: 26px;
  }
  .brand,
  .nav a,
  .clock,
  .contact {
    font-size: 15px;
  }
  .nav {
    gap: 27px;
  }
  .index-page .hero {
    padding-top: 128px;
  }
  .hero-copy {
    max-width: 100%;
    font-size: 26px;
    line-height: 1.08;
  }
  .index-page .metrics {
    column-gap: 22px;
    row-gap: 34px;
  }
  .metric-label {
    font-size: 12px;
  }
  .metric-value {
    font-size: 13px;
  }
  .about-main {
    padding-top: 92px;
  }
  .about-title {
    font-size: 38px;
  }
  .profile .lead {
    font-size: 20px;
  }
}
