/*
 * GroundUp homepage v7
 * A clean capability story: websites, business systems, and ads.
 */

.stack-home-v7 {
  background: var(--su-paper-bright);
}

.stack-home-v7 #websites,
.stack-home-v7 #systems,
.stack-home-v7 #ads,
.stack-home-v7 #start,
.stack-home-v7 #founder {
  scroll-margin-top: 0;
}

/* Header */

.stack-home-v7 .nav-shell {
  gap: 18px;
}

.stack-home-v7 .nav-descriptor {
  margin-right: auto;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stack-home-v7 .nav-menu {
  margin-left: 0;
}

/* Hero */

.stack-home-v7 .stack-home-hero-grid {
  grid-template-columns: minmax(480px, 1.05fr) minmax(440px, 0.95fr);
  gap: clamp(42px, 5.8vw, 82px);
}

.stack-home-v7 .stack-home-copy {
  max-width: 640px;
  /* Without this, a grid item's implicit min-width is its content's
   * min-content size. A heavy 800-weight headline at this size can push
   * that min-content wide enough to fight the image column for space
   * (worse on Windows ClearType, which hints bold glyphs wider than this
   * sandbox's renderer). min-width: 0 lets the heading wrap inside its
   * own track instead of ever bidding for the neighboring column. */
  min-width: 0;
}

.stack-home-v7 .stack-home-copy h1 {
  max-width: 26ch;
  font-size: clamp(3rem, 4.6vw, 4.4rem);
  line-height: 1.05;
}

/*
 * The three spans are block-level, so they already set the line breaks.
 * nowrap is deliberately not inherited here: with a headline this long it
 * would overflow the copy column if Manrope fails to load and a wider
 * fallback font is substituted. Wrapping is the safe failure mode.
 */
.stack-home-v7 .stack-home-copy h1 span {
  white-space: normal;
}

.stack-home-v7 .stack-home-copy h1 span:last-child {
  color: #cfe4ff;
}

.stack-home-v7 .stack-hero-media {
  position: relative;
}

.stack-home-v7 .stack-hero-media > img {
  height: clamp(520px, 70svh, 700px);
  object-position: center;
}

/* Blend the photo into the navy panel instead of a hard seam, so the
 * boundary always reads as a deliberate edge rather than a collision,
 * however close the heading sits to the column on a given device. */
.stack-home-v7 .stack-hero-media::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: clamp(48px, 6vw, 96px);
  background: linear-gradient(to right, var(--su-navy) 0%, rgba(11, 55, 106, 0) 100%);
  content: "";
  pointer-events: none;
}

/* Shared capability sections */

.stack-home-v7 .service-feature {
  align-items: center;
}

.stack-home-v7 .service-feature--website,
.stack-home-v7 .service-feature--ads {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.82fr);
}

.stack-home-v7 .service-feature--tools {
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.08fr);
}

.stack-home-v7 .service-feature-copy h2 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 4.2vw, 3.9rem);
  text-wrap: balance;
}

.stack-home-v7 .service-feature-copy > p:not(.service-label) {
  text-wrap: pretty;
}

.stack-home-v7 .capability-photo {
  margin: 0;
  overflow: hidden;
  border-color: var(--su-ink);
  background: var(--su-paper-bright);
}

.stack-home-v7 .capability-photo > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.stack-home-v7 .capability-photo figcaption {
  display: flex;
  min-height: 64px;
  padding: 14px 17px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--su-ink);
  background: var(--su-paper-bright);
  color: var(--su-ink);
  font-size: 0.76rem;
  line-height: 1.4;
}

.stack-home-v7 .capability-photo figcaption strong {
  font-weight: 800;
}

.stack-home-v7 .capability-photo figcaption span {
  color: var(--su-blue);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: right;
}

.stack-home-v7 .capability-list {
  display: grid;
  margin: 30px 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--su-paper-line);
  list-style: none;
}

