/* Home-specific refinement layer. The shared Precision stylesheet remains untouched. */

:root {
  --home-header-height: var(--site-head-height);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-head-height) + 1rem);
}

/* Use one document scroll. Sections can breathe without becoming nested scroll areas. */
.page-main > section {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: visible;
  scrollbar-gutter: auto;
}

.page-main {
  overflow-x: clip;
  overflow-y: visible;
}

.page-main > section > .section-shell {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

.page-main > section.section-shell {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

/* The first visual thought always ends at the bottom edge of the device. */
.page-main > .hero {
  height: calc(100vh - var(--home-header-height));
  height: calc(100svh - var(--home-header-height));
  height: calc(100dvh - var(--home-header-height));
  min-height: 0;
  overflow: hidden;
}

.hero-grid {
  height: 100%;
  min-height: 0;
}

.hero-copy {
  min-height: 0;
  padding-top: clamp(1.5rem, 4vh, 3.8rem);
  padding-bottom: clamp(1.5rem, 4vh, 3.8rem);
}

.hero h1 {
  margin-bottom: clamp(1.2rem, 3.6vh, 3rem);
  font-size: clamp(3.4rem, min(9.1vw, 13.2vh), 8.7rem);
}

.hero-lead {
  margin-bottom: clamp(1rem, 2.7vh, 2rem);
  font-size: clamp(1rem, min(1.45vw, 2.4vh), 1.55rem);
}

/* The interruption is noticeable, never modal. Scrolling and focus remain untouched. */
body.interruption-open {
  overflow: visible;
}

.interruption-sheet {
  pointer-events: none;
}

.interruption-sheet button {
  pointer-events: auto;
}

.interruption-sheet .cost {
  max-width: 34ch;
}

/* Priority Gravity's orange anchor, now used as a concise pressure index. */
.workday-voices {
  color: var(--ink);
  background: var(--paper-deep);
  border-bottom: 2px solid var(--ink);
}

.workday-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(3rem, 5.5vw, 6.5rem);
  align-items: start;
}

.pain-terms {
  position: sticky;
  top: calc(var(--site-head-height) + clamp(1rem, 2vh, 1.5rem));
  display: flex;
  width: 100%;
  max-width: 27rem;
  min-width: 0;
  min-height: 0;
  max-height: calc(100dvh - var(--site-head-height) - 3rem);
  aspect-ratio: 4 / 5;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: clamp(2rem, 3vw, 3.25rem) clamp(2.15rem, 3.4vw, 3.5rem);
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--orange);
  overflow: hidden;
  isolation: isolate;
}

.pain-terms::after {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: clamp(0.42rem, 0.55vw, 0.65rem);
  background: var(--ink);
  content: "";
}

.pain-terms p {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: calc(100% - 0.75rem);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  font: 900 clamp(1.55rem, calc(1.05rem + 1.05vw), 2.5rem)/0.92 var(--head);
  letter-spacing: -0.045em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.pain-terms p:nth-child(2) {
  margin-left: 9%;
}

.pain-terms p:nth-child(3) {
  margin-left: 2%;
}

.pain-terms p:nth-child(4) {
  max-width: min(11ch, calc(85% - 0.75rem));
  margin-left: 15%;
}

.voice-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.9rem, 1.6vh, 1.35rem);
  align-items: start;
  margin-bottom: clamp(1.8rem, 4vh, 3.5rem);
}

.voice-intro h2 {
  max-width: none;
  margin: 0;
  font: 900 clamp(3rem, 5.2vw, 6.4rem)/0.88 var(--head);
  letter-spacing: -0.068em;
  text-wrap: balance;
}

.voice-intro > p {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.18rem);
}

.voice-grid {
  border-top: 2px solid var(--ink);
}

.client-voice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
  gap: 2rem;
  margin: 0;
  padding: clamp(1.5rem, 3vh, 2.5rem) 0;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.client-voice p {
  margin: 0;
  font-size: clamp(1.25rem, 1.05rem + 0.65vw, 1.75rem);
  line-height: 1.32;
}

.client-voice footer {
  align-self: end;
  color: var(--orange);
  font: 800 0.7rem/1.35 var(--utility);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Attention Budget's proof architecture, retaining Precision's exact evidence. */
.adoption-proof {
  background: var(--paper-deep);
  border-bottom: 2px solid var(--ink);
}

.adoption-layout {
  display: grid;
  align-content: center;
}

.adoption-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(17rem, 0.48fr);
  gap: clamp(3rem, 9vw, 10rem);
  align-items: end;
}

.adoption-copy h2 {
  max-width: 16ch;
  margin: 0;
  font: 900 clamp(2.8rem, 4.8vw, 5.6rem)/0.9 var(--head);
  letter-spacing: -0.068em;
}

