/* Box Buddy uses the portfolio's existing editorial scale and InLane case-study rhythm. */
.boxbuddy-page,
.boxbuddy-home-card {
  --boxbuddy-blue: #5e5ce6;
  --boxbuddy-ink: #212121;
  --boxbuddy-paper: #fff7e4;
  --boxbuddy-lime: #d8ef96;
  --boxbuddy-heading-body-gap: clamp(18px, 2vw, 28px);
}

.boxbuddy-page {
  background: var(--boxbuddy-paper);
}

.boxbuddy-home-card {
  display: block;
}

.section .work.boxbuddy-home-card > a:first-child {
  position: relative;
  z-index: 3;
}

.section .work.boxbuddy-home-card > a:nth-of-type(2) {
  position: relative;
  z-index: 1;
}

.boxbuddy-project-media,
.boxbuddy-hero-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--boxbuddy-ink);
  background:
    linear-gradient(rgba(33, 33, 33, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 33, 33, 0.08) 1px, transparent 1px),
    var(--boxbuddy-lime);
  background-size: 32px 32px;
}

.boxbuddy-project-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  margin-top: clamp(-64px, -4vw, -44px);
}

.boxbuddy-home-card .boxbuddy-project-media {
  background-color: #fff !important;
  background-image:
    linear-gradient(rgba(33, 33, 33, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 33, 33, 0.12) 1px, transparent 1px) !important;
  background-position: 0 0 !important;
  background-size: 32px 32px !important;
}

.boxbuddy-project-media::before,
.boxbuddy-hero-visual::before {
  position: absolute;
  z-index: 1;
  inset: 13% 6% 8%;
  content: "";
  border: 1px solid var(--boxbuddy-ink);
  background: var(--boxbuddy-paper);
}

.boxbuddy-project-hero {
  padding-bottom: clamp(48px, 7vw, 112px);
}

.boxbuddy-project-hero .work_heading {
  position: relative;
  z-index: 2;
}

.boxbuddy-hero-visual {
  width: 90vw;
  min-height: clamp(560px, 68vw, 900px);
  margin: calc(-1 * var(--project-hero-overlap)) auto 0;
  background:
    linear-gradient(rgba(33, 33, 33, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 33, 33, 0.12) 1px, transparent 1px),
    #fff;
  background-size: 32px 32px;
}

.boxbuddy-hero-screen {
  position: absolute;
  display: block;
  width: auto;
  border: 1px solid var(--boxbuddy-ink);
}

.boxbuddy-hero-screen--home {
  z-index: 4;
  top: 6%;
  left: 50%;
  height: 88%;
  transform: translateX(-50%);
}

.boxbuddy-hero-screen--ai {
  z-index: 3;
  top: 15%;
  left: 8%;
  height: 70%;
}

.boxbuddy-hero-screen--catalog {
  z-index: 3;
  top: 15%;
  right: 8%;
  height: 70%;
}

.boxbuddy-hero-copy {
  position: absolute;
  z-index: 3;
  left: 8%;
  bottom: 8%;
  max-width: 23ch;
  margin: 0;
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  font-size: clamp(16px, 2vw, 28px);
  font-weight: 300;
  line-height: 1.25;
}

.boxbuddy-product-title {
  position: absolute;
  z-index: 3;
  top: 10%;
  right: 7%;
  max-width: 9ch;
  margin: 0;
  color: var(--boxbuddy-ink);
  font-family: "EchoEcho", Baskerville, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 300;
  line-height: 0.92;
}

.boxbuddy-hero-caption {
  position: absolute;
  z-index: 3;
  right: 2%;
  bottom: 2%;
  margin: 0;
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}

.boxbuddy-section {
  padding: clamp(64px, 8vw, 124px) 5vw;
}

.boxbuddy-section[hidden] {
  display: none;
}

.boxbuddy-section--dark {
  color: #fff;
  background: var(--boxbuddy-ink);
}

.boxbuddy-section--dark .heading-16,
.boxbuddy-section--dark .project-textsection-heading,
.boxbuddy-section--dark .boxbuddy-body {
  color: inherit !important;
}

.boxbuddy-reading {
  width: 100%;
  max-width: 45rem;
}

.boxbuddy-reading--problem {
  max-width: none;
}