.stack-home-v7 .capability-list li {
  position: relative;
  min-height: 58px;
  padding: 17px 12px 14px 18px;
  border-bottom: 1px solid var(--su-paper-line);
  color: var(--su-ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.stack-home-v7 .capability-list li::before {
  position: absolute;
  top: 23px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--su-orange);
  content: "";
}

/* Ads */

.stack-home-v7 .service-detail--ads {
  border-bottom: 0;
  background: var(--su-navy-deep);
  color: #fff;
}

.stack-home-v7 .service-detail--ads .service-label {
  color: #bcd9fb;
}

.stack-home-v7 .service-detail--ads .service-feature-copy h2 {
  color: #fff;
}

.stack-home-v7 .service-detail--ads .service-feature-copy > p:not(.service-label) {
  color: rgba(255, 255, 255, 0.74);
}

.stack-home-v7 .service-detail--ads .capability-list {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.stack-home-v7 .service-detail--ads .capability-list li {
  border-bottom-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.stack-home-v7 .service-detail--ads .capability-photo {
  border-color: rgba(255, 255, 255, 0.32);
}

/* The work */

.stack-home-v7 .service-detail--work {
  border-bottom: 0;
  background: var(--su-navy-deep);
  color: #fff;
}

.stack-home-v7 .service-detail--work .service-label {
  color: #bcd9fb;
}

.stack-home-v7 .clip-showcase-head {
  display: grid;
  margin-bottom: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 36px;
  align-items: end;
}

.stack-home-v7 .clip-showcase-head h2 {
  max-width: 18ch;
  margin: 7px 0 0;
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.stack-home-v7 .clip-showcase-proof {
  max-width: 43ch;
  justify-self: end;
}

.stack-home-v7 .clip-showcase-proof p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.6;
}

.stack-home-v7 .clip-showcase-proof .su-proof-stat {
  margin-top: 12px;
  color: #fff;
  font-size: 0.95rem;
}

.stack-home-v7 .clip-showcase-proof .su-proof-stat strong {
  color: var(--su-orange);
  font-weight: 800;
  white-space: nowrap;
}

.stack-home-v7 .clip-showcase-proof small {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.7rem;
  line-height: 1.5;
}

.stack-home-v7 .clip-showcase-grid {
  gap: clamp(14px, 1.7vw, 22px);
}

.stack-home-v7 .clip-showcase .home-work-card {
  color: #fff;
}

.stack-home-v7 .clip-showcase .home-work-card > img {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  transition:
    border-color 160ms ease,
    transform 220ms ease;
}

.stack-home-v7 .clip-showcase .home-work-card:hover > img {
  border-color: var(--su-orange);
  transform: translateY(-3px);
}

.stack-home-v7 .clip-showcase .home-work-caption {
  padding-top: 14px;
}

.stack-home-v7 .clip-showcase .home-work-caption strong {
  color: #fff;
}

.stack-home-v7 .clip-showcase .home-work-caption small {
  color: rgba(255, 255, 255, 0.6);
}

.stack-home-v7 .clip-showcase .su-reel {
  margin-top: clamp(30px, 3.4vw, 44px);
  padding-top: clamp(22px, 2.4vw, 30px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
}

.stack-home-v7 .clip-showcase .su-reel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.32);
}

.stack-home-v7 .clip-showcase .su-reel .home-work-caption {
  padding-top: 10px;
}

.stack-home-v7 .clip-showcase .su-reel .home-work-caption strong {
  font-size: 0.82rem;
}

.stack-home-v7 .clip-showcase .su-reel-hint {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
}

/* Two ways to start */

.stack-home-v7 .home-start {
  padding: clamp(78px, 9vw, 120px) 0;
  background: var(--su-blue);
  color: #fff;
}

.stack-home-v7 .home-start-head {
  display: grid;
  margin-bottom: clamp(44px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.55fr);
  gap: 36px;
  align-items: end;
}

.stack-home-v7 .home-start-head .service-label {
  grid-column: 1 / -1;
  margin-bottom: -20px;
  color: #cfe4ff;
}

.stack-home-v7 .home-start-head h2 {
  max-width: 13ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 4.2vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.99;
  text-wrap: balance;
}

.stack-home-v7 .home-start-head > p:last-child {
  max-width: 34ch;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.65;
}

.stack-home-v7 .home-start-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.stack-home-v7 .home-start-path {
  display: flex;
  min-height: 480px;
  padding: clamp(30px, 4vw, 52px);
  flex-direction: column;
  align-items: flex-start;
}

.stack-home-v7 .home-start-path + .home-start-path {
  border-left: 1px solid rgba(255, 255, 255, 0.38);
}

.stack-home-v7 .home-start-path--workshop {
  background: var(--su-blue-deep);
}

.stack-home-v7 .home-start-path--dfy {
  background: var(--su-paper-bright);
  color: var(--su-ink);
}

.stack-home-v7 .home-start-kicker {
  margin: 0 0 34px;
  color: #bcd9fb;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-home-v7 .home-start-path--dfy .home-start-kicker {
  color: var(--su-blue);
}

.stack-home-v7 .home-start-path h3 {
  max-width: 10ch;
  margin: 0;
  color: inherit;
  font-size: clamp(2.5rem, 4vw, 3.65rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.stack-home-v7 .home-start-path > p:not(.home-start-kicker) {
  max-width: 48ch;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
  line-height: 1.72;
}

.stack-home-v7 .home-start-path--dfy > p:not(.home-start-kicker) {
  color: var(--su-ink-muted);
}

.stack-home-v7 .home-start-path ul {
  display: grid;
  width: 100%;
  margin: 30px 0 36px;
  padding: 0;
  list-style: none;
}

.stack-home-v7 .home-start-path li {
  position: relative;
  padding: 14px 0 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
}

.stack-home-v7 .home-start-path--dfy li {
  border-top-color: var(--su-paper-line);
  color: var(--su-ink);
}

.stack-home-v7 .home-start-path li::before {
  position: absolute;
  top: 20px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--su-orange);
  content: "";
}

.stack-home-v7 .home-start-path .su-btn {
  margin-top: auto;
}

.stack-home-v7 .home-start-path--workshop .su-btn--ghost {
  border-color: rgba(255, 255, 255, 0.64);
  background: transparent;
  color: #fff;
}

.stack-home-v7 .home-start-path--workshop .su-btn--ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--su-blue-deep);
}

/* Footer */

.stack-home-v7 .stack-footer {
  padding: 42px 0 48px;
  background: var(--su-paper-bright);
  color: var(--su-ink);
}

.stack-home-v7 .stack-footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 24px 36px;
  align-items: end;
}