.adoption-copy p {
  margin: 0;
  font-size: clamp(1.15rem, 1rem + 0.43vw, 1.52rem);
  font-weight: 700;
}

.adoption-numbers {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  margin-top: clamp(3rem, 8vh, 7rem);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.adoption-stat {
  display: flex;
  min-width: 0;
  min-height: clamp(13rem, 28vh, 20rem);
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 3rem);
}

.adoption-stat + .adoption-stat {
  border-left: 2px solid var(--ink);
}

.adoption-stat > strong {
  display: block;
  color: var(--orange);
  font: 700 clamp(4.5rem, 9vw, 9.5rem)/0.76 var(--number);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.045em;
}

.adoption-stat > span {
  display: block;
  max-width: 26rem;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.2rem);
}

.adoption-stat .number-range > span {
  margin: 0;
}

/* Three results use the available width instead of forming a long stack. */
.results-layout {
  display: grid;
  align-content: center;
}

.results-wall h2 {
  max-width: 10ch;
  margin-bottom: clamp(2.5rem, 5vh, 4.5rem);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2px solid var(--ink);
  background: var(--ink);
  gap: 2px;
}

.results-grid .result-quote {
  display: flex;
  min-width: 0;
  min-height: clamp(19rem, 42vh, 29rem);
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  margin: 0;
  padding: clamp(1.5rem, 2.8vw, 3rem);
  border: 0;
  color: var(--ink);
  background: var(--paper);
}

.results-grid .result-quote:nth-child(2) {
  color: var(--white);
  background: var(--ink);
}

.results-grid .result-quote p {
  margin: 0;
  font-size: clamp(1.15rem, 0.95rem + 0.55vw, 1.58rem);
  line-height: 1.36;
}

.results-grid .result-quote footer {
  grid-column: auto;
  color: var(--orange);
}

/* Friction Rail's closing invitation, unchanged in copy and visual logic. */
.friction-contact {
  color: var(--ink);
  background: var(--orange);
  border-bottom: 0;
}

.friction-contact .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
}

.friction-contact h2 {
  max-width: 13ch;
  margin: 0;
  font: 900 clamp(4rem, 9vw, 10rem)/0.8 var(--head);
  letter-spacing: -0.075em;
}

.friction-contact a {
  align-self: end;
  padding: 1rem 0;
  border-bottom: 0.3rem solid var(--ink);
  font: 900 0.8rem/1.2 var(--utility);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.friction-contact a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-rows: minmax(0, 1fr) minmax(6rem, 0.24fr);
  }

  .hero-copy {
    padding-top: clamp(1.15rem, 3vh, 2.25rem);
    padding-bottom: clamp(1.15rem, 3vh, 2.25rem);
  }

  .hero h1 {
    margin-bottom: clamp(0.8rem, 2.1vh, 1.4rem);
    font-size: clamp(3.2rem, min(12vw, 11vh), 6.6rem);
  }

  .hero-lead {
    margin-bottom: 0.9rem;
    font-size: clamp(0.98rem, 1.8vw, 1.3rem);
  }

  .hero-side {
    min-height: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .hero-side p {
    font-size: clamp(1.45rem, 4vw, 2.6rem);
  }

  .workday-layout {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
  }

  .pain-terms {
    position: relative;
    top: auto;
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(7rem, auto));
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    justify-content: initial;
    padding: 0 clamp(0.42rem, 0.8vw, 0.55rem) 0 0;
  }

  .pain-terms p {
    display: flex;
    width: auto;
    max-width: none;
    min-height: 7rem;
    align-items: flex-end;
    margin-left: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 0;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
  }

  .pain-terms p:nth-child(even) {
    border-left: 1px solid rgba(17, 17, 15, 0.4);
  }

  .pain-terms p:nth-child(n + 3) {
    border-top: 1px solid rgba(17, 17, 15, 0.4);
  }

  .voice-intro,
  .adoption-copy {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .results-grid .result-quote:last-child {
    grid-column: 1 / -1;
    min-height: 15rem;
  }
}