.boxbuddy-problem-statement {
  text-wrap: balance;
}

.boxbuddy-no-widow {
  white-space: nowrap;
}

.boxbuddy-reading .heading-16 {
  margin-top: 0;
  margin-bottom: var(--boxbuddy-heading-body-gap);
}

.boxbuddy-eyebrow {
  margin: 0 0 clamp(18px, 2vw, 30px);
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.boxbuddy-body {
  margin: 0;
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  font-size: var(--type-body-large, clamp(16px, 1.55vw, 20px));
  font-weight: 300;
  line-height: 1.4;
}

.boxbuddy-body + .boxbuddy-body {
  margin-top: clamp(18px, 2vw, 28px);
}

.boxbuddy-text-list {
  margin-top: clamp(42px, 6vw, 84px);
}

.boxbuddy-text-item + .boxbuddy-text-item {
  margin-top: clamp(32px, 4vw, 56px);
}

.boxbuddy-reading:not(.boxbuddy-text-list) > .boxbuddy-text-item {
  margin-top: clamp(32px, 4vw, 56px);
}

.boxbuddy-text-item .project-textsection-heading {
  margin-bottom: 12px;
}

.boxbuddy-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin: clamp(42px, 6vw, 84px) 0 0;
  padding: 0;
  list-style: none;
}

.boxbuddy-flow--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.boxbuddy-flow[hidden] {
  display: none;
}

.boxbuddy-subsection-heading {
  margin: clamp(64px, 8vw, 112px) 0 0;
  font-family: var(--font-body, acumin-pro, Helvetica, Arial, sans-serif);
  font-size: var(--type-subsection, clamp(16px, 1.4vw, 20px));
  font-weight: 500;
  line-height: 1.25;
}

.boxbuddy-flow-question {
  max-width: 28ch;
  margin: 18px 0 var(--boxbuddy-heading-body-gap);
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.08;
}

.boxbuddy-flow-question + .boxbuddy-body {
  margin-top: 0;
}

.boxbuddy-action-flow-image {
  display: block;
  width: min(100%, 1180px);
  margin: clamp(42px, 6vw, 84px) auto 0;
}

.boxbuddy-action-flow-image img {
  display: block;
  width: 100%;
  height: auto;
}

.boxbuddy-action-map {
  width: min(100%, 1180px);
  margin-top: clamp(42px, 6vw, 84px);
  margin-right: auto;
  margin-left: auto;
  color: var(--boxbuddy-ink);
}

.boxbuddy-action-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.boxbuddy-action-node rect,
.boxbuddy-action-node polygon {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.4;
}

.boxbuddy-action-number {
  fill: currentColor;
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  dominant-baseline: middle;
}

.boxbuddy-action-copy,
.boxbuddy-action-start-label,
.boxbuddy-action-lane text,
.boxbuddy-action-connectors text {
  fill: currentColor;
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
}

.boxbuddy-action-number,
.boxbuddy-action-copy {
  font-size: 13px;
  font-weight: 400;
}

.boxbuddy-action-start {
  fill: currentColor;
}

