:root {
  --black: #050505;
  --ink: #111111;
  --paper: #f7f7f2;
  --paper-soft: #ebeae2;
  --muted: #77766e;
  --line: rgba(17, 17, 17, 0.12);
  --yellow: #ffea00;
  --teal: #16b7a8;
  --blue: #3454d1;
  --radius: 8px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.cursor-light {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: 340px;
  height: 340px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 234, 0, 0.22), rgba(255, 234, 0, 0) 66%);
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 200ms ease;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 62px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.76);
  color: white;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 112px;
  font-weight: 800;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--yellow);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links a {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  outline: none;
}

.section-band {
  position: relative;
  padding: 112px max(24px, calc((100vw - 1120px) / 2));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
  min-height: 92vh;
  padding-top: 128px;
  padding-bottom: 64px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(5, 5, 5, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
}

.hero::after {
  content: "";
  position: absolute;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: 0;
  left: max(24px, calc((100vw - 1120px) / 2));
  height: 1px;
  background: var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(5rem, 15vw, 11rem);
  font-weight: 800;
}

.hero-text {
  width: min(620px, 100%);
  margin: 26px 0 0;
  color: #33332f;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--yellow);
  box-shadow: 7px 7px 0 var(--ink);
}

.button-secondary {
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: white;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  isolation: isolate;
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(430px, 82vw);
  height: auto;
  filter: drop-shadow(0 34px 42px rgba(0, 0, 0, 0.2));
  animation: floatLogo 5.8s ease-in-out infinite;
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 50%;
  animation: rotateOrbit 18s linear infinite;
}

.orbit-one {
  width: min(440px, 84vw);
  height: min(440px, 84vw);
}

.orbit-two {
  width: min(320px, 66vw);
  height: min(320px, 66vw);
  border-color: rgba(22, 183, 168, 0.44);
  animation-duration: 13s;
  animation-direction: reverse;
}

.orbit::before {
  content: "";
  position: absolute;
  top: 16%;
  right: 7%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255, 234, 0, 0.2);
}

.project-preview {
  position: absolute;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(360px, calc(100% - 48px));
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 247, 242, 0.82);
  backdrop-filter: blur(14px);
}

.project-preview span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.project-preview strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.projects-section,
.contact-section {
  background: var(--black);
  color: white;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  font-weight: 800;
}

.section-heading p:last-child {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.04rem;
}

.services-section .section-heading p:last-child {
  color: var(--muted);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--black);
  outline: none;
}

.filter-button.is-unavailable {
  display: none;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #111111;
  min-height: 430px;
  transition: transform 220ms ease, border-color 220ms ease, opacity 220ms ease;
}

.project-card:hover {
  border-color: rgba(255, 234, 0, 0.7);
  transform: translateY(-6px);
}

.project-card.is-hidden {
  display: none;
}

.project-media {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 190px;
  place-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  isolation: isolate;
}

.project-media::before {
  content: "";
  width: 116px;
  height: 116px;
  border: 16px solid var(--black);
  transform: rotate(45deg);
}

.project-media.has-cover {
  background: #1b1b1b;
}

.project-media.has-cover::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: auto;
  height: auto;
  border: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0) 40%, rgba(5, 5, 5, 0.74) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.48), rgba(5, 5, 5, 0));
  transform: none;
}

.project-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 500ms ease, filter 500ms ease;
}

.project-card:hover .project-cover {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.06);
}

.project-number {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  color: rgba(5, 5, 5, 0.62);
  font-size: 2.2rem;
  font-weight: 800;
}

.has-cover .project-number {
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.project-domain {
  position: absolute;
  left: 16px;
  bottom: 17px;
  z-index: 2;
  max-width: calc(100% - 92px);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.media-yellow {
  background: var(--yellow);
}

.media-white {
  background: var(--paper);
}

.media-teal {
  background: var(--teal);
}

.project-content {
  padding: 22px;
}

.project-type {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-content h3,
.service-item h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.1;
}

.project-content p:not(.project-type),
.service-item p {
  margin: 14px 0 20px;
  color: rgba(255, 255, 255, 0.68);
}

.project-content a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-weight: 800;
}

.project-content a::after {
  content: ">";
  margin-left: 8px;
  color: var(--yellow);
  transition: transform 160ms ease;
}

.project-content a:hover::after,
.project-content a:focus-visible::after {
  transform: translateX(4px);
}

.services-section {
  background: var(--paper);
}

.services-section .section-heading {
  margin-bottom: 14px;
}

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

.service-item {
  display: grid;
  grid-template-columns: 72px minmax(180px, 0.42fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-item span {
  color: var(--muted);
  font-weight: 800;
}

.service-item p {
  max-width: 620px;
  margin: 0;
  color: #4a4943;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 470px);
  gap: clamp(30px, 4vw, 48px);
  align-items: center;
  overflow: hidden;
}

.contact-copy h2 {
  max-width: 560px;
  font-size: clamp(2.7rem, 4.35vw, 4.25rem);
  line-height: 1.04;
  overflow-wrap: break-word;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-self: end;
  gap: 16px;
  width: 100%;
  max-width: 470px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #111111;
  box-shadow: 8px 8px 0 var(--yellow);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row-wide,
.contact-submit,
.form-status {
  grid-column: 1 / -1;
}

.form-row label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: #050505;
  color: white;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

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

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 234, 0, 0.14);
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 2px;
  padding: 13px 18px;
  border: 1px solid var(--yellow);
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--black);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 white;
  outline: none;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px max(24px, calc((100vw - 1120px) / 2));
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatLogo {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.8deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(1deg);
  }
}

@keyframes rotateOrbit {
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 860px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding-inline: 8px;
    font-size: 0.82rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 112px;
  }

  .hero-mark {
    min-height: 360px;
    order: -1;
  }

  .project-preview {
    position: static;
    grid-column: 1;
    width: 100%;
  }

  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-section {
    align-items: start;
    overflow: visible;
  }

  .contact-copy h2 {
    max-width: 760px;
  }

  .contact-form {
    justify-self: stretch;
    max-width: none;
  }

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

  .service-item {
    grid-template-columns: 46px 1fr;
    align-items: start;
  }

  .service-item p {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .cursor-light {
    display: none;
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    min-height: 58px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    width: 100%;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(5, 5, 5, 0.82);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .nav-links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .section-band {
    padding-inline: 18px;
  }

  .hero {
    padding-top: 146px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-logo {
    width: min(300px, 88vw);
  }

  .project-preview,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form {
    grid-template-columns: 1fr;
    box-shadow: 7px 7px 0 var(--yellow);
  }
}
