@font-face {
  font-family: "Readymade Modular";
  src: url("assets/ReadymadeModularType-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #f5f4ef;
  --ink: #111111;
  --muted: #575757;
  --line: rgba(17, 17, 17, 0.18);
  --line-strong: rgba(17, 17, 17, 0.72);
  --paper: #fffdf7;
  --charcoal: #171717;
  --charcoal-soft: #242424;
  --white: #f8f8f3;
  --red: #e63946;
  --green: #00d282;
  --max: 1440px;
  --scroll-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.055;
  background-image:
    repeating-linear-gradient(0deg, rgba(17, 17, 17, 0.38) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(17, 17, 17, 0.18) 0 1px, transparent 1px 5px);
  mix-blend-mode: multiply;
}

img {
  display: block;
  max-width: 100%;
}

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

p,
h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(5rem, 13vw, 13.5rem);
  line-height: 0.82;
}

h2 {
  font-size: clamp(2.35rem, 5vw, 6rem);
  line-height: 0.95;
}

h3 {
  font-size: clamp(1.05rem, 1.3vw, 1.45rem);
  line-height: 1.1;
  font-weight: 700;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  border: 1px solid var(--white);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(245, 244, 239, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  transform: scaleX(var(--scroll-progress));
  transform-origin: left;
  background: var(--ink);
}

.brand-mark {
  width: clamp(132px, 15vw, 190px);
}

.brand-mark img,
.site-footer img {
  width: 100%;
  height: auto;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.35rem);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a,
.site-footer a {
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-footer a:hover {
  border-bottom-color: currentColor;
}

a:focus-visible,
.button:focus-visible,
.email-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 92px);
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(calc(1.03 + (var(--scroll-progress) * 0.045)));
  transform-origin: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.84), rgba(17, 17, 17, 0.46) 48%, rgba(17, 17, 17, 0.12)),
    linear-gradient(0deg, rgba(17, 17, 17, 0.62), transparent 44%);
}

.hero-content {
  display: grid;
  align-content: end;
  min-height: calc(100svh - 92px);
  max-width: var(--max);
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--white);
}

.hero .kicker,
.hero h1,
.hero .hero-body,
.hero .proof-line,
.hero .hero-actions {
  animation: hero-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  animation-delay: 90ms;
}

.hero .hero-body {
  animation-delay: 170ms;
}

.hero .proof-line {
  animation-delay: 230ms;
}

.hero .hero-actions {
  animation-delay: 290ms;
}

.kicker,
.section-label,
.proof-line,
.project-index,
.button,
.email-link,
.hero-meta,
.brand-list,
.service-list span,
.format-grid span,
.signal-matrix span {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.kicker {
  margin-bottom: 1.1rem;
  color: var(--green);
}

.hero-body {
  max-width: 680px;
  margin-top: clamp(1.2rem, 2.4vw, 2rem);
  font-size: clamp(1.05rem, 1.8vw, 1.55rem);
}

.proof-line {
  max-width: 660px;
  margin-top: 1.2rem;
  color: rgba(248, 248, 243, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.85rem 1rem;
  border: 1px solid currentColor;
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease;
}

.button::before {
  content: "[ ";
}

.button::after {
  content: " ]";
}

.button.primary {
  background: var(--white);
  color: var(--ink);
}

.button.secondary {
  color: var(--white);
}

.button:hover,
.email-link:hover {
  transform: translateY(-2px);
}

.button:active,
.email-link:active {
  transform: translateY(1px);
}

.hero-meta {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2.5rem);
  display: grid;
  gap: 0.5rem;
  justify-items: end;
  color: rgba(248, 248, 243, 0.82);
}

.section,
.logo-strip,
.contact,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-right: clamp(1rem, 3vw, 2.5rem);
  padding-left: clamp(1rem, 3vw, 2.5rem);
}

