:root {
  --paper: #f6f1e9;
  --ink: #1e1f1e;
  --red: #eb4045;
  --blue: #307ce9;
  --line: rgba(30, 31, 30, 0.35);
  --page-padding: clamp(1.25rem, 4.2vw, 5rem);
  --hero-ratio: 2.15625;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--paper);
}

::-webkit-scrollbar {
  width: 0.75rem;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  min-height: 3.5rem;
  border: 0.2rem solid var(--paper);
  border-radius: 999px;
  background: var(--red);
}

::-webkit-scrollbar-thumb:hover {
  background: #d7353a;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

img {
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 5rem;
}

.scroll-progress {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
}

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

button {
  color: inherit;
  font: inherit;
}

::selection {
  background: var(--blue);
  color: white;
}

.page-width {
  padding-right: var(--page-padding);
  padding-left: var(--page-padding);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.75rem;
  padding-right: max(var(--page-padding), env(safe-area-inset-right));
  padding-left: max(var(--page-padding), env(safe-area-inset-left));
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--ink);
  background: rgba(246, 241, 233, 0.92);
  backdrop-filter: blur(12px);
}

.brand-monogram {
  display: inline-flex;
  gap: 0.12rem;
  align-items: baseline;
  width: fit-content;
  font-family: "Roboto Mono", monospace;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.brand-monogram span {
  display: inline-block;
  transition: transform 180ms ease;
}

.brand-zero {
  background: linear-gradient(135deg, var(--red) 0 47%, var(--blue) 53% 100%);
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.brand-monogram:hover .brand-c {
  transform: translateX(-0.08rem);
}

.brand-monogram:hover .brand-zero {
  transform: translateX(0.08rem) rotate(5deg);
}

.site-header nav {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3.5rem);
}

.site-header nav a,
.header-contact {
  font-family: "Roboto Mono", monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.site-header nav a {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4rem;
}

.site-header nav a:hover {
  text-decoration-line: underline;
  text-decoration-color: var(--red);
}

.header-contact {
  display: flex;
  justify-self: end;
  gap: 0.8rem;
  align-items: center;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--ink);
}

.header-contact span {
  transition: transform 160ms ease;
}

.header-contact:hover span {
  transform: translate(0.2rem, -0.2rem);
}

.menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-button > span:not(.sr-only) {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: 0.35rem auto;
  background: var(--ink);
  transition: transform 160ms ease;
}

.hero {
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 100svh;
  padding-right: max(var(--page-padding), env(safe-area-inset-right));
  padding-left: max(var(--page-padding), env(safe-area-inset-left));
  overflow: hidden;
}

.section-label {
  margin: 0;
  font-family: "Roboto Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-artwork {
  position: relative;
  width: min(76vw, 86rem, calc(62svh * var(--hero-ratio)));
  aspect-ratio: 1380 / 640;
  margin: 0 auto;
}

.hero-artwork img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-logo {
  z-index: 2;
}

.hero-spot {
  z-index: 1;
  will-change: transform;
}

.hero-spot-red {
  animation: drift-red 8s ease-in-out infinite alternate;
}

.hero-spot-blue {
  animation: drift-blue 9s ease-in-out infinite alternate;
}

@keyframes drift-red {
  from {
    transform: translate(-0.2%, 0.15%) rotate(-0.4deg);
  }

  to {
    transform: translate(0.6%, -0.4%) rotate(0.7deg);
  }
}

@keyframes drift-blue {
  from {
    transform: translate(0.25%, -0.2%) rotate(0.5deg);
  }

  to {
    transform: translate(-0.5%, 0.45%) rotate(-0.6deg);
  }
}

.intro {
  padding-top: clamp(4.5rem, 7vw, 7rem);
  padding-bottom: clamp(4.5rem, 7vw, 7rem);
}

.intro-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 0.45fr);
  gap: 5vw;
  align-items: end;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.intro h1 {
  max-width: 68rem;
  margin: 0;
  font-size: clamp(2.8rem, 5.3vw, 5.75rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.intro-copy > p {
  max-width: 29rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.services {
  padding-top: 3rem;
  padding-bottom: clamp(6rem, 9vw, 9rem);
  border-top: 1px solid var(--ink);
}

.services .section-label {
  color: var(--red);
}

.services-heading {
  display: grid;
  grid-template-columns: 0.45fr 1.2fr 0.65fr;
  gap: 3vw;
  align-items: start;
}

.services-heading h2,
.method-heading h2,
.contact-heading h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.4vw, 4.8rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.services-heading > p:last-child {
  max-width: 24rem;
  margin: 0.5rem 0 0;
}

.service-notes {
  max-width: 80rem;
  margin: clamp(4.5rem, 7vw, 7rem) auto 0;
}

.service {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1rem;
  width: min(100%, 49rem);
  padding-top: 1.25rem;
  border-top: 3px solid var(--ink);
  transition: transform 280ms ease;
}

.service + .service {
  margin-top: clamp(4rem, 6vw, 6rem);
}

.service-tool {
  margin-left: auto;
  border-color: var(--blue);
}

.service-brand {
  margin-left: 12%;
  border-color: var(--red);
}

.service:hover {
  transform: translateX(0.75rem);
}

.service-tool:hover {
  transform: translateX(-0.75rem);
}

.service-number {
  margin: 0.35rem 0 0;
  font-family: "Roboto Mono", monospace;
  font-size: 0.8rem;
}

.service h3 {
  max-width: 42rem;
  margin: 0 0 1.25rem;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.service h3 + p {
  max-width: 38rem;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.service ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.service li {
  font-family: "Roboto Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.service li::before {
  content: "— ";
}

.method {
  padding: clamp(5rem, 7vw, 7rem) 0;
  background: var(--ink);
  color: var(--paper);
}

.method .section-label {
  color: var(--blue);
}

.method-heading {
  display: grid;
  grid-template-columns: 0.45fr 1.2fr 0.65fr;
  gap: 3vw;
  align-items: start;
}

.method-heading > p:last-child {
  max-width: 26rem;
  margin: 0.5rem 0 0;
  color: rgba(246, 241, 233, 0.72);
}

.method-list {
  padding: 0;
  margin: clamp(4rem, 6vw, 6rem) 0 0 21%;
  list-style: none;
  border-top: 1px solid rgba(246, 241, 233, 0.5);
}

.method-list li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(246, 241, 233, 0.5);
  transition: padding-left 220ms ease, color 220ms ease;
}

.method-list li:hover {
  padding-left: 0.75rem;
}

.method-list li > span {
  padding-top: 0.4rem;
  font-family: "Roboto Mono", monospace;
  font-size: 0.8rem;
  color: rgba(246, 241, 233, 0.56);
}

.method-list h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.method-list p {
  max-width: 42rem;
  margin: 0;
  color: rgba(246, 241, 233, 0.68);
}

.work {
  padding-top: clamp(5rem, 7vw, 7rem);
  padding-bottom: clamp(5rem, 7vw, 7rem);
  border-top: 1px solid var(--ink);
}

.work .section-label {
  color: var(--blue);
}

.work-heading {
  display: grid;
  grid-template-columns: 0.45fr 1.2fr 0.65fr;
  gap: 3vw;
  align-items: start;
}

.work-heading h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.4vw, 4.8rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.work-heading > p:last-child {
  max-width: 24rem;
  margin: 0.5rem 0 0;
}

.work-list {
  margin-top: clamp(4rem, 6vw, 6rem);
}

.work-item {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding-top: 1.5rem;
  border-top: 3px solid var(--ink);
}

.work-item + .work-item {
  margin-top: clamp(4rem, 6vw, 6rem);
}

.work-item-b {
  border-color: var(--blue);
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
}

.work-item-b .work-media {
  order: 2;
}

.work-media {
  margin: 0;
}

.work-media a {
  display: block;
}

.work-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(30, 31, 30, 0.14);
  background: rgba(30, 31, 30, 0.04);
}

.work-media a:hover img {
  opacity: 0.92;
}

.work-number,
.work-client {
  margin: 0;
  font-family: "Roboto Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.work-number {
  margin-bottom: 1rem;
}

.work-client {
  margin-bottom: 0.75rem;
  color: rgba(30, 31, 30, 0.62);
}

.work-copy h3 {
  max-width: 28rem;
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.work-copy > p:not(.work-number):not(.work-client) {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.work-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  margin: 1.75rem 0 0;
  list-style: none;
}

.work-copy li {
  font-family: "Roboto Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.work-copy li::before {
  content: "— ";
}

.work-copy a {
  text-decoration: underline;
  text-underline-offset: 0.22rem;
  text-decoration-thickness: 1px;
}

.work-copy a:hover {
  color: var(--blue);
}

.about {
  padding-top: clamp(5rem, 7vw, 7rem);
  padding-bottom: clamp(5rem, 7vw, 7rem);
  border-top: 1px solid var(--ink);
}

.about .section-label {
  color: var(--red);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  margin-top: 3rem;
}

.about-portrait {
  margin: 0;
  width: min(100%, 18rem);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  clip-path: circle(50%);
  background: rgba(30, 31, 30, 0.06);
}

.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.about-text h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(3.5rem, 6.2vw, 6.5rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.about-copy {
  max-width: 37rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.nav-contact {
  display: none;
}

.contact {
  padding: clamp(4.5rem, 6vw, 6rem) 0 2rem;
  background: var(--blue);
  color: var(--paper);
}

.contact-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 4vw;
  align-items: start;
}

.contact-heading h2 {
  max-width: 50rem;
}

.contact-heading > div > p {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.contact-form {
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field span {
  font-family: "Roboto Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field span em {
  font-style: normal;
  opacity: 0.65;
  text-transform: none;
  letter-spacing: 0;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 2px solid rgba(246, 241, 233, 0.55);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  outline: none;
  transition: border-color 160ms ease;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.45;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(246, 241, 233, 0.45);
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--paper);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

.form-submit {
  display: inline-flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0 0 0.35rem;
  border: 0;
  border-bottom: 3px solid var(--paper);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.form-submit span {
  transition: transform 160ms ease;
}

.form-submit:hover span {
  transform: translate(0.25rem, -0.25rem);
}

.form-note {
  margin: 0;
  max-width: 28rem;
  font-size: 0.95rem;
  color: rgba(246, 241, 233, 0.78);
}

.form-note a {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.form-success {
  margin: 2rem 0 0;
  padding: 1rem 0;
  border-top: 2px solid rgba(246, 241, 233, 0.45);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.form-success[hidden] {
  display: none;
}

.contact-meta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(246, 241, 233, 0.35);
  font-family: "Roboto Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.contact-meta p {
  margin: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 1.75rem var(--page-padding);
  border-top: 1px solid var(--ink);
  font-family: "Roboto Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer p:last-child {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 4.25rem;
  }

  .menu-button {
    display: block;
  }

  .menu-button[aria-expanded="true"] > span:first-child {
    transform: translateY(0.25rem) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(-0.25rem) rotate(-45deg);
  }

  .site-header nav {
    position: absolute;
    z-index: -1;
    top: 4.25rem;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem var(--page-padding);
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
    transform: translateY(-140%);
    transition: transform 220ms ease;
  }

  .site-header nav.is-open {
    z-index: 25;
    transform: none;
  }

  .nav-contact {
    display: inline;
  }

  .header-contact {
    display: none;
  }

  .hero {
    height: 100vh;
    height: 100svh;
    min-height: 100svh;
  }

  .hero-artwork {
    width: min(90vw, 46rem, calc(58svh * var(--hero-ratio)));
  }

  .intro-copy,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    width: min(48vw, 12.5rem);
    max-width: 12.5rem;
  }

  .services-heading,
  .method-heading,
  .work-heading {
    grid-template-columns: 0.35fr 1.65fr;
  }

  .services-heading > p:last-child,
  .method-heading > p:last-child,
  .work-heading > p:last-child {
    grid-column: 2;
  }

  .service {
    width: 92%;
  }

  .service-tool {
    width: 88%;
  }

  .service-brand {
    margin-left: 4%;
  }

  .work-item,
  .work-item-b {
    grid-template-columns: 1fr;
  }

  .work-item-b .work-media {
    order: 0;
  }

  .method-list {
    margin-left: 0;
  }

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

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

@media (max-width: 520px) {
  .hero-artwork {
    width: min(92vw, calc(52svh * var(--hero-ratio)));
  }

  .intro h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .services-heading,
  .method-heading,
  .work-heading {
    grid-template-columns: 1fr;
  }

  .services-heading > p:last-child,
  .method-heading > p:last-child,
  .work-heading > p:last-child {
    grid-column: auto;
  }

  .service,
  .service-tool,
  .service-brand {
    grid-template-columns: 2.5rem 1fr;
    width: 100%;
    margin-left: 0;
  }

  .service h3 {
    font-size: 2rem;
  }

  .service ul {
    display: block;
  }

  .service li + li {
    margin-top: 0.4rem;
  }

  .method-list li {
    grid-template-columns: 2.5rem 1fr;
  }

  .about-text h2 {
    font-size: clamp(3.5rem, 17vw, 5.25rem);
  }

  .form-submit {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .contact-meta {
    display: block;
  }

  .contact-meta p + p {
    margin-top: 0.5rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

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

@media (orientation: landscape) and (max-height: 600px) {
  .site-header {
    min-height: 3.75rem;
  }

  .site-header nav {
    top: 3.75rem;
    max-height: calc(100svh - 3.75rem);
    overflow-y: auto;
  }

  .hero-artwork {
    width: min(72vw, calc(58svh * var(--hero-ratio)));
  }
}

@media (max-width: 360px) {
  :root {
    --page-padding: 1rem;
  }

  .intro h1 {
    font-size: clamp(2.55rem, 14vw, 3.2rem);
  }

  .service h3 {
    font-size: 1.75rem;
  }

  .form-submit {
    font-size: clamp(1.15rem, 6vw, 1.45rem);
  }
}

@media (hover: none) {
  .service:hover,
  .service-tool:hover,
  .method-list li:hover {
    padding-left: 0;
    transform: none;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-spot,
  .brand-monogram span,
  .service,
  .method-list li {
    transition: none;
    animation: none;
  }
}
