/* Focused public marketing-readiness polish. */

.portfolio-hero-mosaic {
  align-self: center;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  perspective: 1200px;
}

.portfolio-hero-tile {
  display: grid;
  grid-template-rows: 76px auto;
  place-items: center;
  min-height: 126px;
  padding: 14px 10px 12px;
  border: 1px solid rgba(248, 244, 232, 0.2);
  border-radius: 14px;
  background: rgba(20, 25, 27, 0.88);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  transform: translateZ(0) rotateY(-3deg);
}

.portfolio-hero-tile:nth-child(even) {
  transform: translateY(18px) rotateY(3deg);
}

.portfolio-hero-tile img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.portfolio-hero-tile span {
  max-width: 100%;
  color: #f8f4e8;
  font-size: 0.76rem;
  font-weight: 850;
  text-align: center;
  overflow-wrap: anywhere;
}

.project-showcase .section-heading {
  max-width: 920px;
}

.project-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 34vw);
  gap: 18px;
  width: 100%;
  padding: 8px 2px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: #6ee7f9 rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.project-showcase-card {
  display: grid;
  grid-template-rows: 178px 1fr;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(248, 244, 232, 0.2);
  border-radius: 20px;
  background: #14191b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.project-showcase-media {
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(248, 244, 232, 0.14);
  background: #0b0f10;
}

.project-showcase-media img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.44));
}

.project-showcase-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 24px;
}

.project-showcase-copy h3 {
  margin: 0;
  font-size: 2rem;
}

.project-showcase-copy p {
  margin: 0;
}

.project-showcase-proof {
  padding-top: 12px;
  border-top: 1px solid rgba(248, 244, 232, 0.14);
  color: #d2d0c8;
}

.project-showcase-proof strong {
  color: #f8f4e8;
}

.project-showcase-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.project-showcase-actions .button {
  width: auto;
}

.release-card .liner {
  align-items: center;
}

.release-card .liner a,
.project-live-text {
  color: #6ee7f9;
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.release-card .liner a:last-child {
  color: #d8ff32;
}

.plan-buying-guide {
  padding-top: 64px;
}

.plan-comparison-shell {
  width: 100%;
  margin-top: 30px;
  overflow-x: auto;
  border: 1px solid rgba(248, 244, 232, 0.18);
  border-radius: 18px;
  background: #101516;
}

.plan-comparison-shell table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

.plan-comparison-shell th,
.plan-comparison-shell td {
  padding: 16px;
  border-right: 1px solid rgba(248, 244, 232, 0.1);
  border-bottom: 1px solid rgba(248, 244, 232, 0.12);
  vertical-align: top;
  text-align: left;
}

.plan-comparison-shell th {
  position: static;
  background: #151b1d;
  color: #f8f4e8;
}

.plan-comparison-shell th:first-child {
  width: 150px;
  color: #6ee7f9;
}

.plan-comparison-shell tr:last-child th,
.plan-comparison-shell tr:last-child td {
  border-bottom: 0;
}

.plan-comparison-shell td:last-child,
.plan-comparison-shell th:last-child {
  border-right: 0;
}

.plan-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.plan-detail-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(248, 244, 232, 0.18);
  border-radius: 20px;
  background: #14191b;
}

.plan-detail-card.featured {
  border-color: rgba(216, 255, 50, 0.55);
  box-shadow: 0 0 0 1px rgba(216, 255, 50, 0.08);
}

.plan-detail-card h3 {
  margin-bottom: 10px;
  font-size: 2.2rem;
}

.plan-detail-card ul {
  padding-left: 1.2rem;
  color: #cbc9c1;
  line-height: 1.55;
}

.plan-detail-card li + li {
  margin-top: 8px;
}

.plan-detail-card dl {
  display: grid;
  grid-template-columns: minmax(112px, 0.38fr) 1fr;
  gap: 10px 16px;
  margin: 20px 0;
}

.plan-detail-card dt {
  color: #6ee7f9;
  font-weight: 850;
}

.plan-detail-card dd {
  margin: 0;
  color: #cbc9c1;
}

.plan-detail-card .actions {
  margin-top: auto;
}

body.start-page {
  background: #070a0b;
  color: #f8f4e8;
}

