:root {
  --paper: #eeeee2;
  --ink: #1f1f1d;
  --acid: #d5fe00;
  --content: min(839px, calc(100vw - 40px));
  --nav: min(840px, calc(100vw - 40px));
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Tektur", system-ui, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.cursor-dot {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #000;
  color: var(--acid);
  font-size: 0;
  font-weight: 600;
  letter-spacing: 0.08em;
  pointer-events: none;
  text-transform: uppercase;
  transform: translate3d(-50%, -50%, 0);
  transition: width 160ms ease, height 160ms ease, font-size 160ms ease, color 160ms ease;
}

.cursor-dot span {
  opacity: 0;
  transition: opacity 100ms ease;
}

.cursor-dot.is-visible {
  display: flex;
}

.cursor-dot.is-viewing {
  width: 72px;
  height: 34px;
  font-size: 12px;
}

.cursor-dot.is-viewing span {
  opacity: 1;
}

.site-nav {
  display: flex;
  justify-content: center;
}

.nav-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: var(--nav);
  height: 56px;
  padding: 0 40px;
  background: var(--ink);
  color: var(--paper);
  letter-spacing: 0.1em;
  font-size: 14px;
}

.location-group {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.location-mark {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, 3px);
  grid-template-rows: repeat(3, 3px);
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
}

.location-mark span {
  width: 3px;
  height: 3px;
  background: var(--acid);
}

.location-mark span:nth-child(1) {
  grid-column: 1;
  grid-row: 2;
}

.location-mark span:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.location-mark span:nth-child(3) {
  grid-column: 2;
  grid-row: 3;
}

.location-mark span:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

.nav-inner a {
  transition: color 160ms ease;
}

.nav-inner a:hover,
.nav-inner a:focus-visible {
  color: var(--acid);
  outline: 0;
}

.nav-contact {
  justify-self: end;
  color: var(--acid);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.mark-link {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-logo-top {
  width: 22px;
  height: 22px;
}

.brand-logo-footer {
  width: 22px;
  height: 22px;
}

main {
  min-height: 100vh;
}

.hero {
  width: var(--content);
  margin: 95px auto 0;
}

.name-field {
  position: relative;
  margin: 0 auto;
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "wdth" 100;
  font-size: clamp(84px, 16.4vw, 236px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-align: center;
  user-select: none;
  overflow: visible;
}

.name-field::before {
  content: "JORDAN\A SMITH";
  position: absolute;
  inset: 0;
  z-index: 0;
  color: #d5d5c5;
  pointer-events: none;
  white-space: pre;
}

.name-line {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.name-field.has-physics .name-line {
  display: contents;
}

.letter {
  position: relative;
  display: inline-block;
  touch-action: manipulation;
}

.letter-face {
  display: inline-block;
  color: var(--ink);
  pointer-events: none;
}

.name-field.has-physics .letter {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  will-change: transform;
}

.impact-burst {
  position: absolute;
  z-index: 3;
  width: 88px;
  height: 70px;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--burst-angle, 0deg));
}

.impact-burst span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 3px;
  background: var(--ink);
  transform-origin: 0 50%;
  clip-path: polygon(0 32%, 88% 0, 100% 50%, 88% 100%, 0 68%);
  animation: action-line 620ms cubic-bezier(0.16, 0.82, 0.22, 1) forwards;
}

.impact-burst span:nth-child(1) {
  width: 42px;
  transform: rotate(-48deg) translateX(12px) skewX(-18deg);
}

.impact-burst span:nth-child(2) {
  width: 30px;
  height: 2px;
  transform: rotate(-24deg) translateX(18px) skewX(-12deg);
}

.impact-burst span:nth-child(3) {
  width: 52px;
  transform: rotate(8deg) translateX(16px) skewX(-20deg);
}

.impact-burst span:nth-child(4) {
  width: 26px;
  height: 2px;
  transform: rotate(28deg) translateX(20px) skewX(-8deg);
}

.impact-burst span:nth-child(5) {
  width: 38px;
  transform: rotate(52deg) translateX(13px) skewX(14deg);
}

@keyframes action-line {
  from {
    opacity: 1;
    translate: 0 0;
    scale: 0.58 1;
  }

  to {
    opacity: 0;
    translate: 18px 0;
    scale: 1.08 1;
  }
}

.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  letter-spacing: 0.1em;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: var(--content);
  margin: 120px auto 0;
}

