:root {
  color-scheme: light;
  --bg: #f0ede6;
  --ink: #2a2a28;
  --bg-rgb: 240 237 230;
  --ink-rgb: 42 42 40;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Instrument Serif", "Canela", "Freight Display", "Editorial New", Georgia, serif;
  --sans: "DM Sans", "Neue Haas Grotesk", "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #2e2e2c;
  --ink: #ede9e0;
  --bg-rgb: 46 46 44;
  --ink-rgb: 237 233 224;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  transition: background-color 700ms var(--ease), color 700ms var(--ease);
}

body,
button,
a {
  cursor: none;
}

::selection {
  background: rgb(var(--ink-rgb) / 0.18);
  color: var(--ink);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(90deg, rgb(var(--ink-rgb) / 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgb(var(--ink-rgb) / 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mix-blend-mode: multiply;
}

:root[data-theme="dark"] .noise {
  mix-blend-mode: screen;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100000;
  width: 18px;
  height: 18px;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0) rotate(45deg);
  opacity: 0;
  border: 1px solid var(--ink);
  transition:
    width 300ms var(--ease),
    height 300ms var(--ease),
    border-radius 300ms var(--ease),
    background-color 300ms var(--ease),
    opacity 200ms ease;
}

.cursor::before,
.cursor::after,
.brand-star::before,
.brand-star::after,
.toggle-star::before,
.toggle-star::after,
.ticker span::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 100%;
  height: 22%;
  background: currentColor;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

.cursor::after,
.brand-star::after,
.toggle-star::after,
.ticker span::after {
  width: 22%;
  height: 100%;
}

.cursor.is-visible {
  opacity: 1;
}
.lightbox {
  cursor: auto;
}

.lightbox * {
  cursor: auto;
}

body.lightbox-open {
  cursor: auto;
}

body.lightbox-open .cursor {
  display: none;
}
.cursor.is-link {
  width: 42px;
  height: 42px;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  animation: starPulse 900ms var(--ease) infinite alternate;
}
/* Transforms the circular cursor into a text caret */
.cursor.is-text {
  width: 2px;
  height: 28px;
  border-radius: 2px;
  background: var(--ink);
  border-color: transparent;
  animation: none; /* Stops the pulse animation if it inherited one */
}

/* Hide the little crosshairs inside the cursor when it's a text caret */
.cursor.is-text::before,
.cursor.is-text::after {
  display: none;
}
.brand-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  width: max-content;
}

.brand-primary {
  position: relative;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-digital {
  font-family: var(--sans);
  font-size: 0.23em;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-i {
  --star-size: 0.16em;
  --star-top: -0.12em;
  position: relative;
  display: inline-block;
}

.brand-star {
  position: absolute;
  top: var(--star-top);
  left: 50%;
  width: var(--star-size);
  height: var(--star-size);
  color: currentColor;
  transform: translate(-50%, 0) rotate(45deg);
  animation: dotSparkle 3.2s var(--ease) infinite;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 24px;
  padding: clamp(16px, 2.5vw, 34px);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition:
    padding 420ms var(--ease),
    background-color 420ms var(--ease),
    border-color 420ms var(--ease),
    box-shadow 420ms var(--ease);
}

.site-header.is-scrolled {
  padding-block: 14px;
  background: rgb(var(--bg-rgb) / 0.78);
  border-color: rgb(var(--ink-rgb) / 0.16);
  box-shadow: 0 18px 50px rgb(var(--ink-rgb) / 0.08);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.nav-wordmark {
  width: max-content;
  font-size: clamp(25px, 3.2vw, 43px);
  line-height: 0.82;
}

.brand-word-nav .brand-i {
  --star-size: 0.15em;
  --star-top: -0.14em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
}

.nav-links a,
.theme-toggle {
  position: relative;
}

.nav-links a::after,
.button::after,
.contact-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  transition: transform 450ms var(--ease);
}

.nav-links a:hover::after,
.button:hover::after,
.contact-links a:hover::after {
  transform: scaleX(1);
}

.theme-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
}

.toggle-track {
  position: relative;
  width: 54px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.toggle-star {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 14px;
  height: 14px;
  color: currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: left 550ms var(--ease), transform 550ms var(--ease);
}

:root[data-theme="dark"] .toggle-star {
  left: 30px;
  transform: translateY(-50%) rotate(135deg);
}

.section-panel {
  position: relative;
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.22);
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 104px clamp(18px, 4vw, 70px) 34px;
  overflow: hidden;
}

.hero .eyebrow {
  position: absolute;
  top: 23vh;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
}

.hero-wordmark {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(10px, 1.8vw, 24px);
  margin: 0;
  line-height: 0.78;
  text-align: center;
}

.brand-word-hero .brand-primary {
  font-size: clamp(82px, 18vw, 285px);
  line-height: 0.78;
}

.brand-word-hero .brand-digital {
  font-size: clamp(18px, 2.4vw, 38px);
}

.brand-word-hero .brand-i {
  --star-size: 0.17em;
  --star-top: -0.13em;
}

.hero-bottom {
  position: absolute;
  left: clamp(18px, 4vw, 70px);
  right: clamp(18px, 4vw, 70px);
  bottom: 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.hero-bottom p {
  max-width: 560px;
  margin: 0;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.25;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 12px 20px;
  overflow: hidden;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 350ms var(--ease), background-color 350ms var(--ease), color 350ms var(--ease);
}

.button:hover {
  background: var(--ink);
  color: var(--bg);
}

.hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.logo-fragment {
  position: absolute;
  font-family: var(--display);
  color: rgb(var(--ink-rgb) / 0.08);
  line-height: 0.75;
  user-select: none;
  will-change: transform;
}

.fragment-s {
  left: -4vw;
  top: 16vh;
  font-size: clamp(180px, 34vw, 520px);
}

.fragment-d {
  right: -6vw;
  bottom: 0;
  font-size: clamp(160px, 28vw, 430px);
}

.line-draw {
  display: block;
  width: 100%;
  height: 1px;
  transform: scaleX(var(--line-progress, 0));
  transform-origin: left;
  background: currentColor;
}

.hero-orbit .line-draw {
  position: absolute;
  color: rgb(var(--ink-rgb) / 0.32);
}

.line-one {
  left: 8vw;
  top: 36vh;
  width: 22vw;
}

.line-two {
  right: 9vw;
  bottom: 26vh;
  width: 28vw;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid rgb(var(--ink-rgb) / 0.22);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.ticker span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ticker span::after {
  position: relative;
  inset: auto;
  display: inline-block;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background:
    linear-gradient(currentColor 0 0) center / 100% 22% no-repeat,
    linear-gradient(currentColor 0 0) center / 22% 100% no-repeat;
  border-radius: 0;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 7vw, 96px);
  padding: clamp(72px, 10vw, 150px) clamp(18px, 4vw, 70px);
}

.sticky-title {
  position: sticky;
  top: 112px;
  align-self: start;
}

.sticky-title h2,
.statement-copy {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(46px, 8vw, 118px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid currentColor;
}

.service-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 34px);
  border-right: 1px solid rgb(var(--ink-rgb) / 0.35);
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.35);
}

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

.service-index {
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.service-card h3 {
  max-width: 240px;
  margin: auto 0 18px;
  font-family: var(--display);
  font-size: clamp(38px, 4.6vw, 72px);
  font-weight: 400;
  line-height: 0.9;
}

.service-card p {
  margin: 0;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.45;
}

.statement {
  min-height: 92svh;
  display: grid;
  align-content: center;
  padding: clamp(72px, 10vw, 150px) clamp(18px, 4vw, 70px);
  overflow: hidden;
}

.statement-copy {
  max-width: 1120px;
  font-size: clamp(56px, 11vw, 170px);
}

.parallax-word {
  position: absolute;
  right: -6vw;
  top: 4vh;
  font-family: var(--display);
  font-size: clamp(240px, 42vw, 640px);
  line-height: 0.75;
  color: rgb(var(--ink-rgb) / 0.08);
  will-change: transform;
}

.process-strip {
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(34px, 5vw, 72px);
  border-top: 1px solid rgb(var(--ink-rgb) / 0.42);
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.42);
}

.process-strip span {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 18px 20px;
  border-right: 1px solid rgb(var(--ink-rgb) / 0.28);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
}

.process-strip span:last-child {
  border-right: 0;
}

.process-strip strong {
  font-weight: 700;
  opacity: 0.58;
}

.statement-lines {
  display: grid;
  gap: 18px;
  width: min(540px, 60vw);
  margin-top: clamp(30px, 5vw, 70px);
  color: rgb(var(--ink-rgb) / 0.5);
}

.masonry {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 82px;
  gap: clamp(12px, 1.6vw, 22px);
}

.project {
  position: relative;
  grid-column: span 4;
  grid-row: span 3;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgb(var(--ink-rgb) / 0.52);
  background:
    repeating-linear-gradient(90deg, transparent 0 26px, rgb(var(--ink-rgb) / 0.11) 26px 27px),
    repeating-linear-gradient(0deg, transparent 0 26px, rgb(var(--ink-rgb) / 0.08) 26px 27px);
  transition: transform 500ms var(--ease), background-color 500ms var(--ease);
}

.project-tall {
  grid-row: span 5;
}

.project-wide {
  grid-column: span 7;
}

.project:nth-child(1) {
  grid-column: 1 / span 5;
  grid-row: 1 / span 5;
}

.project:nth-child(2) {
  grid-column: 6 / span 7;
  grid-row: 1 / span 3;
}

.project:nth-child(3) {
  grid-column: 6 / span 3;
  grid-row: 4 / span 2;
}

.project:nth-child(4) {
  grid-column: 9 / span 4;
  grid-row: 4 / span 3;
}

.project:nth-child(5) {
  grid-column: 1 / span 6;
  grid-row: 6 / span 4;
}

.project::before,
.project::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgb(var(--ink-rgb) / 0.24);
  transform: rotate(8deg) scale(0.92);
  transition: transform 700ms var(--ease), opacity 700ms var(--ease);
}