@media (max-width: 700px) {
  .page-main > .hero {
    min-height: 0;
  }

  .hero-grid {
    grid-template-rows: minmax(0, 1fr) minmax(5.8rem, 0.22fr);
  }

  .hero-copy {
    padding: clamp(0.9rem, 2.3vh, 1.35rem) 1.3rem;
  }

  .hero h1,
  .inside-hero h1 {
    margin-bottom: clamp(0.65rem, 1.6vh, 1rem);
    font-size: clamp(2.75rem, min(15.5vw, 9.8vh), 4.8rem);
    line-height: 0.78;
  }

  .hero-lead {
    margin-bottom: 0.7rem;
    font-size: clamp(0.88rem, min(3.7vw, 2vh), 1.05rem);
    line-height: 1.26;
  }

  .hero-link {
    font-size: 0.66rem;
  }

  .hero-side {
    min-height: 0;
    padding: 0.9rem 1.3rem;
  }

  .hero-side p {
    font-size: clamp(1.25rem, min(6.8vw, 3.4vh), 2rem);
  }

  .interruption-sheet {
    max-height: min(24rem, calc(100dvh - 2rem));
  }

  .interruption-sheet .request {
    font-size: clamp(1.75rem, 9vw, 2.8rem);
  }

  .workday-layout {
    grid-template-columns: 1fr;
  }

  .pain-terms {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    gap: clamp(1.2rem, 5vw, 1.8rem);
    padding: clamp(1.35rem, 6vw, 1.8rem) clamp(1.55rem, 7vw, 2.1rem);
  }

  .pain-terms p {
    display: block;
    width: max-content;
    max-width: calc(100% - 0.75rem);
    min-height: 0;
    margin-left: 0;
    padding: 0;
    border: 0;
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }

  .pain-terms p:nth-child(2) {
    margin-left: 8%;
    border-left: 0;
  }

  .pain-terms p:nth-child(3) {
    margin-left: 1%;
    border-top: 0;
  }

  .pain-terms p:nth-child(4) {
    max-width: min(12ch, calc(88% - 0.75rem));
    margin-left: 12%;
    border: 0;
  }

  .pain-terms p + p {
    border-top: 0;
  }

  .voice-intro h2 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  .adoption-copy h2 {
    font-size: clamp(2.45rem, 11vw, 4rem);
  }

  .voice-grid,
  .adoption-numbers,
  .results-grid,
  .friction-contact .contact-layout {
    grid-template-columns: 1fr;
  }

  .client-voice,
  .client-voice:nth-child(n) {
    grid-template-columns: 1fr;
  }

  .adoption-stat + .adoption-stat {
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

  .adoption-stat {
    min-height: 13rem;
  }

  .results-grid .result-quote,
  .results-grid .result-quote:last-child {
    grid-column: 1;
    min-height: 16rem;
  }

  .friction-contact h2 {
    font-size: clamp(3.4rem, 16vw, 6rem);
  }

  .friction-contact a {
    justify-self: start;
  }
}

@media (max-width: 700px) and (max-height: 650px) and (min-aspect-ratio: 4 / 3) {
  .hero-copy {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .hero h1,
  .inside-hero h1 {
    margin-bottom: 0.45rem;
    font-size: clamp(2.25rem, 10vh, 3.2rem);
  }

  .hero-lead {
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
    line-height: 1.16;
  }

  .hero-link {
    font-size: 0.55rem;
  }

  .hero-side {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .hero-side p {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) and (max-height: 340px) and (min-aspect-ratio: 4 / 3) {
  .hero-grid {
    grid-template-rows: minmax(0, 1fr);
  }

  .hero-side {
    display: none;
  }
}

@media (max-height: 650px) and (min-width: 701px) {
  .hero h1 {
    font-size: clamp(3.2rem, 10.8vh, 5.6rem);
    margin-bottom: 0.75rem;
  }

  .hero-lead {
    margin-bottom: 0.75rem;
    font-size: 1rem;
  }

  .hero-copy {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

/* A landscape phone should read as a compact split composition, rather than
   sacrificing most of its height to a stacked counterpoint rail. */
@media (min-width: 701px) and (max-width: 980px) and (max-height: 650px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(13rem, 0.6fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .hero-copy {
    padding: clamp(0.65rem, 2vh, 1rem) var(--gutter);
  }

  .hero h1 {
    margin-bottom: 0.55rem;
    font-size: clamp(2.35rem, 10vh, 4.2rem);
  }

  .hero-lead {
    margin-bottom: 0.55rem;
    font-size: clamp(0.76rem, 2.4vh, 0.95rem);
    line-height: 1.2;
  }

  .hero-link {
    font-size: 0.6rem;
  }

  .hero-side {
    min-height: 0;
    padding: 1rem;
  }

  .hero-side p {
    font-size: clamp(1.2rem, 7vh, 2.2rem);
  }
}

/* Laptop and tablet canvases should be paced by their content, not by a
   compulsory full-screen minimum. The hero remains exactly one screen tall. */
@media (max-width: 1440px), (max-height: 900px) {
  .page-main > section:not(.hero),
  .page-main > section:not(.hero) > .section-shell,
  .page-main > section.section-shell:not(.hero),
  .friction-contact .contact-layout {
    height: auto;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .page-main > section,
  .page-main > .hero {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .pain-terms {
    position: static;
  }
}
