@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=Inter:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,350..600&display=swap");

:root {
  --ink: #191918;
  --muted: #5f625e;
  --paper: #f2f1ec;
  --paper-deep: #e7e7e1;
  --line: #c8cac3;
  --moss: #355d50;
  --wine: #76433f;
  --blue: #3e526b;
  --white: #f8f8f4;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

body {
  background:
    linear-gradient(90deg, rgba(25, 25, 24, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--paper);
  font-family: var(--font-body);
  line-height: 1.5;
}

.site-header,
.nav-links,
.eyebrow,
.section-kicker,
.fit-grid,
.intake-form,
.site-footer {
  font-family: var(--font-body);
}

.site-header {
  min-height: 72px;
}

.nav-links {
  gap: 20px;
  font-size: 13px;
  font-weight: 500;
}

.hero {
  min-height: calc(100svh - 72px);
  padding: 68px 0 82px;
}

.hero-grid {
  min-height: calc(100svh - 222px);
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.58fr);
  gap: 64px;
}

h1,
h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: 0;
}

h1 {
  width: min(100%, 830px);
  margin-bottom: 34px;
  font-size: inherit;
  font-weight: 400;
  line-height: 1;
}

.hero-lead {
  display: block;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 108px);
  font-weight: 400;
  line-height: 0.98;
  white-space: nowrap;
}

.hero-qualifier {
  display: block;
  max-width: 20ch;
  margin-top: 28px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 400;
  line-height: 1.04;
}

.hero-copy {
  width: min(100%, 640px);
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.48;
}

.cube-spec {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  justify-self: end;
}

.cube-spec::before,
.cube-spec::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.cube-spec::before {
  top: 20px;
  right: 8px;
  left: 16px;
  border-top: 1px solid rgba(25, 25, 24, 0.35);
}

.cube-spec::after {
  top: 40px;
  right: -4px;
  bottom: 46px;
  border-right: 1px solid rgba(25, 25, 24, 0.35);
}

.cube-note,
.cube-caption {
  position: absolute;
  z-index: 2;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.3;
}

.cube-note-top {
  top: 10px;
  left: 16px;
}

.cube-note-side {
  top: 44px;
  right: -16px;
  writing-mode: vertical-rl;
}

.cube-caption {
  right: 14px;
  bottom: 0;
  max-width: 28ch;
  text-align: right;
}

.cube-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --scroll-turn: 0deg;
  --drag-x: 0deg;
  --drag-y: 0deg;
  position: absolute;
  inset: 42px 40px 54px 34px;
  width: auto;
  height: auto;
  cursor: grab;
  perspective: 1200px;
  touch-action: none;
}

.logo-cube {
  --cube-size: 188px;
  animation: cube-idle-drift 18s ease-in-out infinite;
  transform: rotateX(calc(-17deg + var(--tilt-x) + var(--drag-x)))
    rotateY(calc(30deg + var(--tilt-y) + var(--scroll-turn) + var(--drag-y)));
  transition: transform 180ms ease-out;
}

.cube-stage[data-active="true"] .logo-cube {
  animation-play-state: running;
}

.cube-stage[data-dragging="true"] {
  cursor: grabbing;
}

.cube-stage[data-dragging="true"] .logo-cube {
  animation-play-state: paused;
  transition: none;
}

@keyframes cube-idle-drift {
  0%,
  100% {
    transform: rotateX(calc(-17deg + var(--tilt-x) + var(--drag-x)))
      rotateY(calc(26deg + var(--tilt-y) + var(--scroll-turn) + var(--drag-y)));
  }

  50% {
    transform: rotateX(calc(-12deg + var(--tilt-x) + var(--drag-x)))
      rotateY(calc(42deg + var(--tilt-y) + var(--scroll-turn) + var(--drag-y)));
  }
}

.cube-face {
  display: grid;
  place-items: center;
  border-color: rgba(25, 25, 24, 0.78);
  background: var(--paper-deep);
  box-shadow: none;
}

.cube-front {
  background: var(--white);
}

.cube-right {
  background: #e4e9e5;
}

.cube-left {
  background: #e7e8e6;
}

.cube-top {
  background: #ece7e5;
}

.cube-bottom,
.cube-back {
  background: #e1e2dd;
}