.stack-home-v7 .stack-footer-inner > div p {
  margin: 7px 0 0;
  color: var(--su-ink-muted);
  font-size: 0.78rem;
}

.stack-home-v7 .stack-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.stack-home-v7 .stack-footer a {
  color: var(--su-blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

/* Modal alignment */

.stack-home-v7 .dfy-modal-copy .eyebrow {
  color: var(--su-blue);
  letter-spacing: 0;
  text-transform: none;
}

.stack-home-v7 .funnel-submit {
  border-radius: 3px;
  background: var(--su-orange);
  color: var(--su-ink);
}

@media (max-width: 1060px) {
  .stack-home-v7 .nav-descriptor {
    display: none;
  }

  .stack-home-v7 .stack-home-hero-grid {
    grid-template-columns: 1fr;
  }

  .stack-home-v7 .stack-home-copy {
    max-width: 760px;
  }

  .stack-home-v7 .stack-home-copy h1 {
    max-width: 26ch;
    font-size: clamp(3rem, 5.4vw, 3.9rem);
  }

  .stack-home-v7 .stack-hero-media > img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .stack-home-v7 .service-feature--website,
  .stack-home-v7 .service-feature--tools,
  .stack-home-v7 .service-feature--ads,
  .stack-home-v7 .site-gallery-top {
    grid-template-columns: 1fr;
  }

  .stack-home-v7 .service-feature--website .service-feature-copy,
  .stack-home-v7 .service-feature--ads .service-feature-copy {
    order: 2;
  }

  .stack-home-v7 .service-feature--website .service-feature-visual,
  .stack-home-v7 .service-feature--ads .service-feature-visual {
    order: 1;
  }

  .stack-home-v7 .site-gallery-intro {
    max-width: none;
  }

  .stack-home-v7 .service-feature-visual {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .stack-home-v7 .stack-home-copy h1 {
    max-width: 26ch;
    font-size: clamp(2.9rem, 6.2vw, 3.6rem);
  }

  .stack-home-v7 .clip-showcase-head,
  .stack-home-v7 .home-start-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .stack-home-v7 .clip-showcase-head h2 {
    max-width: 24ch;
  }

  .stack-home-v7 .clip-showcase-proof {
    max-width: 52ch;
    justify-self: start;
  }

  .stack-home-v7 .home-start-head .service-label {
    margin-bottom: -16px;
  }
}

@media (max-width: 700px) {
  .stack-home-v7 .stack-home-copy h1 {
    max-width: none;
    font-size: clamp(2.6rem, 9.6vw, 3.3rem);
  }

  .stack-home-v7 .service-feature-copy h2 {
    font-size: clamp(2.15rem, 8.6vw, 2.75rem);
  }

  .stack-home-v7 .stack-home-copy h1 span {
    white-space: normal;
  }

  .stack-home-v7 .capability-photo > img {
    aspect-ratio: 16 / 11;
  }

  .stack-home-v7 .capability-photo figcaption {
    min-height: 58px;
    padding: 12px 14px;
  }

  .stack-home-v7 .capability-photo figcaption strong {
    max-width: 22ch;
  }

  .stack-home-v7 .capability-list {
    grid-template-columns: 1fr;
  }

  .stack-home-v7 .capability-list li {
    min-height: 52px;
    padding-block: 15px 13px;
  }

  .stack-home-v7 .capability-list li::before {
    top: 21px;
  }

  .stack-home-v7 .clip-showcase {
    margin-top: 54px;
    padding-top: 30px;
  }

  .stack-home-v7 .clip-showcase-head {
    gap: 20px;
  }

  .stack-home-v7 .home-start {
    padding-block: 68px 74px;
  }

  .stack-home-v7 .home-start-head {
    gap: 24px;
  }

  .stack-home-v7 .home-start-head .service-label {
    margin-bottom: -10px;
  }

  .stack-home-v7 .home-start-head h2 {
    font-size: clamp(2.45rem, 10.5vw, 3.2rem);
  }

  .stack-home-v7 .home-start-paths {
    grid-template-columns: 1fr;
  }

  .stack-home-v7 .home-start-path {
    min-height: 440px;
    padding: 30px 24px;
  }

  .stack-home-v7 .home-start-path + .home-start-path {
    border-top: 1px solid rgba(255, 255, 255, 0.38);
    border-left: 0;
  }

  .stack-home-v7 .home-start-path h3 {
    font-size: clamp(2.4rem, 11vw, 3.1rem);
  }

  .stack-home-v7 .stack-footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }
}

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

/* =====================================================================
 * Websites — gallery of real, live client site builds (the centerpiece)
 * The section is on the white paper background, so each card is a dark
 * "browser window" and must set its own light text (section copy is dark ink).
 * ===================================================================== */

.stack-home-v7 .site-gallery-shell {
  display: grid;
  gap: clamp(40px, 5.5vw, 64px);
}

.stack-home-v7 .site-gallery-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.82fr);
  gap: clamp(42px, 6vw, 86px);
  align-items: center;
}