.start-page main {
  background: #070a0b;
}

.start-page .hero--page {
  border-bottom: 1px solid rgba(248, 244, 232, 0.12);
  background: #0c1112;
}

.start-page .section--surface {
  background: #070a0b;
  color: #f8f4e8;
}

.start-page .section-title,
.start-page .section-kicker,
.start-page .prose,
.start-page label,
.start-page legend {
  color: #f8f4e8;
}

.start-page .section-kicker,
.start-page .start-form-panel > fieldset > legend {
  color: #6ee7f9;
}

.start-page .prose a,
.start-page .contact-note a {
  color: #6ee7f9;
}

.start-page .start-form-panel {
  border: 1px solid rgba(248, 244, 232, 0.18);
  background: #111718;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.start-page .billing-picker__option,
.start-page .plan-picker label {
  border-color: rgba(248, 244, 232, 0.18);
  background: #191f21;
  color: #f8f4e8;
}

.start-page .billing-picker__option:has(input:checked),
.start-page .plan-picker label:has(input:checked) {
  border-color: #ff5268;
  background: #24191b;
  box-shadow: 0 0 0 2px rgba(255, 82, 104, 0.14);
}

.start-page .plan-picker label strong,
.start-page .plan-picker .plan-picker__price,
.start-page .billing-picker__title {
  color: #f8f4e8;
}

.start-page .plan-picker__annual,
.start-page .billing-picker__detail,
.start-page .contact-note,
.start-page .label-optional {
  color: #b9b8b1;
}

.start-page .plan-picker__annual {
  color: #6ee7f9;
}

.start-page input:not([type="radio"]):not([type="checkbox"]),
.start-page select,
.start-page textarea {
  border-color: rgba(248, 244, 232, 0.26);
  background: #fff9ef;
  color: #101314;
}

.start-page input::placeholder,
.start-page textarea::placeholder {
  color: #666861;
}

.start-page fieldset:not(.billing-picker):not(.plan-picker) {
  border-color: rgba(248, 244, 232, 0.18);
  background: rgba(255, 255, 255, 0.025);
}

.start-page .checkbox-row {
  color: #f8f4e8;
}

@media (max-width: 1180px) {
  .portfolio-hero-mosaic {
    grid-template-columns: repeat(5, minmax(92px, 1fr));
  }

  .project-rail {
    grid-auto-columns: minmax(320px, 46vw);
  }
}

@media (max-width: 820px) {
  .portfolio-hero-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-hero-tile:nth-child(even) {
    transform: none;
  }

  .project-rail {
    grid-auto-columns: minmax(290px, 82vw);
  }

  .plan-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .portfolio-hero-tile {
    grid-template-rows: 62px auto;
    min-height: 108px;
  }

  .portfolio-hero-tile img {
    width: 54px;
    height: 54px;
  }

  .project-rail {
    grid-auto-columns: minmax(276px, 88vw);
  }

  .project-showcase-card {
    min-height: 470px;
  }

  .plan-detail-card {
    padding: 22px;
  }

  .plan-detail-card dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .plan-detail-card dd + dt {
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-hero-tile {
    transform: none;
  }

  .project-rail {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
}
/* Final marketing polish V2: brand proof, case studies, and Custom Project. */

.portfolio-proof-wall {
  align-self: center;
  width: min(100%, 960px);
}

.portfolio-proof-label {
  margin: 0 0 14px;
  color: #9da7a8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-hero-tile,
.project-showcase-media,
.release-card .release-art,
.case-study-page .release-media,
.case-study-page .browser-body > img {
  background: #101617;
}

.portfolio-hero-tile img,
.project-showcase-media img,
.release-card .release-art img,
.case-study-page .release-media img,
.case-study-page .browser-body > img {
  object-fit: contain;
}

.release-card .release-art img {
  width: min(58%, 180px);
  height: min(58%, 180px);
}

.case-study-page .release-media {
  display: grid;
  place-items: center;
  padding: 18px;
}

.case-study-page .release-media img {
  width: min(100%, 210px);
  height: min(100%, 210px);
}

.case-study-page .browser-body > img {
  width: min(100%, 260px);
  max-height: 260px;
  padding: 22px;
  border: 1px solid rgba(248, 244, 232, 0.14);
  border-radius: 16px;
}

.case-study-brief .section-heading {
  max-width: 880px;
}

.case-study-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.case-study-brief-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(248, 244, 232, 0.18);
  border-radius: 16px;
  background: #141a1c;
}

.case-study-brief-card h3 {
  margin: 0 0 12px;
  color: #f8f4e8;
  font-size: 1.35rem;
}

.case-study-brief-card p,
.case-study-brief-card li {
  color: #c8c8c1;
  line-height: 1.6;
}

.case-study-brief-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.case-study-brief-card li + li {
  margin-top: 8px;
}

.case-study-brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

body.custom-project-page,
.custom-project-page main,
.custom-project-page .section--surface {
  background: #070a0b;
  color: #f8f4e8;
}

.custom-project-page .hero--page {
  border-bottom: 1px solid rgba(248, 244, 232, 0.14);
  background: #0c1112;
}

.custom-project-page .section--surface {
  border-bottom: 1px solid rgba(248, 244, 232, 0.12);
}

.custom-project-page .section-title,
.custom-project-page .section-kicker,
.custom-project-page .prose,
.custom-project-page label,
.custom-project-page legend,
.custom-project-page .custom-step h2,
.custom-project-page .choice-card__title,
.custom-project-page .choice-chip__label,
.custom-project-page .choice-segment {
  color: #f8f4e8;
}

.custom-project-page .section-kicker,
.custom-project-page .custom-wizard-progress,
.custom-project-page .choice-field-label {
  color: #6ee7f9;
}

.custom-project-page .prose,
.custom-project-page .custom-step__hint,
.custom-project-page .custom-step__mode,
.custom-project-page .choice-card__desc,
.custom-project-page .choice-chip__hint,
.custom-project-page .contact-note,
.custom-project-page .label-optional,
.custom-project-page .custom-review-summary li {
  color: #bfc2bc;
}

.custom-project-page .prose a,
.custom-project-page .contact-note a,
.custom-project-page .contact-start-note a {
  color: #6ee7f9;
}

.custom-project-page .custom-build-panel,
.custom-project-page .custom-step {
  border-color: rgba(248, 244, 232, 0.18);
  background: #111718;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.custom-project-page .custom-step {
  box-shadow: none;
}

.custom-project-page .choice-card,
.custom-project-page .choice-chip,
.custom-project-page .choice-segment {
  border-color: rgba(248, 244, 232, 0.22);
  background: #192022;
}

.custom-project-page .choice-card:hover,
.custom-project-page .choice-chip:hover,
.custom-project-page .choice-segment:hover {
  border-color: rgba(110, 231, 249, 0.65);
  box-shadow: none;
}

.custom-project-page .choice-card:has(.choice-input:checked),
.custom-project-page .choice-chip:has(.choice-input:checked),
.custom-project-page .choice-segment:has(.choice-input:checked) {
  border-color: #ff5268;
  background: #28191d;
  color: #f8f4e8;
}

.custom-project-page .choice-card__icon {
  color: #6ee7f9;
}

.custom-project-page .choice-card__mark,
.custom-project-page .choice-chip__mark,
.custom-project-page .choice-segment__dot {
  border-color: #788184;
  background: #0f1415;
}

.custom-project-page input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.custom-project-page select,
.custom-project-page textarea {
  border-color: rgba(248, 244, 232, 0.3);
  background: #fff9ef;
  color: #101314;
}

.custom-project-page input::placeholder,
.custom-project-page textarea::placeholder {
  color: #656861;
}

.custom-project-page .custom-review-summary strong {
  color: #6ee7f9;
}

.custom-project-page .custom-review-summary li {
  border-color: rgba(248, 244, 232, 0.16);
}

.custom-project-page .custom-success-panel {
  border-color: rgba(110, 231, 249, 0.32);
  background: #111b1c;
}

@media (max-width: 820px) {
  .portfolio-proof-label {
    margin-top: 20px;
  }

  .case-study-brief-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .case-study-brief-card {
    padding: 20px;
  }

  .custom-project-page .custom-build-panel,
  .custom-project-page .custom-step {
    padding: 18px;
  }
}
