:root {
  --ink: #171715;
  --muted: #67645c;
  --paper: #f4f1ea;
  --paper-deep: #e8e1d5;
  --line: #cfc7b8;
  --moss: #2f5d50;
  --wine: #7a3131;
  --blue: #263f63;
  --white: #fffdfa;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 23, 21, 0.04) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--paper);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-color: rgba(47, 93, 80, 0.45);
  text-underline-offset: 0.18em;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
}

.letterhead-logo {
  display: block;
  width: min(212px, 58vw);
  height: auto;
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  min-height: calc(100svh - 76px);
  padding: 72px 0 96px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  min-height: calc(100svh - 244px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.42fr);
  align-items: center;
  gap: 56px;
}

.hero-content {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--moss);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  width: min(100%, 1020px);
  margin-bottom: 28px;
  font-size: clamp(48px, 6.8vw, 92px);
  font-weight: 520;
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: normal;
}

h1 span {
  display: block;
}

.hero-copy {
  width: min(100%, 680px);
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.text-action {
  color: var(--ink);
  font-weight: 650;
}

.text-action.muted {
  color: var(--muted);
}

.cube-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  width: min(100%, 410px);
  aspect-ratio: 1;
  justify-self: end;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.logo-cube {
  position: relative;
  width: 62%;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: rotateX(calc(-18deg + var(--tilt-x))) rotateY(calc(28deg + var(--tilt-y)));
  animation: cube-drift 16s ease-in-out infinite;
}

.cube-face {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(23, 23, 21, 0.82);
  background: linear-gradient(135deg, rgba(255, 253, 250, 0.98), rgba(232, 225, 213, 0.82));
  box-shadow: 0 18px 34px rgba(23, 23, 21, 0.08);
  backface-visibility: hidden;
}

.cube-front {
  display: grid;
  place-items: center;
  background: var(--white);
  transform: translateZ(72px);
}

.cube-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.cube-right img,
.cube-left img {
  opacity: 0.42;
  filter: contrast(1.15);
}

.cube-back {
  transform: rotateY(180deg) translateZ(72px);
}

.cube-right {
  transform: rotateY(90deg) translateZ(72px);
  background: linear-gradient(135deg, rgba(47, 93, 80, 0.22), rgba(255, 253, 250, 0.92));
}

.cube-left {
  transform: rotateY(-90deg) translateZ(72px);
}

.cube-top {
  transform: rotateX(90deg) translateZ(72px);
  background: linear-gradient(135deg, rgba(122, 49, 49, 0.16), rgba(255, 253, 250, 0.92));
}

.cube-bottom {
  transform: rotateX(-90deg) translateZ(72px);
}

@keyframes cube-drift {
  0%,
  100% {
    transform: rotateX(calc(-18deg + var(--tilt-x))) rotateY(calc(28deg + var(--tilt-y)));
  }

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

.statement-band {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.statement-band p {
  width: min(100%, 900px);
  margin: 0;
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.06;
  max-width: 100%;
  overflow-wrap: break-word;
}

.section {
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
}

.two-column,
.proof-section,
.contact-section,
.process-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 72px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 750;
}

.line-list article {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

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

.line-list p,
.fit-copy p,
.proof-section p,
.contact-block p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.fit-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 46px;
}

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

.fit-copy h2 {
  margin-bottom: 24px;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 650;
}

.fit-grid div {
  min-height: 118px;
  display: flex;
  align-items: end;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fit-grid div:nth-child(1) {
  color: var(--moss);
}

.fit-grid div:nth-child(2) {
  color: var(--wine);
}

.fit-grid div:nth-child(3) {
  color: var(--blue);
}

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

.process-list li {
  min-height: 258px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list span {
  display: block;
  margin-bottom: 70px;
  color: var(--moss);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.process-list strong {
  display: block;
  margin-bottom: 10px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.contact-block {
  align-self: start;
}

.intake-form {
  width: min(100%, 640px);
  display: grid;
  gap: 16px;
  margin-top: 34px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.intake-form label span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.intake-form input,
.intake-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 253, 250, 0.44);
  color: var(--ink);
  font: 500 16px/1.35 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  outline: none;
}

.intake-form input {
  min-height: 48px;
  padding: 0 12px;
}

.intake-form textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
}

.intake-form input:focus,
.intake-form textarea:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 1px var(--moss);
}

.intake-submit {
  justify-self: start;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0 20px;
  background: var(--ink);
  color: var(--paper);
  font: 750 13px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.intake-submit:hover {
  background: transparent;
  color: var(--ink);
}

.intake-submit:disabled {
  cursor: progress;
  opacity: 0.7;
}

.form-status {
  min-height: 18px;
  margin: -4px 0 0;
  color: var(--moss) !important;
  font-size: 13px !important;
}

.submit-frame {
  display: none;
}

.contact-link {
  display: inline-block;
  margin: 30px 0 18px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1;
}

.site-footer {
  min-height: 132px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 0;
  color: var(--muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
}

.site-footer div:first-child {
  display: grid;
  gap: 5px;
}

.site-footer strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 900px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--max));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero {
    min-height: auto;
    padding: 80px 0;
  }

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

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

  .cube-front {
    transform: translateZ(50px);
  }

  .cube-back {
    transform: rotateY(180deg) translateZ(50px);
  }

  .cube-right {
    transform: rotateY(90deg) translateZ(50px);
  }

  .cube-left {
    transform: rotateY(-90deg) translateZ(50px);
  }

  .cube-top {
    transform: rotateX(90deg) translateZ(50px);
  }

  .cube-bottom {
    transform: rotateX(-90deg) translateZ(50px);
  }

  .two-column,
  .proof-section,
  .contact-section,
  .process-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li {
    min-height: 190px;
  }

  .process-list span {
    margin-bottom: 38px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    overflow: hidden;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  h1 {
    font-size: 33px;
    line-height: 1;
  }

  h1 span {
    display: block;
  }

  .hero-copy,
  .statement-band p,
  .line-list p,
  .fit-copy p,
  .proof-section p,
  .contact-block p {
    width: 100%;
    max-width: 320px;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    font-size: 18px;
  }

  .section {
    padding: 58px 0;
  }

  .statement-band p {
    font-size: 22px;
    line-height: 1.12;
  }

  h2 {
    font-size: 32px;
    line-height: 1.05;
    max-width: 340px;
  }

  .cube-stage {
    display: none;
  }

  .intake-form {
    width: 100%;
    margin-top: 28px;
  }

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

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

  .logo-cube {
    animation: none;
  }
}
