/* Homepage presentation layer
   Base tokens and component primitives live in styles.css.
   This file keeps page-specific composition in one place. */

.site-header {
  max-width: none;
  padding-left: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  padding-right: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

.site-header nav a {
  position: relative;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--orange);
  transition: right 0.2s ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  right: 0;
}

.button {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.12);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.2);
}

.button.ghost {
  box-shadow: none;
}

.hero {
  min-height: auto;
  padding-top: 56px;
  padding-bottom: 58px;
  gap: 58px;
}

.hero-copy {
  align-self: center;
  max-width: 780px;
}

.hero .eyebrow {
  margin-bottom: 12px;
}

.hero h1 {
  max-width: 900px;
  text-wrap: balance;
}

.hero .lead {
  max-width: 720px;
  margin-top: 22px;
  margin-bottom: 0;
}

.hero .actions {
  margin-top: 28px;
  margin-bottom: 16px;
}

.hero .b2b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 680px;
  margin-top: 0;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.hero .b2b::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
}

.hero-visual {
  min-height: 530px;
  isolation: isolate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  right: -15%;
  bottom: -35%;
  left: 20%;
  height: 58%;
  z-index: 1;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16), transparent 66%);
  pointer-events: none;
}

.process-rail li {
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.process-rail li:hover {
  transform: translateX(-5px);
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(17, 23, 31, 0.9);
}

.proof-strip {
  position: relative;
  margin-top: 8px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.012);
}

.proof-strip div {
  position: relative;
  padding-top: 30px;
  padding-bottom: 30px;
  transition: background 0.2s ease;
}

.proof-strip div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 36px;
  height: 2px;
  background: var(--orange);
}

.proof-strip div:hover {
  background: rgba(245, 158, 11, 0.045);
}

.proof-strip b {
  font-size: 18px;
}

.proof-strip span {
  margin-top: 2px;
}

.section {
  padding-top: 112px;
  padding-bottom: 112px;
}

.section > h2,
.section-head h2 {
  max-width: 980px;
  text-wrap: balance;
}

.section-intro {
  max-width: 760px;
  margin-top: 24px;
  line-height: 1.7;
}

.four-grid,
.service-grid {
  gap: 18px;
  margin-top: 46px;
}

.four-grid article,
.service-grid article {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.four-grid article::before,
.service-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  opacity: 0.55;
}

.four-grid article::after,
.service-grid article::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 70%);
  pointer-events: none;
}

.four-grid article:hover,
.service-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.26);
}

.four-grid article > span,
.service-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.07);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.four-grid h3,
.service-grid h3 {
  margin-top: 42px;
}

.comparison {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.comparison p {
  margin: 0;
  color: #c8d0d8;
  line-height: 1.7;
}

/* Whole Process
   One visual hierarchy: label, statement, then four equal steps.
   No detached left/right split at desktop widths. */
#framework {
  position: relative;
  display: block;
  max-width: none;
  padding-top: 96px;
  padding-bottom: 104px;
  overflow: hidden;
  isolation: isolate;
}

#framework::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.09), transparent 30%),
    linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.025), transparent);
  pointer-events: none;
}

#framework > .eyebrow,
#framework > h2,
#framework > .four-grid {
  width: calc(100% - 48px);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

#framework > .eyebrow {
  margin-bottom: 14px;
}

#framework > h2 {
  max-width: min(var(--max), 1080px);
  margin-left: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  margin-right: auto;
  font-size: clamp(44px, 4.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

#framework > .four-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

#framework .four-grid article {
  display: flex;
  min-width: 0;
  min-height: 224px;
  flex-direction: column;
  padding: 26px;
  background: linear-gradient(160deg, rgba(17, 23, 31, 0.94), rgba(8, 12, 16, 0.92));
}

#framework .four-grid article::before {
  top: 72px;
  right: 26px;
  left: 26px;
  width: auto;
  height: 1px;
  opacity: 0.65;
}

#framework .four-grid h3 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: clamp(22px, 1.8vw, 27px);
}

#framework .four-grid p {
  margin: 0;
  line-height: 1.65;
}

.panel {
  margin-top: 20px;
  margin-bottom: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.section-head {
  gap: 42px;
}

.section-head > p {
  max-width: 500px;
  margin: 0;
  justify-self: end;
  line-height: 1.7;
}

.optional-conversion {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1.25fr);
  gap: 40px;
  align-items: start;
}

.optional-conversion > h3,
.optional-conversion > p {
  grid-column: 1;
}

