:root {
  --ink: #101210;
  --paper: #f2f1ec;
  --lime: #b7f34a;
  --line: rgba(16, 18, 16, 0.2);
  --muted: #676b65;
  --pad: clamp(20px, 4.5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 99;
  padding: 10px 14px;
  background: var(--lime);
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px var(--pad);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.wordmark {
  width: fit-content;
  font-size: 25px;
  font-weight: 600;
}

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

nav {
  display: flex;
  gap: clamp(20px, 3vw, 48px);
  font-size: 12px;
}

nav a,
.email-link,
footer a {
  position: relative;
}

nav a::after,
footer a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

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

.local-time {
  justify-self: end;
  margin: 0;
  font: 11px "DM Mono", monospace;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 94vh;
  overflow: hidden;
  background: #0c0d0c;
  color: #fff;
}

#field,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#field {
  opacity: 0.68;
}

.hero-grid {
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 94vh;
  flex-direction: column;
  justify-content: flex-end;
  padding: 130px var(--pad) clamp(38px, 6vh, 76px);
}

.eyebrow,
.mono,
.section-label,
.work-number,
.work-tag,
footer {
  font-family: "DM Mono", monospace;
}

.eyebrow {
  margin: 0 0 22px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  margin: 0 12px 3px 0;
  background: currentColor;
}

.hero h1,
.contact h2 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(58px, 10vw, 154px);
  font-weight: 500;
  line-height: 0.88;
}

.hero h1 em,
.contact h2 em {
  color: var(--lime);
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: clamp(32px, 6vh, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding-top: 20px;
}

.hero-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.8;
}

.round-link {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.round-link:hover,
.round-link:focus-visible {
  background: var(--lime);
  color: var(--ink);
  transform: translateY(3px);
}

.hero-index {
  position: absolute;
  z-index: 2;
  top: 120px;
  right: var(--pad);
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font: 10px "DM Mono", monospace;
  writing-mode: vertical-rl;
}

.section {
  padding: clamp(80px, 12vw, 180px) var(--pad);
}

.section-label {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  margin-bottom: clamp(70px, 10vw, 140px);
  color: var(--muted);
  font-size: 10px;
}

.section-label p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.about-copy {
  margin-left: clamp(0px, 12vw, 190px);
}

.lead {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(34px, 5.4vw, 78px);
  font-weight: 500;
  line-height: 1.2;
}

.lead span {
  background: linear-gradient(transparent 61%, var(--lime) 61%);
}

.about-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 710px;
  margin: 72px 0 0 auto;
  color: #4e514d;
  font-size: 14px;
  line-height: 1.9;
}

.about-detail p {
  margin: 0;
}

.work {
  background: #e5e7df;
}

.work-list {
  border-top: 1px solid var(--line);
}

.work-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 190px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s, padding 0.25s;
}

.work-item:hover {
  padding: 0 24px;
  background: var(--lime);
}

.work-number,
.work-tag {
  font-size: 10px;
}

.work-item h2 {
  margin: 0 0 11px;
  font-size: clamp(29px, 4vw, 62px);
  font-weight: 500;
}

.work-item div p {
  margin: 0;
  color: #595d57;
  font-size: 13px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.principle-grid article {
  min-height: 390px;
  padding: 26px;
  background: var(--paper);
}

.principle-grid article:nth-child(2) {
  background: var(--ink);
  color: #fff;
}

.principle-grid article:nth-child(3) {
  background: var(--lime);
}

.principle-grid .mono {
  margin: 0;
  font-size: 10px;
}

.principle-grid h2 {
  margin: 180px 0 0;
  font-size: clamp(30px, 3.3vw, 51px);
  font-weight: 500;
  line-height: 1.2;
}

.contact {
  padding-bottom: 0;
  background: var(--ink);
  color: #fff;
}

.section-label.light {
  color: rgba(255, 255, 255, 0.5);
}

.section-label.light p {
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-copy {
  margin-left: clamp(0px, 8vw, 130px);
}

.contact h2 {
  font-size: clamp(54px, 9.2vw, 140px);
}

.email-link {
  display: flex;
  max-width: 930px;
  align-items: center;
  justify-content: space-between;
  margin: clamp(60px, 9vw, 130px) 0 120px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 16px;
  font: clamp(17px, 2.2vw, 32px) "DM Mono", monospace;
  transition: color 0.2s;
}

.email-link:hover,
.email-link:focus-visible {
  color: var(--lime);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

footer p {
  margin: 0;
}

footer a {
  justify-self: end;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal].visible {
  opacity: 1;
  transform: none;
}

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

  nav {
    display: none;
  }

  .local-time {
    grid-column: 2;
  }

  .hero,
  .hero-copy {
    min-height: 90svh;
  }

  .hero h1 {
    font-size: clamp(52px, 16vw, 84px);
  }

  .hero-index {
    display: none;
  }

  .section-label {
    margin-bottom: 64px;
  }

  .about-copy,
  .contact-copy {
    margin-left: 0;
  }

  .about-detail {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 45px;
  }

  .work-item {
    grid-template-columns: 32px 1fr;
    min-height: 160px;
  }

  .work-tag {
    display: none;
  }

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

  .principle-grid article {
    min-height: 250px;
  }

  .principle-grid h2 {
    margin-top: 90px;
  }

  .contact h2 {
    font-size: clamp(50px, 15vw, 82px);
  }

  .email-link {
    margin-bottom: 80px;
  }

  footer {
    grid-template-columns: 1fr 1fr;
    row-gap: 10px;
  }

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

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

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