.boxbuddy-action-start-label {
  fill: var(--boxbuddy-paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.boxbuddy-action-lane line {
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.55;
}

.boxbuddy-action-lane text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.boxbuddy-action-connectors path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  marker-end: url(#boxbuddy-action-arrow);
}

.boxbuddy-action-connectors text {
  font-size: 13px;
  font-weight: 500;
}

.boxbuddy-action-connectors .boxbuddy-action-dashed {
  stroke-dasharray: 4 4;
}

.boxbuddy-action-map-mobile {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boxbuddy-screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
  justify-content: center;
  width: min(100%, 1000px);
  margin-top: clamp(48px, 7vw, 96px);
  margin-right: auto;
  margin-left: auto;
}

.boxbuddy-screen-grid--two {
  grid-template-columns: repeat(2, minmax(0, 300px));
  width: min(100%, 680px);
}

.boxbuddy-screen-grid--phone-standard {
  --boxbuddy-phone-screen-width: 300px;
  grid-template-columns: repeat(2, var(--boxbuddy-phone-screen-width));
  gap: clamp(18px, 3vw, 44px);
  width: min(100%, 680px);
}

/* Match the visual footprint of the Editorial Catalog reference without cropping UI. */
.boxbuddy-screen-grid--phone-standard .boxbuddy-screen-figure img {
  aspect-ratio: 519 / 1040;
  object-fit: contain;
  background: var(--boxbuddy-paper);
  border: 0;
}

.boxbuddy-screen-grid--ai-cube {
  margin-top: clamp(20px, 3vw, 32px);
}

.boxbuddy-ai-paths {
  display: grid;
  gap: clamp(48px, 7vw, 88px);
  width: min(100%, 1320px);
  margin: clamp(36px, 5vw, 64px) auto 0;
}

.boxbuddy-ai-path {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.boxbuddy-path-heading {
  width: min(100%, 680px);
  margin: 0 auto;
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.boxbuddy-ai-path .boxbuddy-path-heading {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.boxbuddy-ai-path .boxbuddy-screen-grid {
  margin-right: 0;
  margin-left: 0;
}

.boxbuddy-screen-grid--matched-crops img {
  aspect-ratio: 519 / 1040;
  object-fit: cover;
  object-position: top center;
}

.boxbuddy-screen-grid--matched-crops .boxbuddy-screen-figure {
  display: grid;
  grid-template-rows: auto max-content;
  align-content: start;
}

.boxbuddy-screen-note {
  width: min(100%, 680px);
  margin: clamp(42px, 6vw, 72px) 0 0;
  text-align: left;
}

.boxbuddy-decision-table-wrap {
  width: min(100%, 1080px);
  margin: clamp(42px, 6vw, 72px) auto 0;
  border: 1px solid currentColor;
  overflow: hidden;
}

.boxbuddy-decision-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  color: inherit;
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.35;
}

.boxbuddy-decision-table th,
.boxbuddy-decision-table td {
  padding: 16px 14px;
  border-bottom: 1px solid currentColor;
  text-align: left;
  vertical-align: top;
}

.boxbuddy-decision-table th:not(:last-child),
.boxbuddy-decision-table td:not(:last-child) {
  border-right: 1px solid currentColor;
}

.boxbuddy-decision-table th {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boxbuddy-decision-table th:first-child,
.boxbuddy-decision-table td:first-child {
  width: 68%;
}

.boxbuddy-decision-table th:nth-child(2),
.boxbuddy-decision-table td:nth-child(2) {
  width: 32%;
}

.boxbuddy-decision-table tbody tr:last-child td {
  border-bottom: 0;
}

.boxbuddy-screen-figure,
.boxbuddy-wide-figure {
  margin: 0;
}

.boxbuddy-screen-figure img,
.boxbuddy-wide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid currentColor;
}

.boxbuddy-screen-figure figcaption,
.boxbuddy-wide-figure figcaption {
  margin-top: 22px;
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.35;
}

.boxbuddy-wide-figure {
  width: min(100%, 1080px);
  margin-top: clamp(48px, 7vw, 96px);
  margin-right: auto;
  margin-left: auto;
}

.boxbuddy-prototype-figure {
  margin-top: clamp(24px, 3vw, 40px);
}

.boxbuddy-outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

.boxbuddy-outcome-grid p {
  margin: 0;
  padding: clamp(20px, 2.5vw, 36px);
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 300;
  line-height: 1.25;
  text-transform: uppercase;
}

.boxbuddy-toolchain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

.boxbuddy-toolchain--opening {
  margin-top: clamp(32px, 4vw, 64px);
  margin-bottom: 0;
}

.boxbuddy-toolchain--opening .boxbuddy-tool {
  min-height: clamp(180px, 18vw, 240px);
  padding: clamp(18px, 2vw, 28px);
}

.boxbuddy-toolchain--opening .boxbuddy-tool h3 {
  margin-top: clamp(30px, 3.5vw, 52px);
  margin-bottom: 12px;
}

.boxbuddy-tool {
  min-height: clamp(260px, 25vw, 360px);
  padding: clamp(20px, 2.5vw, 34px);
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.boxbuddy-tool > span,
.boxbuddy-tool h3,
.boxbuddy-tool p {
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
}

.boxbuddy-tool > span {
  display: block;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}

.boxbuddy-tool h3 {
  margin: clamp(54px, 7vw, 100px) 0 18px;
  color: inherit;
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 600;
  line-height: 1;
}

.boxbuddy-tool p {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 300;
  line-height: 1.4;
}

.boxbuddy-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: start;
}

.boxbuddy-showcase-copy {
  position: sticky;
  top: 48px;
}

.boxbuddy-real-showcase {
  min-width: 0;
}

.boxbuddy-real-showcase figure {
  width: 100%;
  margin: 0;
}

.boxbuddy-real-showcase img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  border: 1px solid currentColor;
}

.boxbuddy-real-showcase figcaption {
  margin-top: 12px;
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.35;
}

.boxbuddy-real-showcase-tabs {
  display: flex;
  box-sizing: border-box;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 16px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.boxbuddy-real-showcase-tabs button {
  flex: 1 1 auto;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.boxbuddy-real-showcase-tabs button + button {
  border-left: 0;
}

.boxbuddy-real-showcase-tabs button[aria-selected="true"] {
  color: var(--boxbuddy-ink);
  background: var(--boxbuddy-paper);
}

.boxbuddy-real-showcase-tabs button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.boxbuddy-showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.boxbuddy-showcase-experience {
  min-width: 0;
}

.boxbuddy-showcase-tabs button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.boxbuddy-showcase-tabs button[aria-selected="true"] {
  color: var(--boxbuddy-ink);
  background: var(--boxbuddy-paper);
}

.boxbuddy-showcase-tabs button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.boxbuddy-showcase-stage {
  min-height: clamp(410px, 44vw, 620px);
  padding: clamp(24px, 4vw, 54px);
  color: var(--boxbuddy-ink);
  background: var(--boxbuddy-paper);
}

.boxbuddy-showcase-panel[hidden] {
  display: none;
}

.boxbuddy-showcase-panel {
  display: flex;
  min-height: clamp(350px, 36vw, 510px);
  flex-direction: column;
}

.boxbuddy-showcase-label,
.boxbuddy-showcase-note,
.boxbuddy-showcase-status-tabs,
.boxbuddy-showcase-buttons,
.boxbuddy-sample-header,
.boxbuddy-small-ui-row {
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
}

.boxbuddy-showcase-label {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boxbuddy-showcase-note {
  max-width: 36ch;
  margin: auto 0 0;
  padding-top: 24px;
  border-top: 1px solid currentColor;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
}

.boxbuddy-showcase-status-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 110px);
  border: 1px solid currentColor;
}

.boxbuddy-showcase-status-tabs span {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 10px;
  border-right: 1px solid currentColor;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
}

.boxbuddy-showcase-status-tabs span:last-child {
  border-right: 0;
}

.boxbuddy-showcase-status-tabs .is-active {
  color: var(--boxbuddy-paper);
  background: var(--boxbuddy-ink);
}

.boxbuddy-showcase-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: clamp(56px, 8vw, 110px);
}

.boxbuddy-sample-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boxbuddy-sample-button--primary {
  color: var(--boxbuddy-paper);
  background: var(--boxbuddy-ink);
}

.boxbuddy-sample-button--quiet {
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.boxbuddy-sample-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: clamp(50px, 7vw, 96px);
  padding: 18px 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.boxbuddy-sample-header div {
  display: grid;
  gap: 8px;
}

.boxbuddy-sample-header div:last-child {
  text-align: right;
}

.boxbuddy-sample-header span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.boxbuddy-sample-header strong {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 500;
  text-transform: uppercase;
}

.boxbuddy-small-ui-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: clamp(56px, 8vw, 110px);
}

.boxbuddy-priority-stamp,
.boxbuddy-room-label,
.boxbuddy-record-state,
.boxbuddy-check-state {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.boxbuddy-priority-stamp {
  border: 1px solid currentColor;
  transform: rotate(-2deg);
}

.boxbuddy-room-label {
  border-bottom: 1px solid currentColor;
}

.boxbuddy-record-state i,
.boxbuddy-check-state i {
  display: inline-grid;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
}

.boxbuddy-record-state i {
  background: var(--boxbuddy-ink);
}

.boxbuddy-check-state i {
  border-radius: 0;
}

.boxbuddy-flow li {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 0;
}

.boxbuddy-flow li:not(:last-child)::after {
  position: absolute;
  top: 2px;
  right: clamp(-44px, -2.5vw, -20px);
  content: "→";
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
}

.boxbuddy-flow span {
  margin-bottom: clamp(24px, 3vw, 38px);
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

.boxbuddy-flow strong,
.boxbuddy-flow small {
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
}

.boxbuddy-flow strong {
  margin-bottom: 10px;
  font-size: clamp(15px, 1.4vw, 20px);
  text-transform: uppercase;
}

.boxbuddy-flow small {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 300;
  line-height: 1.4;
}

.boxbuddy-placeholder {
  display: grid;
  place-items: center;
  min-height: clamp(300px, 56vw, 720px);
  margin-top: clamp(40px, 6vw, 88px);
  border: 1px solid currentColor;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    color-mix(in srgb, currentColor 8%, transparent) 20px,
    color-mix(in srgb, currentColor 8%, transparent) 40px
  );
}

.boxbuddy-placeholder span {
  padding: 10px 14px;
  border: 1px solid currentColor;
  background: inherit;
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}

.boxbuddy-wireframes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(42px, 6vw, 80px);
}

.boxbuddy-wireframe {
  aspect-ratio: 9 / 16;
  padding: 16px;
  border: 1px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) 16px 16px / 42% 8px no-repeat,
    linear-gradient(currentColor, currentColor) 16px 40px / calc(100% - 32px) 1px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 48px, color-mix(in srgb, currentColor 16%, transparent) 49px 50px);
}

.boxbuddy-wireframe strong {
  display: block;
  margin-top: 34%;
  font-family: "EchoEcho", Baskerville, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 300;
  line-height: 1;
  text-align: center;
}

.boxbuddy-system {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 7vw, 110px);
  margin-top: clamp(44px, 7vw, 96px);
}