.stack-home-v7 .site-gallery-intro {
  max-width: 640px;
}

.stack-home-v7 .site-gallery-intro h2 {
  max-width: 20ch;
}

.stack-home-v7 .site-gallery-visual {
  align-self: stretch;
}

.stack-home-v7 .site-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
}

.stack-home-v7 .site-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--su-line);
  border-radius: var(--su-radius-lg);
  background: var(--su-navy-deep);
  color: var(--su-text-dim);
  box-shadow: 0 24px 60px rgba(7, 17, 32, 0.32);
}

.stack-home-v7 .site-card-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--su-line);
  background: rgba(255, 255, 255, 0.04);
}

.stack-home-v7 .site-card-dots {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
}

.stack-home-v7 .site-card-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.stack-home-v7 .site-card-url {
  overflow: hidden;
  color: var(--su-text-faint);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stack-home-v7 .site-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--su-navy-deep);
}

.stack-home-v7 .site-shot-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--su-text-faint);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}

.stack-home-v7 .site-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Honest tag for demo / in-progress builds (Netlify cards) */
.stack-home-v7 .site-card-tag {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7, 17, 32, 0.72);
  backdrop-filter: blur(4px);
  color: var(--su-ice);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stack-home-v7 .site-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 16px;
}

.stack-home-v7 .site-meta-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stack-home-v7 .site-meta-name strong {
  color: var(--su-ice);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stack-home-v7 .site-meta-name span {
  color: var(--su-text-faint);
  font-size: 0.8rem;
  font-weight: 600;
}

.stack-home-v7 .site-meta a {
  flex: 0 0 auto;
  color: #cfe4ff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
}

.stack-home-v7 .site-meta a:hover,
.stack-home-v7 .site-meta a:focus-visible {
  text-decoration: underline;
}

/* Ads — two Abihon episodes side by side (base grid is a hard 3-col) */
.stack-home-v7 .clip-showcase-grid--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Systems — the real Desk UI screenshot must anchor to its top, not center */
.stack-home-v7 .capability-photo--desk > img {
  object-position: top center;
}

/* =====================================================================
 * Founder — reuses .su-proof-band / .su-proof-text on a navy-deep band.
 * Solo (no portrait yet) collapses to a single readable column.
 * ===================================================================== */

/* .service-label is brand blue, tuned for the white sections; on this navy
 * band it drops to ~3.5:1, so lift the founder eyebrow to the orange accent. */
.stack-home-v7 #founder .service-label {
  color: var(--su-orange);
}