.work-card {
  position: relative;
  display: block;
  min-height: clamp(260px, 30.5vw, 439px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(213, 254, 0, 0.26), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(238, 238, 226, 0.045) 19px 20px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.work-card:hover,
.work-card:focus-visible {
  color: var(--acid);
  outline: 0;
  transform: translateY(-4px);
}

.work-card:hover::before,
.work-card:focus-visible::before {
  opacity: 1;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 48px;
  width: var(--content);
  margin: 180px auto 144px;
  align-items: start;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--ink);
  letter-spacing: 0.1em;
}

.contact-copy h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.86;
  letter-spacing: -0.02em;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  padding: 15px 16px;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--acid);
  outline-offset: 2px;
}

.contact-form button {
  justify-self: start;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--acid);
  padding: 16px 26px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: #000;
  outline: 0;
  transform: translateY(-2px);
}

.work-modal {
  position: fixed;
  z-index: 900;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 72px 84px 48px;
  background: rgba(0, 0, 0, 0.74);
}

.work-modal[hidden] {
  display: none;
}

.modal-frame {
  position: relative;
  width: min(1320px, calc(100vw - 96px));
  margin: 0;
  color: var(--paper);
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  transform: translate3d(calc(var(--slide-index, 0) * -100%), 0, 0);
  transition: transform 280ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.carousel-slide {
  flex: 0 0 100%;
}

.modal-art {
  aspect-ratio: 839 / 439;
  width: 100%;
  max-height: calc(100vh - 190px);
  border-radius: var(--radius);
  background:
    var(--slide-gradient, linear-gradient(135deg, rgba(213, 254, 0, 0.2), transparent 42%)),
    linear-gradient(135deg, rgba(213, 254, 0, 0.2), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(238, 238, 226, 0.04) 19px 20px),
    var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.modal-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  color: var(--acid);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.modal-meta p {
  margin: 0;
}

.carousel-count {
  color: var(--paper);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 999px;
  background: var(--acid);
  color: #000;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(-50%);
  transition: transform 160ms ease, opacity 160ms ease;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  outline: 0;
  transform: translateY(-50%) scale(1.06);
}

.carousel-prev {
  left: 18px;
}

.carousel-next {
  right: 18px;
}

.modal-close {
  position: fixed;
  top: 28px;
  right: 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--acid);
  color: #000;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-close:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 3px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 93px;
  padding: 0 max(40px, calc((100vw - 1060px) / 2));
  background: var(--acid);
  color: #000;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .cursor-dot {
    transition: none !important;
  }
}

@media (pointer: fine) {
  body,
  a,
  button,
  input,
  textarea,
  .work-card {
    cursor: none;
  }
}

@media (max-width: 760px) {
  :root {
    --content: min(100vw - 28px, 839px);
    --nav: 100%;
  }

  .nav-inner {
    padding: 0 18px;
    font-size: 12px;
  }

  .location-group,
  .nav-contact {
    font-size: 11px;
  }

  .location-group {
    gap: 6px;
  }

  .hero {
    margin-top: 76px;
  }

  .name-field {
    font-size: clamp(64px, 21vw, 116px);
  }

  .category-row {
    flex-wrap: wrap;
    row-gap: 14px;
    margin-top: 42px;
    font-size: 13px;
  }

  .work-grid {
    margin-top: 72px;
  }

  .work-card {
    min-height: 230px;
    padding: 20px;
  }

  .cursor-dot {
    display: none !important;
  }

  .work-modal {
    padding: 72px 14px 24px;
    align-items: center;
  }

  .modal-frame {
    width: 100%;
  }

  .modal-art {
    max-height: calc(100vh - 190px);
  }

  .carousel-btn {
    top: auto;
    bottom: -58px;
    width: 48px;
    height: 48px;
    font-size: 0;
    transform: none;
  }

  .carousel-btn::before {
    font-size: 24px;
    line-height: 1;
  }

  .carousel-btn:hover,
  .carousel-btn:focus-visible {
    transform: none;
  }

  .carousel-prev {
    left: 0;
  }

  .carousel-prev::before {
    content: "<";
  }

  .carousel-next {
    right: 0;
  }

  .carousel-next::before {
    content: ">";
  }

  .modal-meta {
    align-items: center;
    min-height: 48px;
    padding: 0 58px;
    font-size: 12px;
  }

  .modal-close {
    top: 16px;
    right: 16px;
  }

  .contact-section {
    grid-template-columns: 1fr;
    margin: 78px auto 96px;
  }

  .site-footer {
    padding: 0 20px;
    font-size: 13px;
  }
}