.boxbuddy-swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.boxbuddy-swatch {
  aspect-ratio: 1;
  border: 1px solid var(--boxbuddy-ink);
}

.boxbuddy-swatch:nth-child(1) { background: var(--boxbuddy-ink); }
.boxbuddy-swatch:nth-child(2) { background: var(--boxbuddy-blue); }
.boxbuddy-swatch:nth-child(3) { background: var(--boxbuddy-lime); }
.boxbuddy-swatch:nth-child(4) { background: var(--boxbuddy-paper); }

.boxbuddy-type-sample {
  align-self: center;
}

.boxbuddy-type-sample strong {
  display: block;
  font-family: "EchoEcho", Baskerville, "Times New Roman", serif;
  font-size: clamp(54px, 9vw, 136px);
  font-weight: 300;
  line-height: 0.85;
}

.boxbuddy-type-sample span {
  display: block;
  margin-top: 24px;
  font-family: acumin-pro, Helvetica, Arial, sans-serif;
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 300;
}

@media screen and (min-width: 992px) {
  .boxbuddy-problem-statement {
    white-space: nowrap;
  }

  .boxbuddy-screen-grid--phone-standard {
    --boxbuddy-phone-screen-width: min(300px, calc((90vw - 72px) / 4));
    grid-template-columns: repeat(4, var(--boxbuddy-phone-screen-width));
    gap: 24px;
    width: fit-content;
    max-width: 100%;
  }

  .boxbuddy-screen-grid--ia > :nth-child(1) {
    grid-column: 2;
    grid-row: 1;
  }

  .boxbuddy-screen-grid--ia > :nth-child(2) {
    grid-column: 3;
    grid-row: 1;
  }

  .boxbuddy-screen-grid--ia > :nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .boxbuddy-screen-grid--ia > :nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .boxbuddy-screen-grid--ia > :nth-child(5) {
    grid-column: 3;
    grid-row: 2;
  }

  .boxbuddy-screen-grid--ia > :nth-child(6) {
    grid-column: 4;
    grid-row: 2;
  }
}

