@font-face {
  font-family: "Archivo";
  src: url("assets/archivo-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("assets/archivo-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Spline Sans Mono";
  src: url("assets/spline-sans-mono.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f3f2ee;
  --ink: #1a1917;
  --blue: #2440e6;
  --red: #e8442e;
  --yellow: #f5c518;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", Arial, sans-serif;
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  background: var(--white);
  border: 1px solid var(--ink);
  transform: translateY(-80px);
}

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

.site {
  min-height: 1760px;
  background: var(--paper);
}

.top {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 54px;
  border-bottom: 1px solid var(--ink);
  animation: rise 0.65s both;
}

.monogram {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1.6px;
}

.monogram span {
  color: var(--red);
}

.nav {
  display: flex;
  gap: 29px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue);
  transform: translateY(-2px);
}

.nav a:last-child {
  color: var(--red);
}

.hero {
  height: 624px;
  position: relative;
  overflow: hidden;
  padding: 77px 54px 0;
  border-bottom: 1px solid var(--ink);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: rise 0.6s 0.15s both;
}

.dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  flex: 0 0 auto;
  background: var(--red);
  animation: pulse 1.8s ease-in-out infinite;
}

.headline {
  max-width: 900px;
  margin: 25px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 148px;
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.085em;
  animation: rise 0.8s 0.26s both;
}

.headline .accent {
  color: var(--blue);
}

.sub {
  max-width: 360px;
  margin: 39px 0 0 51%;
  font-size: 18px;
  line-height: 1.42;
  letter-spacing: -0.025em;
  animation: rise 0.7s 0.47s both;
}

.role {
  position: absolute;
  bottom: 35px;
  left: 54px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: rise 0.6s 0.58s both;
}

.stamp {
  position: absolute;
  right: 54px;
  bottom: 28px;
  width: 126px;
  height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: "Spline Sans Mono", monospace;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  transform: rotate(11deg);
  animation: stamp-in 0.8s 0.55s both;
}

.stamp:hover {
  animation: spin 0.9s ease-in-out;
}

.stamp b {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 29px;
  line-height: 1;
}

.projects-head {
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 54px;
  border-bottom: 1px solid var(--ink);
}

.projects-head h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.projects-head p {
  margin: 0;
  font-size: 12px;
}

.projects {
  padding: 0 54px;
}

.project {
  height: 215px;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 220px 42px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--ink);
  outline: none;
  transition: padding 0.3s ease, background 0.3s ease;
}

.number {
  font-family: "Spline Sans Mono", monospace;
  font-size: 13px;
}

.project h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 53px;
  line-height: 0.95;
  letter-spacing: -0.065em;
  transition: color 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tags {
  max-width: 160px;
  font-size: 13px;
  line-height: 1.55;
  transition: transform 0.3s ease;
}

.arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 24px;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s ease;
}

.project:hover,
.project:focus-visible {
  padding-left: 18px;
  background: var(--white);
}

.project:hover h3,
.project:focus-visible h3 {
  color: var(--blue);
  transform: translateX(8px);
}

.project:hover .tags,
.project:focus-visible .tags {
  transform: translateX(5px);
}

.project:hover .arrow,
.project:focus-visible .arrow {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  transform: rotate(45deg);
}

.about {
  display: grid;
  grid-template-columns: 1fr 1.48fr;
  gap: 80px;
  padding: 66px 54px 72px;
  color: var(--white);
  background: var(--ink);
}

.about-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-copy {
  max-width: 850px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 39px;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.about-copy em {
  color: var(--yellow);
  font-style: normal;
}

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 37px 54px 42px;
  color: var(--white);
  background: var(--blue);
}

.footer h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 66px;
  line-height: 0.9;
  letter-spacing: -0.07em;
  transition: letter-spacing 0.3s ease;
}

.footer:hover h2 {
  letter-spacing: -0.04em;
}

.contact {
  margin: 0;
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
  text-align: right;
}

.contact b {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact a:hover,
.contact a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-25deg) scale(0.7); }
  to { opacity: 1; transform: rotate(11deg) scale(1); }
}

@keyframes spin {
  to { transform: rotate(371deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.55); }
}

@media (max-width: 700px) {
  .top,
  .hero,
  .projects,
  .projects-head,
  .about,
  .footer {
    padding-left: 25px;
    padding-right: 25px;
  }

  .nav {
    gap: 12px;
  }

  .headline {
    font-size: 76px;
  }

  .hero {
    height: 560px;
  }

  .sub {
    margin-left: 0;
  }

  .stamp {
    right: 25px;
  }

  .project {
    grid-template-columns: 46px minmax(0, 1fr) 35px;
  }

  .project h3 {
    font-size: 34px;
  }

  .tags {
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-copy {
    font-size: 31px;
  }

  .footer {
    display: block;
  }

  .footer h2 {
    font-size: 51px;
  }

  .contact {
    margin-top: 28px;
    text-align: left;
  }
}

@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;
  }
}
