/* Scoped to the compact home page. Inner pages keep their established layout. */
.home-refined .home-block {
  padding: 52px 0;
}
.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 28px;
}
.home-section-heading h2 {
  font-size: clamp(32px, 3.3vw, 44px);
  margin: 0;
  line-height: 1.12;
}
.home-section-heading > p {
  font-size: var(--fs-body);
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}
.home-section-heading .text-link {
  white-space: nowrap;
}
.home-offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.home-offer {
  padding: 30px 32px;
  background: var(--sage-100);
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--green-400);
}
.home-offer:nth-child(2) {
  background: var(--sand-100);
  border-color: var(--accent);
}
.home-offer h3 {
  font-size: 33px;
  line-height: 1.1;
  margin: 17px 0;
}
.home-offer > p {
  font-size: var(--fs-body);
  max-width: 410px;
  margin-bottom: 15px;
  color: var(--ink-soft);
}
.home-offer .home-specialties {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--ink-soft);
}
.home-offer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 17px;
  text-decoration: none;
  font-size: var(--fs-ui);
}
.home-offer-link span {
  font-size: 22px;
}
.home-approach {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-top: 25px;
}
.home-approach p {
  font-size: var(--fs-body-sm);
  color: var(--ink-soft);
  max-width: 780px;
  margin: 0;
}
.home-approach > a {
  font-size: var(--fs-ui);
  white-space: nowrap;
}
.home-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}
.home-proof-card {
  min-width: 0;
}
.home-proof-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.home-proof-image {
  overflow: hidden;
  background: var(--sage-100);
}
.home-proof-image img {
  width: 100%;
  height: auto;
  display: block;
}
.home-proof-copy {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.home-proof-copy h3 {
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 13px 0;
}
.home-proof-copy p {
  font-size: var(--fs-body-sm);
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.home-read {
  font-size: var(--fs-ui);
  color: var(--accent);
  margin-top: auto;
  display: flex;
  justify-content: space-between;
}
.home-proof-note {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin: 20px 0 0;
}
.home-refined .home-book-compact {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 60px;
  align-items: center;
  padding: 35px 45px;
  background: var(--sand-100);
}
.compact-book-art .book-object {
  max-width: 145px;
  margin: auto;
  padding: 0;
}
.compact-book-art .book-face {
  padding: 16px 15px 13px 18px;
  border-left-width: 4px;
  box-shadow:
    6px 6px 0 var(--line),
    9px 12px 20px #26312a16;
}
.compact-book-art .book-author {
  font-size: 6px;
  letter-spacing: 0.15em;
}
.compact-book-art .book-title {
  font-size: 34px;
  margin: 12px 0;
}
.compact-book-art .book-edition {
  font-size: 5px;
  letter-spacing: 0.1em;
}
.compact-book-art .book-object figcaption {
  font-size: var(--fs-small);
  line-height: 1.4;
  margin-top: 15px;
}
.compact-book-copy h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  margin: 10px 0 15px;
}
.compact-book-copy > p:not(.eyebrow) {
  font:
    22px/1.4 Georgia,
    serif;
  color: var(--ink-soft);
  margin-bottom: 23px;
}
.compact-book-copy .btn {
  padding: 11px 16px;
  font-size: var(--fs-ui);
}
.home-contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 65px;
  align-items: center;
  padding: 52px 0 15px;
}
.home-contact h2 {
  font-size: clamp(33px, 3.5vw, 45px);
  margin: 0;
}
.home-contact > div > p:not(.eyebrow) {
  font-size: var(--fs-body);
  color: var(--ink-soft);
}
.home-refined .footer {
  margin-top: 40px;
}
/* Motion. One orchestrated entrance on the first screen; after that the page stays still,
   except where motion helps: the case studies arrive together, links and buttons answer. */