/* Ken's photo is a vertical stage shot; the default 4/3 frame would crop his
 * head. Use a portrait frame and bias toward the top so face + raised phone read. */
.stack-home-v7 #founder .su-proof-photo img {
  aspect-ratio: 1 / 1;
  object-position: 50% 20%;
}

.stack-home-v7 #founder .su-proof-text h2 {
  color: var(--su-ice);
}

.stack-home-v7 #founder .su-proof-text > p:not(.service-label) {
  max-width: 64ch;
  margin: 0 0 18px;
}

.stack-home-v7 #founder .su-proof-text > p:not(.service-label) strong {
  color: var(--su-ice);
}

.stack-home-v7 #founder .su-founder-sign {
  margin-top: 6px;
}

/* stack-v3 forces the signature to filter:none + dark ink (built for light
 * sections). This founder band is navy, so restore the ice-on-navy treatment. */
.stack-home-v7 #founder .su-founder-sign img {
  width: clamp(160px, 20vw, 210px);
  height: auto;
  margin: 4px 0 10px;
  filter: brightness(0) invert(0.92) sepia(0.12);
}

.stack-home-v7 #founder .su-founder-sign p {
  margin: 0;
  color: var(--su-text-dim);
  font-size: 0.9rem;
  font-weight: 700;
}

.stack-home-v7 #founder .founder-disclaimer {
  display: block;
  margin-top: 18px;
  color: var(--su-text-faint);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* Gallery responsive: 3 → 2 → 1 columns; episode pair → 1 column */