.optional-conversion > form {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-grid article {
  display: flex;
  min-height: 370px;
  flex-direction: column;
  padding: 30px;
}

.service-grid article p {
  min-height: 74px;
}

.service-grid article ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.service-grid article li + li {
  margin-top: 8px;
}

.service-grid article a {
  margin-top: auto;
  padding-top: 22px;
  transition: transform 0.18s ease, color 0.18s ease;
}

.service-grid article a:hover {
  transform: translateX(4px);
  color: var(--orange2);
}

.insight-callout {
  position: relative;
  padding-top: 94px;
}

.insight-callout > div:first-child {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.article-links {
  gap: 18px;
}

.article-links a {
  position: relative;
  min-height: 180px;
  padding: 25px;
  justify-content: space-between;
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.article-links a::after {
  content: "↗";
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: var(--orange);
  font-size: 20px;
}

.article-links a:hover {
  transform: translateY(-4px);
  background: #111821;
}

.article-links strong {
  max-width: 90%;
  font-size: 21px;
  line-height: 1.35;
}

.article-links span {
  margin-top: auto;
  padding-top: 18px;
}

.contact {
  position: relative;
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 96px;
}

.contact::before,
.contact::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.contact::before {
  top: -190px;
  left: -220px;
  width: 360px;
  height: 360px;
}

.contact::after {
  right: -260px;
  bottom: -260px;
  width: 420px;
  height: 420px;
}

.contact h2 {
  max-width: 900px;
}

.contact > p:not(.eyebrow) {
  max-width: 660px;
  margin: 24px auto 30px;
  line-height: 1.7;
}

.contact .button {
  position: relative;
  z-index: 1;
  min-width: 280px;
}

.email-display {
  margin-bottom: 0;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.four-grid .reveal-ready:nth-child(2),
.service-grid .reveal-ready:nth-child(2),
.proof-strip .reveal-ready:nth-child(2),
.article-links .reveal-ready:nth-child(2) {
  transition-delay: 0.06s;
}

.four-grid .reveal-ready:nth-child(3),
.service-grid .reveal-ready:nth-child(3),
.proof-strip .reveal-ready:nth-child(3),
.article-links .reveal-ready:nth-child(3) {
  transition-delay: 0.12s;
}

.four-grid .reveal-ready:nth-child(4),
.proof-strip .reveal-ready:nth-child(4) {
  transition-delay: 0.18s;
}

footer {
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer-links a {
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: #fff;
}

@media (min-width: 1180px) {
  .hero {
    padding-top: 64px;
    padding-bottom: 66px;
    gap: 76px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .proof-strip div {
    padding-left: 34px;
    padding-right: 34px;
  }

  .proof-strip div::before {
    left: 34px;
  }

  .section {
    padding-top: 116px;
    padding-bottom: 116px;
  }

  #framework {
    padding-top: 104px;
    padding-bottom: 112px;
  }

  .contact {
    padding-top: 112px;
    padding-bottom: 112px;
  }
}

@media (max-width: 1100px) {
  #framework > .four-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #framework .four-grid article {
    min-height: 210px;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-header nav a::after {
    display: none;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 52px;
    gap: 42px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    min-height: 560px;
  }

  .section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  #framework {
    padding-top: 84px;
    padding-bottom: 90px;
  }

  #framework > h2 {
    max-width: 820px;
  }

  .section-head > p {
    justify-self: start;
  }

  .service-grid article,
  .service-grid article p {
    min-height: 0;
  }

  .optional-conversion {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .optional-conversion > h3,
  .optional-conversion > p,
  .optional-conversion > form {
    grid-column: 1;
    grid-row: auto;
  }

  .optional-conversion > form {
    margin-top: 10px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand small {
    display: none;
  }

  .mark {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding: 34px 18px 42px;
  }

  .hero .lead {
    font-size: 18px;
    line-height: 1.55;
  }

  .hero .actions {
    gap: 10px;
  }

  .hero .b2b {
    align-items: flex-start;
    border-radius: 14px;
  }

  .hero-visual {
    min-height: 510px;
    border-radius: 18px;
  }

  .process-rail li {
    padding: 11px 12px;
  }

  .process-rail span {
    font-size: 12px;
  }

  .proof-strip div {
    padding: 24px 20px;
  }

  .proof-strip div::before {
    left: 20px;
  }

  .section {
    padding: 72px 20px;
  }

  .section h2 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .section-intro {
    font-size: 17px;
  }

  .four-grid,
  .service-grid {
    margin-top: 34px;
  }

  .four-grid article,
  .service-grid article {
    min-height: 0;
    padding: 23px;
  }

  .four-grid h3,
  .service-grid h3 {
    margin-top: 30px;
  }

  .comparison {
    gap: 14px;
  }

  .comparison p {
    font-size: 15px;
  }

  #framework {
    padding: 70px 0 74px;
  }

  #framework > .eyebrow,
  #framework > h2,
  #framework > .four-grid {
    width: calc(100% - 40px);
  }

  #framework > h2 {
    margin-left: 20px;
    font-size: clamp(36px, 11vw, 52px);
  }

  #framework > .four-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 34px;
  }

  #framework .four-grid article {
    min-height: 0;
    padding: 23px;
  }

  #framework .four-grid article::before {
    top: 69px;
    right: 23px;
    left: 23px;
  }

  #framework .four-grid h3 {
    margin-top: 30px;
  }

  .section-head {
    gap: 16px;
  }

  .section-head > p {
    font-size: 16px;
  }

  .optional-conversion {
    display: none;
  }

  .article-links a {
    min-height: 160px;
  }

  .article-links strong {
    font-size: 19px;
  }

  .contact {
    margin-right: 14px;
    margin-left: 14px;
    padding: 70px 20px;
  }

  .contact > p:not(.eyebrow) {
    font-size: 16px;
  }

  .contact .button {
    width: 100%;
    min-width: 0;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 38px 20px;
  }

  .footer-links {
    flex-direction: row;
    gap: 14px;
  }

  footer > p {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button:hover,
  .four-grid article:hover,
  .service-grid article:hover,
  .article-links a:hover,
  .process-rail li:hover {
    transform: none;
  }

  .reveal-ready {
    opacity: 1;
    transform: none;
  }

  .reveal-ready.is-visible {
    transition: none;
  }
}