.project::after {
  inset: 25%;
  transform: rotate(-14deg) scale(1.1);
}

.project:hover {
  background-color: rgb(var(--ink-rgb) / 0.08);
  transform: translateY(-6px);
}

.project:hover::before {
  transform: rotate(-2deg) scale(1.04);
}

.project:hover::after {
  transform: rotate(4deg) scale(0.92);
}

.project-mark {
  font-family: var(--display);
  font-size: clamp(92px, 12vw, 210px);
  line-height: 0.8;
  color: rgb(var(--ink-rgb) / 0.18);
  transition: transform 600ms var(--ease), color 600ms var(--ease);
}

.project-meta {
  position: absolute;
  top: 18px;
  left: 22px;
  max-width: calc(100% - 44px);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.58;
}

.project-name {
  position: absolute;
  left: 22px;
  bottom: 18px;
  max-width: calc(100% - 44px);
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 78px);
  line-height: 0.9;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease);
}

.project:hover .project-mark,
.project:focus-visible .project-mark {
  transform: scale(0.82);
  color: rgb(var(--ink-rgb) / 0.08);
}

.project:hover .project-name,
.project:focus-visible .project-name {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1.14fr);
  align-items: start;
  gap: clamp(34px, 7vw, 96px);
  padding: clamp(76px, 10vw, 150px) clamp(18px, 4vw, 70px) clamp(34px, 5vw, 80px);
}