.section,
.contact {
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.section-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.5rem);
  padding-bottom: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.logo-strip {
  padding-top: clamp(1.6rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.6rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.brand-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.brand-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: brand-drift 34s linear infinite;
  will-change: transform;
}

.brand-marquee:hover .brand-track {
  animation-play-state: paused;
}

.brand-list {
  display: flex;
  flex: 0 0 auto;
  min-width: max-content;
  border-left: 1px solid var(--line-strong);
}

.brand-list span {
  display: grid;
  place-items: center;
  min-width: clamp(140px, 14vw, 220px);
  min-height: 84px;
  padding: 0.8rem 1.2rem;
  text-align: center;
  border-right: 1px solid var(--line-strong);
  transition: background-color 220ms ease, color 220ms ease;
}

.brand-list span:hover {
  background: var(--ink);
  color: var(--white);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.copy-stack {
  display: grid;
  gap: 1.2rem;
  max-width: 720px;
  color: var(--charcoal-soft);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.format-grid article,
.service-list article,
.signal-matrix article {
  min-width: 0;
}

.format-grid article {
  display: grid;
  align-content: start;
  min-height: 290px;
  gap: 1.1rem;
  padding: clamp(1rem, 2vw, 1.6rem);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: background-color 260ms ease, color 260ms ease, transform 260ms ease;
}

.format-grid article:last-child {
  background: var(--charcoal);
  color: var(--white);
}

.format-grid article:hover {
  transform: translateY(-6px);
  background: var(--paper);
}

.format-grid article:last-child:hover {
  background: var(--ink);
}

.format-grid p,
.service-list p,
.signal-matrix p,
.project-copy p {
  color: var(--muted);
}

.format-grid article:last-child p {
  color: rgba(248, 248, 243, 0.72);
}

.work {
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.work > .section-label,
.work-heading {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
  padding-right: clamp(1rem, 3vw, 2.5rem);
  padding-left: clamp(1rem, 3vw, 2.5rem);
}

.work-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

.work-heading a {
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.project-card {
  display: grid;
  grid-template-rows: minmax(360px, 62vh) auto;
  border-right: 1px solid var(--ink);
  background: var(--paper);
  --local-progress: 0;
  transition: background-color 260ms ease;
}

.project-card:last-child {
  border-right: 0;
}

.project-media {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: var(--ink);
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(180deg, transparent 58%, rgba(17, 17, 17, 0.34)),
    repeating-linear-gradient(90deg, rgba(248, 248, 243, 0.12) 0 1px, transparent 1px 12px);
  transition: opacity 260ms ease;
}

.project-card:hover .project-media::after {
  opacity: 1;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transform: translateY(calc(var(--local-progress) * -16px)) scale(calc(1.03 + (var(--local-progress) * 0.045)));
  transform-origin: center;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms ease;
  will-change: transform;
}

.project-card:hover img {
  filter: saturate(0.9) contrast(1.05);
  transform: translateY(calc(var(--local-progress) * -16px)) scale(calc(1.09 + (var(--local-progress) * 0.045)));
}

.project-copy {
  display: grid;
  gap: 0.75rem;
  min-height: 240px;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--ink);
  transition: background-color 260ms ease, color 260ms ease;
}

.project-card:hover .project-copy {
  background: var(--ink);
  color: var(--white);
}

.project-card:hover .project-copy p {
  color: rgba(248, 248, 243, 0.74);
}

.project-copy h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
}

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

.service-list article {
  display: grid;
  grid-template-columns: 52px minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-strong);
  transition: padding-left 240ms ease, background-color 240ms ease;
}

.service-list article:hover {
  padding-left: 0.75rem;
  background: rgba(17, 17, 17, 0.035);
}

.layer {
  position: relative;
  max-width: none;
  padding-right: max(clamp(1rem, 3vw, 2.5rem), calc((100vw - var(--max)) / 2 + 2.5rem));
  padding-left: max(clamp(1rem, 3vw, 2.5rem), calc((100vw - var(--max)) / 2 + 2.5rem));
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
}

.layer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.09;
  background-image:
    linear-gradient(rgba(248, 248, 243, 0.48) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 248, 243, 0.48) 1px, transparent 1px);
  background-size: 34px 34px;
}

.layer > *:not(.layer-backdrop) {
  position: relative;
  z-index: 1;
}

.layer .section-label {
  color: rgba(248, 248, 243, 0.72);
  border-bottom-color: rgba(248, 248, 243, 0.2);
}

