/* Homepage controls: palette, section spacing and graphic treatments. */
@font-face {
  font-family: "Quattrovia";
  src: url("../fonts/Quattrovia.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.home-page {
  --page-bg: #121212;
  --text: #f5f3ee;
  --muted: #b9b8b3;
  --accent: #f5f3ee;
  --accent-soft: #f09060;
  --accent-orange: #e56a36;
  --accent-orange-soft: #f09060;
  --home-purple: #3f0967;
  --home-paper: #eee9df;
  --home-ink: #201c23;
  --home-surface: #1e1d20;
  --home-section-gap: clamp(6rem, 12vw, 11rem);
  font-family: "Quattrovia", sans-serif;
  font-weight: 400;
  font-stretch: normal;
}

.home-page .content {
  max-width: 68rem;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: 3rem;
}

.home-page .section {
  margin-bottom: var(--home-section-gap);
  scroll-margin-top: 3rem;
}

.home-page h1,
.home-page h2,
.home-page h3 {
  color: var(--text);
  text-wrap: balance;
}

.home-page h2 {
  max-width: 19ch;
  margin-top: 0;
  margin-bottom: 1.75rem;
  font-size: clamp(2.5rem, 4.3vw, 4rem);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.home-page h3 {
  margin-top: 0;
  font-size: 1.35rem;
  font-weight: 760;
  line-height: 1.2;
}

.home-page p {
  max-width: 37rem;
  color: var(--muted);
  line-height: 1.6;
  text-wrap: pretty;
}

.home-page .section-label {
  max-width: none;
  margin-bottom: 1.5rem;
  color: var(--accent-orange-soft);
  font-size: 0.67rem;
  font-weight: 750;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Deep purple highlights around the headline text. */
.home-page .hero {
  position: relative;
  padding-bottom: 1rem;
  isolation: isolate;
}

.home-page .hero-title {
  max-width: 15ch;
  margin-top: 0;
  margin-bottom: 2.75rem;
  font-size: clamp(3.5rem, 5.9vw, 6rem);
  font-weight: 800;
  font-stretch: normal;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: initial;
}

.home-page .hero-title > span {
  display: block;
  text-wrap: balance;
}

/* Inline fragments keep the background snug around each wrapped line. */
.home-page .hero-title .home-title-answer {
  margin-top: 0.2em;
  padding: 0.12em 0 0.2em;
  line-height: 1.1;
}

.home-title-highlight {
  padding: 0.03em 0.12em 0.08em;
  margin-left: -0.12em;
  background: var(--home-purple);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.home-page .hero-subtitle {
  max-width: 30rem;
  font-size: 1.17rem;
  line-height: 1.55;
}

.home-page .home-lead {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  color: var(--text);
}

/* Contrasting offer sheets: warm paper and the logo's purple family. */
.home-packages {
  display: grid;
  gap: 1.75rem;
  margin-top: 4rem;
}

.home-package {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: 3px;
  background: var(--home-paper);
  color: var(--home-ink);
}

.home-package-premium {
  background: var(--home-purple);
  color: var(--text);
}

.home-page .home-package .section-label {
  color: inherit;
}

.home-page .home-package h3 {
  min-height: 2.2em;
  margin-bottom: 1.5rem;
  color: inherit;
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: initial;
}

.home-page .home-package p,
.home-package li {
  color: inherit;
  font-size: 0.9rem;
}

.home-package ul {
  padding-left: 1rem;
  margin: 0.5rem 0 2.5rem;
}

.home-package li + li { margin-top: 0.8rem; }
.home-package li::marker { color: currentColor; }

.home-page .home-package-price {
  margin-top: auto;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 750;
}

.home-package .home-text-link {
  width: 100%;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid currentColor;
  color: inherit;
}

.home-package a:hover { text-decoration-thickness: 2px; }

.home-page .home-package-care {
  max-width: 36rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.home-individual { font-size: 0.9rem; }

.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.5rem;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.2rem;
  padding: 0.9rem 1.25rem;
  border-radius: 3px;
  background: var(--accent-orange);
  color: var(--page-bg);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.4;
  transition: transform 180ms ease, background 180ms ease;
}

.home-button span { font-size: 1.4rem; }

.home-button:hover,
.home-button:focus {
  background: var(--accent-orange-soft);
  color: var(--page-bg);
  text-decoration: none;
  transform: translateY(-3px);
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  font-size: 0.9rem;
  text-underline-offset: 0.3em;
}

/* Oversized step numbers and generous spacing give the copy a rhythm. */
.home-process {
  display: grid;
  gap: 0;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.home-process li {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid #454247;
  counter-increment: process;
}

.home-process li::before {
  content: counter(process);
  color: var(--accent-orange);
  font-size: 4rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.06em;
}

.home-process h3 { margin-bottom: 1rem; }
.home-process p:last-child { margin-bottom: 0; }

/* Project note, ready for an actual website screenshot later. */
.home-example {
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border-radius: 3px;
  background: var(--home-paper);
  color: var(--home-ink);
}

.home-page .home-example h2 {
  max-width: none;
  color: inherit;
  font-size: clamp(3rem, 5.5vw, 5rem);
}

.home-page .home-example p { color: inherit; }
.home-page .home-example .section-label { color: #6b306d; }

.home-principle {
  padding-left: clamp(1.5rem, 4vw, 3rem);
  border-left: 0.3rem solid var(--accent-orange);
}

/* The portrait becomes a cutout over a tilted purple sheet. */
.home-about { container-type: inline-size; }

.home-about-layout {
  position: relative;
  display: grid;
  grid-template-areas: "heading" "portrait" "copy";
  isolation: isolate;
}

.home-about-heading { grid-area: heading; }
.home-about-copy { grid-area: copy; }
.home-about-copy > :last-child { margin-bottom: 0; }

.home-about-layout::before {
  content: "";
  grid-area: portrait;
  z-index: -1;
  align-self: center;
  justify-self: center;
  width: min(75%, 14rem);
  height: 75%;
  background: var(--home-purple);
  transform: rotate(7deg);
}

.home-about-portrait {
  grid-area: portrait;
  display: block;
  width: min(100%, 15rem);
  height: auto;
  margin: 0 auto 2rem;
  border-radius: 0;
  mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
}

.home-about-portrait--sticker {
  mask-image: none;
  filter: url(#portrait-sticker-outline);
  transform: rotate(-4deg);
}

@container (min-width: 34rem) {
  .home-about-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(12rem, 0.85fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "heading portrait" "copy portrait";
    column-gap: clamp(2rem, 5cqi, 4rem);
    align-items: start;
  }

  .home-about-portrait {
    align-self: center;
    width: 100%;
    max-width: 17rem;
    margin: -1rem 0 0 auto;
  }

  .home-about-layout::before { width: 90%; }
}

.home-page .home-contact {
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--home-purple);
  border-radius: 3px;
}

.home-page .home-contact .section-label,
.home-page .home-contact p { color: var(--text); }

.home-contact-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid currentColor;
  font-size: clamp(1.3rem, 2.8vw, 2.3rem);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.home-elsewhere { padding-top: 1rem; }

.home-elsewhere-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.home-page .home-elsewhere h2 { color: var(--muted); }
.home-elsewhere h3 { font-size: 1rem; letter-spacing: 0; }
.home-elsewhere p { font-size: 0.9rem; }

.home-page .home-coming-soon {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Retain the existing right rail; only add top air on taller desktops. */
.home-page .sidebar {
  --accent: #c79afa;
  --accent-soft: #ddc2ff;
  background: #19171c;
}
.home-page .sidebar-sticky { position: static; min-height: 0; }
.home-page .sidebar-about { margin-top: 1rem; }
.home-page .sidebar-nav { margin-top: clamp(2rem, 7vh, 5rem); }
.home-page .sidebar-nav-item { width: fit-content; padding: 0.5rem 0; font-size: 0.68rem; }
.home-page .sidebar-nav-item + .sidebar-nav-item { margin-top: 0.1rem; }
.home-page .sidebar-contact { margin-top: 2rem; font-size: 0.85rem; }

.home-page a:focus-visible {
  outline: 2px solid var(--accent-orange-soft);
  outline-offset: 5px;
}

.home-page .sidebar a:focus-visible { outline-color: var(--accent); }

.home-package:not(.home-package-premium) a:focus-visible {
  outline-color: var(--home-ink);
}

.home-skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  transform: translateY(-200%);
  background: var(--text);
  color: var(--page-bg);
  font-weight: 700;
}

.home-skip-link:focus { transform: translateY(0); color: var(--page-bg); }

@media (min-width: 48em) and (min-height: 50em) {
  .home-page .sidebar-about { margin-top: clamp(1rem, 3vh, 2.5rem); }
}

@media (min-width: 75em) {
  .home-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-package-premium { transform: translateY(1.5rem); }
  .home-page .home-package-care { margin-top: 3.5rem; }
}

@media (max-width: 63.999em) and (min-width: 48em) {
  .home-page .sidebar { width: 15rem; }
  .home-page.layout-reverse .content { margin-left: 1rem; margin-right: 16rem; }
  .home-page .hero-title { font-size: clamp(3rem, 6vw, 4rem); }
  .home-elsewhere-grid { grid-template-columns: 1fr; }
}

@media (max-width: 47.999em) {
  .home-page .sidebar { padding: 1.25rem 1rem; }
  .home-page .sidebar-sticky { padding: 0; }
  .home-page .sidebar-about { margin: 0; text-align: left; }
  .home-page .sidebar-logo-link { width: 5.5rem; margin: 0; }
  .home-page .sidebar-logo { transform: rotate(2.5deg); }
  .home-page .sidebar-tagline,
  .home-page .sidebar-contact { display: none; }
  .home-page .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
    margin-top: 1rem;
    text-align: left;
  }
  .home-page .sidebar-nav-item + .sidebar-nav-item { margin-top: 0; }
  .home-page .content { padding-right: 1.5rem; padding-left: 1.5rem; }
  .home-page .hero-title { font-size: clamp(2.75rem, 9.8vw, 4.4rem); }
  .home-page .hero-subtitle { font-size: 1.1rem; }
  .home-page h2 { font-size: clamp(2.4rem, 7vw, 3.5rem); }
  .home-package h3 { min-height: 0; }
  @media (prefers-reduced-motion: reduce) {
  .home-button { transition: none; }
  .home-button:hover,
  .home-button:focus { transform: none; }
}
