/* Home / conversion-led portfolio flow
   Keeps the existing SOST typography, monochrome system and 1440px shell. */

body[data-page='home'] main {
  overflow: hidden;
}

/* HERO */
body[data-page='home'] .home-hero {
  min-height: 0;
  padding: calc(var(--header-height) + clamp(68px, 8vw, 118px)) 0 clamp(74px, 8vw, 116px);
  border-bottom: 1px solid var(--line);
}

body[data-page='home'] .home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.72fr);
  gap: clamp(58px, 7vw, 112px);
  align-items: end;
  min-height: 0;
}

body[data-page='home'] .hero-copy h1 {
  max-width: 880px;
  margin-top: 22px;
  font-size: clamp(54px, 6.4vw, 92px);
  font-weight: 470;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

body[data-page='home'] .hero-description {
  max-width: 650px;
  margin-top: 30px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.75;
}

body[data-page='home'] .button-row {
  margin-top: 36px;
}

.home-starter-panel {
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--line-strong);
}

.home-starter-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.11em;
}

.home-starter-price {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px 24px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
}

.home-starter-price small {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.11em;
}

.home-starter-price strong {
  color: var(--text);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
}

.home-starter-price > span {
  padding-bottom: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

.home-starter-panel > p {
  max-width: 520px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.home-starter-panel ul {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.home-starter-panel li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 10px 0;
  color: var(--text-soft);
  font-size: 13px;
}

.home-starter-panel li span {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.home-starter-panel > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.home-starter-panel > a span {
  font-size: 17px;
}

/* INCLUDED STRIP */
.home-scope-strip {
  border-bottom: 1px solid var(--line);
}

.home-scope-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-scope-grid > div {
  position: relative;
  min-height: 128px;
  padding: 26px 22px 22px;
  border-right: 1px solid var(--line);
}

.home-scope-grid > div:first-child {
  border-left: 1px solid var(--line);
}

.home-scope-grid span {
  display: block;
  margin-bottom: 19px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.home-scope-grid strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.home-scope-grid small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

/* SELECTED WORK */
.home-selected {
  padding: clamp(96px, 9vw, 132px) 0;
  background: var(--bg);
}

.home-selected .section-heading {
  margin-bottom: clamp(46px, 5vw, 68px);
}

.home-selected-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.home-selected-actions > p {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.home-selected-actions > p strong {
  color: var(--text);
  font-weight: 650;
}

/* Home is a curated preview, not the full archive. */
body[data-page='home'] #project-grid .portfolio-card:nth-child(n + 5) {
  display: none;
}

body[data-page='home'] .home-selected .portfolio-card-description {
  min-height: 0;
}

/* SITE TYPE CHOOSER */
.home-paths {
  padding: clamp(96px, 9vw, 132px) 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel) !important;
}

.home-section-note {
  max-width: 470px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

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

.home-path-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px;
  padding: clamp(28px, 3vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  transition: background .28s ease, color .28s ease;
}

.home-path-card:hover {
  background: var(--text);
  color: var(--bg);
}

.home-path-index {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.09em;
}

.home-path-card > div {
  margin: 58px 0 44px;
}

.home-path-card h3 {
  font-size: clamp(27px, 2.5vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.home-path-card p {
  max-width: 460px;
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
  transition: color .28s ease;
}

.home-path-card footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.home-path-card footer strong {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.home-path-card footer span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.home-path-card:hover .home-path-index,
.home-path-card:hover p,
.home-path-card:hover footer span {
  color: color-mix(in srgb, var(--bg) 70%, transparent);
}

.home-path-card:hover footer {
  border-color: color-mix(in srgb, var(--bg) 20%, transparent);
}

/* LARGE MESSAGE BREAK */
.home-manifesto {
  padding: clamp(104px, 11vw, 168px) 0;
  border-bottom: 1px solid var(--line);
  background: var(--text);
  color: var(--bg);
}

.home-manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .62fr);
  gap: clamp(70px, 10vw, 160px);
  align-items: end;
}

.home-manifesto .eyebrow {
  color: color-mix(in srgb, var(--bg) 52%, transparent);
}

.home-manifesto h2 {
  max-width: 820px;
  margin-top: 16px;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.home-manifesto-copy > p {
  color: color-mix(in srgb, var(--bg) 72%, transparent);
  font-size: 15px;
  line-height: 1.8;
}

.home-manifesto-price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 36px 0 22px;
  padding: 22px 0;
  border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
}

.home-manifesto-price span {
  color: color-mix(in srgb, var(--bg) 55%, transparent);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.09em;
}

.home-manifesto-price strong {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}

.home-manifesto .inline-link {
  color: var(--bg);
}

.home-manifesto .inline-link span {
  color: inherit;
}

/* PROCESS */
.home-process {
  padding: clamp(96px, 9vw, 132px) 0;
}

.home-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.home-process-grid article {
  min-height: 310px;
  padding: 30px 30px 34px 0;
  border-right: 1px solid var(--line);
}

.home-process-grid article + article {
  padding-left: 30px;
}

.home-process-grid article:last-child {
  border-right: 0;
}

.home-process-grid article > span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.09em;
}

.home-process-grid h3 {
  max-width: 350px;
  margin-top: 92px;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.home-process-grid p {
  max-width: 390px;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* PRICING BRIDGE */
.home-pricing-bridge {
  padding: clamp(80px, 8vw, 112px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.home-pricing-bridge-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .62fr);
  gap: clamp(64px, 9vw, 140px);
  align-items: end;
}

.home-pricing-bridge h2 {
  max-width: 720px;
  margin-top: 14px;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 480;
  line-height: 1.14;
  letter-spacing: -0.05em;
}

.home-pricing-bridge-side > p {
  max-width: 500px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.home-pricing-links {
  display: flex;
  gap: 26px;
  margin-top: 30px;
}

.home-pricing-links a {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.home-pricing-links a span {
  margin-left: 6px;
}

/* FINAL CTA */
.home-contact-strip {
  padding: clamp(82px, 8vw, 118px) 0;
  border-top: 0;
}

.home-contact-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.home-contact-inner > div > p {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.home-contact-inner h2 {
  margin-top: 14px;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 480;
  line-height: 1.16;
  letter-spacing: -0.05em;
}

.home-contact-inner > a {
  flex: 0 0 auto;
  padding-bottom: 8px;
  color: var(--text);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 560;
  letter-spacing: -0.035em;
}

.home-contact-inner > a span {
  margin-left: 8px;
  color: inherit;
}

@media (max-width: 980px) {
  body[data-page='home'] .home-hero-inner,
  .home-manifesto-grid,
  .home-pricing-bridge-inner {
    grid-template-columns: 1fr;
  }

  body[data-page='home'] .home-hero-inner {
    gap: 58px;
  }

  .home-starter-panel {
    max-width: 680px;
  }

  .home-scope-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-scope-grid > div:nth-child(4) {
    border-left: 1px solid var(--line);
  }

  .home-scope-grid > div:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .home-path-card {
    min-height: 320px;
  }

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

  .home-process-grid article,
  .home-process-grid article + article {
    min-height: 0;
    padding: 28px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-process-grid article:last-child {
    border-bottom: 0;
  }

  .home-process-grid h3 {
    margin-top: 48px;
  }
}

@media (max-width: 760px) {
  body[data-page='home'] .home-hero {
    padding-top: calc(var(--header-height) + 46px);
    padding-bottom: 72px;
  }

  body[data-page='home'] .hero-copy h1 {
    font-size: clamp(47px, 13vw, 68px);
    line-height: 1.02;
  }

  body[data-page='home'] .hero-description {
    margin-top: 24px;
    font-size: 15px;
  }

  body[data-page='home'] .button-row {
    margin-top: 30px;
  }

  body[data-page='home'] .button-row .button {
    width: 100%;
  }

  .home-starter-price strong {
    font-size: clamp(34px, 11vw, 48px);
  }

  .home-scope-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-scope-grid > div,
  .home-scope-grid > div:first-child,
  .home-scope-grid > div:nth-child(4) {
    min-height: 112px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-scope-grid > div:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .home-scope-grid > div:last-child {
    grid-column: 1 / -1;
    border-right: 1px solid var(--line);
  }

  .home-selected .section-heading,
  .home-paths .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-selected-actions {
    width: 100%;
    justify-content: space-between;
  }

  body[data-page='home'] #project-grid .portfolio-card:nth-child(n + 5) {
    display: none;
  }

  .home-path-grid {
    grid-template-columns: 1fr;
  }

  .home-path-card {
    min-height: 300px;
  }

  .home-path-card > div {
    margin: 44px 0 38px;
  }

  .home-manifesto {
    padding: 96px 0;
  }

  .home-manifesto-grid {
    gap: 58px;
  }

  .home-manifesto h2 {
    font-size: clamp(40px, 12vw, 60px);
  }

  .home-manifesto-price {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-pricing-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .home-contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .home-scope-grid {
    margin-inline: -24px;
    width: calc(100% + 48px);
  }

  .home-scope-grid > div {
    padding-inline: 18px;
  }

  .home-path-card {
    padding: 28px 24px;
  }

  .home-path-card footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