@media (max-width: 1060px) {
  .stack-home-v7 .site-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .stack-home-v7 .site-gallery {
    grid-template-columns: 1fr;
  }

  .stack-home-v7 .clip-showcase-grid--pair {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
 * July 30 refinement
 * One dark opening act, then one clean light working surface.
 * ===================================================================== */

.stack-home-v7 {
  background: #f7fbff;
}

.stack-home-v7 .stack-home-hero {
  min-height: 0;
  padding: 96px 0 64px;
}

.stack-home-v7 .stack-home-hero-grid {
  min-height: min(720px, calc(100dvh - 120px));
  grid-template-columns: minmax(520px, 1.05fr) minmax(460px, 0.95fr);
  gap: clamp(42px, 5vw, 74px);
  align-items: center;
}

.stack-home-v7 .stack-home-copy {
  max-width: 650px;
}

.stack-home-v7 .stack-home-copy h1 {
  /* No ch-based cap: a character-count width is a guess at font metrics,
   * and guessing wrong is what caused this bug in the first place. Let the
   * heading fill its actual pixel-width column (.stack-home-copy above);
   * white-space: normal below is the real safety net if a line ever runs
   * long for the space available. */
  max-width: 100%;
  font-size: clamp(3.3rem, 4.6vw, 4.3rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-wrap: balance;
}

.stack-home-v7 .stack-home-copy h1 span {
  display: block;
  margin-bottom: 0.08em;
}

.stack-home-v7 .stack-home-copy h1 span:last-child {
  margin-bottom: 0;
}

/* This headline runs longer than the "one short punch" copy this block was
 * originally tuned for. nowrap forced the line past its column and over the
 * photo instead of wrapping — the box itself stayed put (nowrap doesn't
 * grow a block's layout width), so the overflow was invisible to layout
 * measurement and only showed up as painted text sitting on top of the
 * image. Wrapping is the safe behavior for copy of unknown length. */
.stack-home-v7 .stack-home-copy h1 span {
  white-space: normal;
}

.stack-home-v7 .stack-home-lede {
  max-width: 56ch;
  font-size: 1.05rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.stack-home-v7 .stack-hero-media > img {
  height: min(590px, 66dvh);
  min-height: 500px;
}

.stack-home-v7 .stack-hero-media figcaption {
  min-height: 58px;
}

.stack-home-v7 .stack-section--deep[aria-label] {
  padding-block: 34px 46px;
  background: var(--su-blue-deep);
}

.stack-home-v7 .su-proof-note {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
}

.stack-home-v7 #websites,
.stack-home-v7 #ads,
.stack-home-v7 #systems,
.stack-home-v7 #start,
.stack-home-v7 #founder {
  background: #f7fbff;
  color: var(--su-ink);
}

.stack-home-v7 #websites,
.stack-home-v7 #ads,
.stack-home-v7 #systems {
  padding-block: clamp(82px, 8vw, 116px);
}

.stack-home-v7 .service-feature-copy h2,
.stack-home-v7 .site-gallery-intro h2 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 4.2vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.stack-home-v7 .site-gallery-top {
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
}

.stack-home-v7 .site-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.stack-home-v7 .site-card {
  border-radius: 3px;
  box-shadow: 0 22px 50px rgba(7, 27, 52, 0.16);
  transition:
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-home-v7 .site-card:hover {
  box-shadow: 0 30px 64px rgba(7, 27, 52, 0.22);
  transform: translateY(-5px);
}

.stack-home-v7 .site-card-dots {
  display: none;
}

.stack-home-v7 .site-card-bar {
  min-height: 40px;
  background: #0d294a;
}

.stack-home-v7 .site-card-url {
  color: rgba(255, 255, 255, 0.64);
}

.stack-home-v7 .site-meta-name span {
  color: rgba(255, 255, 255, 0.62);
}

.stack-home-v7 #ads .service-feature-copy h2,
.stack-home-v7 #ads .service-feature-copy > p:not(.service-label),
.stack-home-v7 #ads .capability-list li {
  color: var(--su-ink);
}

.stack-home-v7 #ads .capability-list {
  border-top-color: var(--su-paper-line);
}

.stack-home-v7 #ads .capability-list li {
  border-bottom-color: var(--su-paper-line);
}

.stack-home-v7 #ads .capability-photo {
  border-color: var(--su-ink);
}

.stack-home-v7 .clip-showcase {
  margin-top: clamp(64px, 7vw, 92px);
  padding: clamp(34px, 4vw, 54px);
  background: var(--su-navy-deep);
}

.stack-home-v7 .clip-showcase-head {
  display: block;
  max-width: 720px;
  margin-bottom: 28px;
}

.stack-home-v7 .clip-showcase-head h3 {
  max-width: 15ch;
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  letter-spacing: -0.04em;
  line-height: 1;
  text-wrap: balance;
}

.stack-home-v7 .clip-showcase-proof {
  max-width: 56ch;
  justify-self: auto;
}

.stack-home-v7 #systems {
  background: #edf5ff;
}

.stack-home-v7 .capability-photo--desk {
  box-shadow: 0 26px 64px rgba(7, 27, 52, 0.14);
}

.stack-home-v7 .home-start {
  padding-block: clamp(84px, 9vw, 124px);
  background: #f7fbff;
  color: var(--su-ink);
}

.stack-home-v7 .home-start-head {
  display: block;
  max-width: 820px;
  margin-bottom: clamp(38px, 5vw, 58px);
}

.stack-home-v7 .home-start-head .service-label {
  margin: 0 0 18px;
  color: var(--su-blue);
}