.layer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.layer-grid > div:first-child {
  display: grid;
  align-content: start;
  gap: 1.2rem;
}

.layer-grid p {
  max-width: 720px;
  color: rgba(248, 248, 243, 0.76);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}

.large-line {
  padding-top: 1rem;
  color: var(--white) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3.4rem) !important;
  line-height: 1.05;
}

.signal-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(248, 248, 243, 0.48);
  border-left: 1px solid rgba(248, 248, 243, 0.48);
}

.signal-matrix article {
  min-height: 170px;
  padding: 1.1rem;
  border-right: 1px solid rgba(248, 248, 243, 0.48);
  border-bottom: 1px solid rgba(248, 248, 243, 0.48);
  transition: background-color 240ms ease, transform 240ms ease;
}

.signal-matrix article:hover {
  transform: translateY(-4px);
  background: rgba(248, 248, 243, 0.06);
}

.signal-matrix span {
  display: block;
  margin-bottom: 2rem;
  color: var(--green);
}

.signal-matrix p {
  color: rgba(248, 248, 243, 0.72);
  font-size: 0.96rem;
}

.proof-band {
  margin-top: clamp(2rem, 4vw, 4rem);
  padding: clamp(1rem, 2.2vw, 1.75rem);
  border: 1px solid rgba(248, 248, 243, 0.48);
  border-left: 8px solid var(--green);
}

.proof-band p {
  max-width: 940px;
  color: var(--white);
  font-size: clamp(1.05rem, 1.6vw, 1.55rem);
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.use-cases li {
  min-height: 56px;
  padding: 0.9rem;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact {
  text-align: center;
  border-bottom: 1px solid var(--ink);
}

.contact .section-label {
  text-align: left;
}

.contact h2 {
  max-width: 980px;
  margin: 0 auto;
}

.contact p {
  max-width: 660px;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
}

.email-link {
  display: inline-flex;
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(200px, 0.45fr) minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.site-footer div {
  display: grid;
  gap: 0.75rem;
}

.site-footer img {
  width: 150px;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.8rem;
}

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

.motion-ready .reveal-target {
  opacity: 1;
  transform: translateY(28px);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready .reveal-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .reveal-target:nth-child(2n) {
  transition-delay: 70ms;
}

.motion-ready .reveal-target:nth-child(3n) {
  transition-delay: 120ms;
}

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

@keyframes brand-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1120px) {
  .site-header {
    align-items: start;
    gap: 1rem;
  }

  .site-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .brand-list {
    border-left: 1px solid var(--line-strong);
  }

  .two-column,
  .layer-grid {
    grid-template-columns: 1fr;
  }

  .format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-card {
    grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
    grid-template-rows: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .project-card:last-child {
    border-bottom: 0;
  }

  .project-copy {
    border-top: 0;
    border-left: 1px solid var(--ink);
  }

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

@media (max-width: 760px) {
  .site-header {
    position: static;
    min-height: auto;
  }

  .brand-mark {
    width: 130px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 84svh;
  }

  .hero-content {
    min-height: 84svh;
    padding: 2rem 1rem 4.5rem;
  }

  h1 {
    font-size: clamp(4.2rem, 21vw, 7rem);
  }

  h2 {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .hero-body {
    font-size: 1.02rem;
  }

  .hero-meta {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    justify-items: start;
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .section-label {
    display: grid;
    gap: 0.45rem;
  }

  .brand-track {
    animation-duration: 26s;
  }

  .brand-list span {
    min-width: 132px;
    min-height: 68px;
  }

  .format-grid,
  .signal-matrix,
  .use-cases {
    grid-template-columns: 1fr;
  }

  .format-grid article {
    min-height: 220px;
  }

  .work-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .project-media {
    max-height: 560px;
  }

  .project-copy {
    min-height: 0;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .service-list article {
    grid-template-columns: 42px 1fr;
  }

  .service-list article p {
    grid-column: 2;
  }

  .proof-band {
    border-left-width: 4px;
  }
}

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

  .hero-image,
  .project-card img {
    transform: none !important;
  }

  .motion-ready .reveal-target {
    opacity: 1;
    transform: none;
  }
}