.cube-face img,
.cube-right img,
.cube-left img,
.cube-top img,
.cube-bottom img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 1;
  filter: grayscale(1) contrast(1.6);
}

.cube-egg {
  width: 42%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2.25;
  vector-effect: non-scaling-stroke;
}

.statement-band {
  padding: 30px 0 34px;
}

.statement-band p {
  width: min(100%, 920px);
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 400;
  line-height: 1.08;
}

.section {
  padding: 84px 0;
}

.section-kicker {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

h2 {
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 400;
  line-height: 0.98;
}

h3 {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.65vw, 22px);
  font-weight: 600;
  line-height: 1.18;
}

.section-note {
  max-width: 760px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.45;
}

.engagements-section {
  display: grid;
  gap: 46px;
}

.engagements-heading {
  width: min(100%, 880px);
}

.engagements-heading h2 {
  margin-bottom: 22px;
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.engagement-grid article {
  min-height: 430px;
  display: grid;
  grid-template-rows: auto auto minmax(76px, auto) auto 1fr;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.engagement-type,
.engagement-fit {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.engagement-type {
  margin-bottom: 54px;
  color: var(--moss);
  text-transform: uppercase;
}

.engagement-grid h3 {
  margin-bottom: 13px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(32px, 2.8vw, 40px);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.04;
}

.engagement-intro {
  max-width: 54ch;
  min-height: 74px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.engagement-grid ul {
  align-self: start;
  padding: 0;
  margin: 0 0 34px;
  list-style: none;
}

.engagement-grid li {
  position: relative;
  padding: 12px 0 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
}

.engagement-grid li::before {
  position: absolute;
  top: 18px;
  left: 1px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--moss);
  content: "";
}

.engagement-fit {
  align-self: end;
  max-width: none;
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
}

.content-section,
.fit-section {
  gap: 52px;
}

.fit-copy {
  width: min(100%, 980px);
}

.line-list {
  width: 100%;
}

.line-list article {
  display: grid;
  grid-template-columns: minmax(210px, 0.48fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 40px;
  padding: 20px 0;
}

.line-list article:first-child {
  padding-top: 0;
}

.line-list h3 {
  margin-bottom: 0;
}

.line-list p,
.fit-copy p:not(.section-kicker),
.about-copy p,
.contact-block p {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.48;
}

.fit-grid {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.fit-icon {
  width: 45px;
  height: 45px;
}

.process-list span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.process-list strong {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.45vw, 21px);
  font-weight: 600;
}

.process-list p {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 17px);
}

.about-copy {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.contact-block {
  width: 100%;
}

.contact-block > p {
  max-width: 1080px;
}

.contact-block .contact-cta {
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

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

.intake-form input,
.intake-form textarea {
  font-family: var(--font-body);
}

.intake-submit {
  font-family: var(--font-body);
}

.contact-link {
  font-family: var(--font-display);
  font-weight: 400;
}

.footer-notice,
.footer-meta,
.footer-links {
  font-family: var(--font-body);
}

@media (max-width: 1020px) {
  .nav-links {
    gap: 14px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
    gap: 36px;
  }

  .logo-cube {
    --cube-size: 176px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .cube-spec {
    width: min(100%, 390px);
    justify-self: start;
  }

  .logo-cube {
    --cube-size: 172px;
  }
}

@media (max-width: 700px) {
  .engagement-grid,
  .about-copy {
    grid-template-columns: 1fr;
  }

  .engagement-grid article {
    min-height: 0;
  }

  .engagement-intro {
    min-height: 0;
  }

  .engagement-fit {
    white-space: normal;
  }

  .line-list article {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 62px 0 70px;
  }

  .hero-lead {
    max-width: none;
    font-size: 54px;
  }

  .hero-qualifier {
    max-width: none;
    margin-top: 22px;
    font-size: 28px;
    white-space: nowrap;
  }

  .cube-spec {
    display: none;
  }

  .engagement-grid article {
    padding: 24px 20px;
  }

  .engagement-type {
    margin-bottom: 38px;
  }
}

@media (max-width: 360px) {
  .hero-lead {
    font-size: 50px;
  }

  .hero-qualifier {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-cube {
    animation: none;
    transition: none;
  }
}