.home-refined .home-intro > * {
  animation: hero-in 560ms var(--ease-out) both;
}
.home-refined .home-intro > :nth-child(2) {
  animation-delay: 60ms;
}
.home-refined .home-intro > :nth-child(3) {
  animation-delay: 120ms;
}
.home-refined .home-intro > :nth-child(4) {
  animation-delay: 180ms;
}
.home-refined .home-intro > :nth-child(5) {
  animation-delay: 240ms;
}
/* The portrait rises into its frame while the photo settles from a slight zoom. */
.home-refined .portrait-circle {
  animation: portrait-reveal 900ms var(--ease-in-out) 80ms both;
}
.home-refined .portrait-circle img {
  animation: portrait-settle 1200ms var(--ease-out) 80ms both;
}
.home-refined .portrait-label {
  animation: hero-in 560ms var(--ease-out) 420ms both;
}
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes portrait-reveal {
  from {
    clip-path: inset(100% 0 0 0 round 18px);
  }
  to {
    clip-path: inset(0 0 0 0 round 18px);
  }
}
@keyframes portrait-settle {
  from {
    transform: scale(1.06);
  }
}
@keyframes hero-fade {
  from {
    opacity: 0;
  }
}
/* Case studies: the three cards arrive together, slightly staggered, once. */
[data-reveal] {
  transition:
    opacity 500ms var(--ease-out),
    transform 500ms var(--ease-out);
}
.home-proof-card:nth-child(2) {
  transition-delay: 60ms;
}
.home-proof-card:nth-child(3) {
  transition-delay: 120ms;
}
.home-refined .reveal-pending {
  opacity: 0;
  transform: translateY(12px);
}
/* Hover, only where a pointer really hovers (touch fires false hovers on tap). */
.home-proof-image img {
  transition: transform 300ms var(--ease-out);
}
.home-proof-link h3,
.home-offer-link {
  transition: color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .home-proof-link:hover .home-proof-image img {
    transform: scale(1.03);
  }
  .home-proof-link:hover h3,
  .home-offer-link:hover {
    color: var(--accent);
  }
}
@media (max-width: 900px) {
  .home-section-heading {
    align-items: start;
  }
  .home-proof-grid {
    gap: 18px;
  }
  .home-proof-copy h3 {
    font-size: 23px;
  }
  .home-offer {
    padding: 25px;
  }
  .home-refined .home-block {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .home-contact {
    gap: 35px;
  }
  .home-refined .home-book-compact {
    gap: 30px;
    padding: 30px;
  }
}
@media (max-width: 600px) {
  .home-section-heading {
    display: block;
  }
  .home-section-heading > p,
  .home-section-heading > .text-link {
    display: block;
    margin-top: 17px;
  }
  .home-offer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .home-offer h3 {
    font-size: 30px;
  }
  .home-approach {
    display: block;
  }
  .home-approach > a {
    display: inline-block;
    margin-top: 12px;
  }
  .home-proof-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .home-proof-link {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 17px;
  }
  .home-proof-image {
    align-self: start;
    margin-top: 4px;
  }
  .home-proof-image img {
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
  }
  .home-proof-copy {
    padding: 0 0 20px;
  }
  .home-proof-copy h3 {
    font-size: 24px;
    margin: 9px 0;
  }
  .home-proof-copy p {
    font-size: var(--fs-body-sm);
    margin-bottom: 12px;
  }
  .home-refined .home-book-compact {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 20px;
    padding: 25px 15px;
  }
  .compact-book-art .book-face {
    padding: 12px 8px 10px 11px;
    border-left-width: 3px;
  }
  .compact-book-art .book-title {
    font-size: 24px;
  }
  .compact-book-art .book-author {
    font-size: 4px;
    letter-spacing: 0.08em;
  }
  .compact-book-art .book-edition {
    font-size: 3.5px;
    letter-spacing: 0;
  }
  .compact-book-art .book-object figcaption {
    font-size: var(--fs-small);
  }
  .compact-book-copy h2 {
    font-size: 32px;
    line-height: 1.1;
  }
  .compact-book-copy > p:not(.eyebrow) {
    font-size: 18px;
    margin-bottom: 18px;
  }
  .compact-book-copy .btn {
    padding: 8px 10px;
    font-size: var(--fs-small);
    gap: 8px;
  }
  .home-contact {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 40px;
  }
  .home-contact h2 {
    font-size: 34px;
  }
  .home-refined .home-block {
    padding-top: 35px;
    padding-bottom: 35px;
  }
  .home-refined .footer {
    margin-top: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  /* Fewer and gentler: the first screen still fades in, nothing moves or zooms. */
  .home-refined .home-intro > *,
  .home-refined .portrait-label {
    animation: hero-fade 300ms ease both;
  }
  .home-refined .portrait-circle,
  .home-refined .portrait-circle img {
    animation: none;
  }
  .home-refined [data-reveal] {
    transition: opacity 300ms ease;
    transform: none;
  }
  .home-refined .reveal-pending {
    transform: none;
  }
  .home-proof-image img {
    transition: none;
  }
  .home-proof-link:hover .home-proof-image img {
    transform: none;
  }
}
@media print {
  .home-refined [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .home-refined .home-block {
    padding: 20px 0;
  }
  .home-refined .home-hero {
    min-height: 0;
  }
  .home-contact {
    display: none;
  }
}
@media (max-width: 600px) {
  /* Stack the book card: the cover above, the text with the full width. */
  .home-refined .home-book-compact {
    grid-template-columns: 1fr;
  }
  .compact-book-art .book-object {
    max-width: 120px;
    margin: 0;
  }
}
@media (max-width: 600px) {
  /* Covers are wide typographic panels: show them whole above the text instead of a square crop. */
  .home-proof-link {
    display: flex;
  }
  .home-proof-image img {
    aspect-ratio: auto;
  }
}

/* Positioning sentence beside the offers title: Théo's own stance, read as a lead. */
.home-section-heading > p.home-stance {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink);
  max-width: 46ch;
}
/* Key figures at the top of the proof band. */
.home-figures {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 12px;
}
.home-figures p {
  margin: 0;
  max-width: 34ch;
  color: var(--ink-soft);
}
.home-figures strong {
  display: block;
  font:
    400 clamp(40px, 4vw, 56px) / 1 Georgia,
    serif;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 10px;
}
@media (max-width: 900px) {
  .home-section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .home-figures {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Offer cards: the entry price under the specialties. */
.home-offer .home-price {
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}
.compact-book-copy .text-link {
  margin-left: 18px;
}
@media (max-width: 600px) {
  .home-offer h3 {
    font-size: 26px;
  }
}