.footer-branding {
  position: sticky;
  top: 112px;
  display: grid;
  gap: clamp(22px, 3vw, 42px);
}

.footer-brand {
  display: grid;
  gap: 0.14em;
  width: min-content;
  line-height: 0.78;
}

.footer-brand .brand-primary {
  font-size: clamp(72px, 12vw, 178px);
}

.footer-brand .brand-digital {
  font-size: clamp(18px, 2.2vw, 34px);
}

.footer-copy {
  max-width: 520px;
  margin: 0;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.25;
}

.contact-links {
  display: grid;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  font-size: clamp(17px, 1.8vw, 26px);
  line-height: 1.1;
}

.contact-links a {
  position: relative;
  width: max-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid currentColor;
  border-left: 1px solid rgb(var(--ink-rgb) / 0.42);
}

.form-field {
  display: grid;
  gap: 18px;
  min-height: 172px;
  padding: clamp(18px, 2.5vw, 30px);
  border-right: 1px solid rgb(var(--ink-rgb) / 0.42);
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.42);
}

.form-field-full {
  grid-column: 1 / -1;
  min-height: 260px;
}

.form-field label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.2;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgb(var(--ink-rgb) / 0.48);
}

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

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 92px;
  padding: clamp(18px, 2.5vw, 30px);
  border-right: 1px solid rgb(var(--ink-rgb) / 0.42);
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.42);
}

.form-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  opacity: 0.72;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

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

@keyframes dotSparkle {
  0%,
  100% {
    opacity: 0.8;
    transform: translate(-50%, 0) rotate(45deg) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -0.08em) rotate(45deg) scale(1.08);
  }
}

@keyframes starPulse {
  from {
    transform: translate3d(-50%, -50%, 0) rotate(45deg) scale(0.92);
  }
  to {
    transform: translate3d(-50%, -50%, 0) rotate(45deg) scale(1.08);
  }
}

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

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 920px) {
  body,
  button,
  a {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  .hero-bottom,
  .site-footer {
    align-items: flex-start;
  }

  .hero-bottom {
    flex-direction: column;
  }

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

  .sticky-title,
  .footer-branding {
    position: relative;
    top: auto;
  }

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

  .service-card {
    min-height: 310px;
    border-right: 0;
  }

  .process-strip,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .process-strip span {
    border-right: 0;
    border-bottom: 1px solid rgb(var(--ink-rgb) / 0.28);
  }

  .process-strip span:last-child {
    border-bottom: 0;
  }

  .masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .project,
  .project-wide,
  .project-tall,
  .project:nth-child(1),
  .project:nth-child(2),
  .project:nth-child(3),
  .project:nth-child(4),
  .project:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1 / 1.08;
  }

  .project-name {
    opacity: 1;
    transform: none;
  }

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

@media (max-width: 560px) {
  .site-header {
    padding: 14px;
  }

  .site-header.is-scrolled {
    padding-block: 12px;
  }

  .nav-wordmark {
    font-size: 26px;
  }

  .theme-toggle {
    gap: 8px;
  }

  .toggle-label {
    display: none;
  }

  .hero {
    padding-inline: 14px;
  }

  .hero .eyebrow {
    top: 28vh;
  }

  .brand-word-hero .brand-primary {
    font-size: clamp(74px, 23vw, 128px);
  }

  .brand-word-hero .brand-digital {
    font-size: clamp(15px, 5vw, 22px);
  }

  .hero-bottom {
    left: 14px;
    right: 14px;
  }

  .content-section,
  .statement,
  .site-footer {
    padding-inline: 14px;
  }

  .statement-copy {
    font-size: clamp(48px, 16vw, 86px);
  }

  .project-name {
    font-size: clamp(38px, 13vw, 58px);
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

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