.stack-home-v7 .home-start-head h2 {
  max-width: 13ch;
  color: var(--su-ink);
  font-size: clamp(2.6rem, 4.2vw, 3.9rem);
  letter-spacing: -0.04em;
}

.stack-home-v7 .home-start-head > p:last-child {
  margin: 22px 0 0;
  color: var(--su-ink-muted);
}

.stack-home-v7 .home-start-paths {
  border-color: rgba(7, 27, 52, 0.24);
}

.stack-home-v7 .home-start-path {
  min-height: 430px;
}

.stack-home-v7 .home-start-path + .home-start-path {
  border-left-color: rgba(7, 27, 52, 0.24);
}

.stack-home-v7 .home-start-path--workshop {
  background: var(--su-blue-deep);
  color: #fff;
}

.stack-home-v7 .home-start-path--dfy {
  background: #fff;
}

.stack-home-v7 .home-start-kicker {
  letter-spacing: 0;
  text-transform: none;
}

.stack-home-v7 .founder-section {
  padding-block: clamp(84px, 9vw, 124px);
  background: #fff;
}

.stack-home-v7 .founder-band {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
}

.stack-home-v7 #founder .su-proof-photo {
  border-color: rgba(7, 27, 52, 0.18);
  border-radius: 3px;
  background: #edf5ff;
  box-shadow: 0 24px 60px rgba(7, 27, 52, 0.14);
}

.stack-home-v7 #founder .su-proof-photo figcaption {
  background: #fff;
  color: var(--su-ink-muted);
}

.stack-home-v7 #founder .su-proof-text h2 {
  max-width: 13ch;
  color: var(--su-ink);
  font-size: clamp(2.7rem, 4.1vw, 3.8rem);
  line-height: 1.02;
}

.stack-home-v7 #founder .su-proof-text > p:not(.service-label),
.stack-home-v7 #founder .su-founder-sign p,
.stack-home-v7 #founder .founder-disclaimer {
  color: var(--su-ink-muted);
}

.stack-home-v7 #founder .su-proof-text > p:not(.service-label) strong {
  color: var(--su-ink);
}

.stack-home-v7 #founder .su-founder-sign img {
  filter: none;
}

@media (max-width: 1060px) {
  .stack-home-v7 .stack-home-hero {
    padding-top: 92px;
  }

  .stack-home-v7 .stack-home-hero-grid,
  .stack-home-v7 .site-gallery-top,
  .stack-home-v7 .founder-band {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .stack-home-v7 .stack-home-copy h1 {
    max-width: 15ch;
    font-size: clamp(3.4rem, 7vw, 4.2rem);
  }

  .stack-home-v7 .stack-hero-media > img {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .stack-home-v7 .site-gallery-visual {
    order: -1;
  }

  .stack-home-v7 .site-gallery-intro {
    max-width: 760px;
  }

  .stack-home-v7 .founder-band {
    gap: 42px;
  }

  .stack-home-v7 #founder .su-proof-photo {
    max-width: 620px;
  }
}

@media (max-width: 700px) {
  .stack-home-v7 .stack-home-hero {
    padding: 78px 0 48px;
  }

  .stack-home-v7 .stack-home-hero-grid {
    gap: 34px;
  }

  .stack-home-v7 .stack-home-copy h1 {
    font-size: clamp(2.65rem, 12vw, 3.35rem);
  }

  .stack-home-v7 .stack-home-copy h1 span {
    white-space: normal;
  }

  .stack-home-v7 .stack-home-lede {
    font-size: 1rem;
  }

  .stack-home-v7 .site-gallery {
    grid-template-columns: 1fr;
  }

  .stack-home-v7 .clip-showcase {
    margin-inline: 16px;
    padding: 28px 20px;
  }

  .stack-home-v7 .home-start-head h2,
  .stack-home-v7 #founder .su-proof-text h2 {
    font-size: clamp(2.45rem, 10.8vw, 3.15rem);
  }

  .stack-home-v7 .home-start-path {
    min-height: 400px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack-home-v7 .site-card {
    transition: none;
  }

  .stack-home-v7 .site-card:hover {
    transform: none;
  }
}