@media screen and (max-width: 991px) {
  .boxbuddy-project-media {
    margin-top: -5vw;
  }

  .boxbuddy-action-map {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .boxbuddy-ai-path .boxbuddy-path-heading {
    width: min(100%, 680px);
  }

  .boxbuddy-action-map > svg {
    display: none;
  }

  .boxbuddy-action-map-mobile {
    display: block;
    min-width: 600px;
  }

  .boxbuddy-action-map-mobile svg {
    display: block;
    width: 100%;
    height: auto;
  }

  .boxbuddy-action-map-compact .boxbuddy-action-compact-phase {
    fill: currentColor;
    font-family: acumin-pro, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.14em;
  }

  .boxbuddy-action-map-compact .boxbuddy-action-connectors path {
    marker-end: url(#boxbuddy-action-arrow-compact);
  }

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

  .boxbuddy-hero-copy {
    max-width: 18ch;
  }

  .boxbuddy-product-title {
    top: 6%;
    right: 5%;
    max-width: 8ch;
    font-size: clamp(25px, 8vw, 38px);
  }

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

  .boxbuddy-showcase {
    grid-template-columns: 1fr;
  }

  .boxbuddy-showcase-copy {
    position: static;
  }

}

@media screen and (max-width: 767px) {
  .boxbuddy-screen-grid--phone-standard {
    --boxbuddy-phone-screen-width: calc((100vw - 64px) / 2);
    gap: 16px;
  }

  .boxbuddy-real-showcase-tabs {
    justify-content: flex-start;
  }

  .boxbuddy-real-showcase-tabs button {
    flex: 0 0 auto;
  }

  .boxbuddy-body {
    font-size: 16px;
    line-height: 1.45;
  }

  .boxbuddy-action-flow-image {
    width: min(100%, 360px);
    margin-top: 42px;
  }

  .boxbuddy-decision-table {
    font-size: 12px;
    line-height: 1.3;
  }

  .boxbuddy-decision-table th,
  .boxbuddy-decision-table td {
    padding: 10px 8px;
    overflow-wrap: anywhere;
  }

  .boxbuddy-decision-table th {
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  .boxbuddy-decision-table th:first-child,
  .boxbuddy-decision-table td:first-child {
    width: 64%;
  }

  .boxbuddy-decision-table th:nth-child(2),
  .boxbuddy-decision-table td:nth-child(2) {
    width: 36%;
  }

  .boxbuddy-flow {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .boxbuddy-flow li {
    min-height: 0;
  }

  .boxbuddy-flow li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -32px;
    left: 0;
    content: "↓";
  }

  .boxbuddy-hero-visual {
    width: 90vw;
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin-top: calc(-1 * var(--project-hero-overlap));
  }

  .boxbuddy-hero-copy {
    left: 5%;
    bottom: 4%;
    max-width: 18ch;
    font-size: 14px;
  }

  .boxbuddy-hero-caption {
    display: none;
  }

  .boxbuddy-product-title {
    display: none;
  }

  .boxbuddy-screen-grid,
  .boxbuddy-screen-grid--two,
  .boxbuddy-screen-grid--four,
  .boxbuddy-screen-grid--flow {
    grid-template-columns: 1fr;
  }

  .boxbuddy-screen-grid--two,
  .boxbuddy-screen-grid--four,
  .boxbuddy-screen-grid--flow,
  .boxbuddy-screen-grid--ai-cube {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boxbuddy-screen-grid--phone-standard {
    grid-template-columns: repeat(2, var(--boxbuddy-phone-screen-width));
  }

  .boxbuddy-screen-figure {
    width: min(100%, 300px);
    margin-right: auto;
    margin-left: auto;
  }

  .boxbuddy-outcome-grid {
    grid-template-columns: 1fr;
  }

  .boxbuddy-toolchain {
    grid-template-columns: 1fr;
  }

  .boxbuddy-showcase-stage {
    min-height: 420px;
    padding: 22px;
  }

  .boxbuddy-showcase-panel {
    min-height: 374px;
  }

  .boxbuddy-showcase-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boxbuddy-showcase-tabs button {
    width: 100%;
  }

  .boxbuddy-showcase-status-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boxbuddy-showcase-status-tabs span:nth-child(2) {
    border-right: 0;
  }

  .boxbuddy-showcase-status-tabs span:nth-child(-n + 2) {
    border-bottom: 1px solid currentColor;
  }

  .boxbuddy-tool {
    min-height: 0;
  }

  .boxbuddy-tool h3 {
    margin-top: 48px;
  }

  .boxbuddy-wireframes {
    grid-template-columns: 1fr;
  }

  .boxbuddy-wireframe {
    aspect-ratio: 4 / 5;
  }

  .boxbuddy-system {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 479px) {
  .boxbuddy-project-media {
    margin-top: -5vw;
  }
}

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