:root {
  --paper: #f5f1e8;
  --paper-soft: #ebe6da;
  --cream: #fffdf7;
  --sage: #709470;
  --sage-dark: #24381f;
  --moss: #536331;
  --leaf: #9dbb9f;
  --gold: #ccc050;
  --clay: #7a4a32;
  --brown: #4e2f1e;
  --taupe: #7c7366;
  --ink: #223020;
  --line: rgba(78, 47, 30, 0.16);
  --shadow: 0 18px 52px rgba(55, 44, 32, 0.12);
  --radius: 8px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--taupe);
  background: linear-gradient(180deg, var(--paper) 0%, #f8f3ea 42%, var(--paper-soft) 100%);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--sage);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1rem;
  color: var(--cream);
  font-size: 4.8rem;
  text-shadow: 0 3px 22px rgba(18, 24, 16, 0.38);
}

h2 {
  margin-bottom: 1rem;
  font-size: 3.2rem;
}

h3 {
  color: var(--brown);
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  margin-bottom: 1rem;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  color: var(--cream);
  background: var(--sage-dark);
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.88);
  border-bottom: 1px solid rgba(78, 47, 30, 0.08);
  backdrop-filter: blur(16px);
  transition: box-shadow 160ms ease, background 160ms ease;
}

.site-header.is-scrolled {
  background: rgba(245, 241, 232, 0.96);
  box-shadow: 0 10px 34px rgba(55, 44, 32, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--max));
  min-height: 72px;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--sage-dark);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  background: var(--cream);
  border: 2px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(36, 56, 31, 0.16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--taupe);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.55rem 0.75rem;
  color: var(--sage-dark);
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--cream);
  background: var(--sage);
}

.site-nav .nav-cta {
  color: var(--brown);
  background: var(--gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--sage-dark);
}

.hero {
  position: relative;
  display: grid;
  min-height: 690px;
  overflow: hidden;
  background-image: url("../images/piste-loupe.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 26rem;
  height: 26rem;
  content: "";
  border: 1px solid rgba(255, 253, 247, 0.36);
  border-radius: 50%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 56, 31, 0.88) 0%, rgba(36, 56, 31, 0.74) 39%, rgba(36, 56, 31, 0.36) 100%),
    linear-gradient(180deg, rgba(245, 241, 232, 0.05) 0%, rgba(36, 56, 31, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 7.5rem 0 4rem;
  color: rgba(255, 253, 247, 0.88);
}

.hero-lead {
  width: min(680px, 100%);
  margin-bottom: 1.6rem;
  color: rgba(255, 253, 247, 0.9);
  font-size: 1.16rem;
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ece3aa;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.76rem 1.18rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--brown);
  background: var(--gold);
}

.button-secondary {
  color: var(--cream);
  border-color: rgba(255, 253, 247, 0.54);
  background: rgba(255, 253, 247, 0.08);
}

.final-cta .button-secondary {
  color: var(--sage-dark);
  border-color: rgba(36, 56, 31, 0.24);
  background: var(--cream);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(720px, 100%);
  margin: 3rem 0 0;
  border: 1px solid rgba(255, 253, 247, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.08);
  backdrop-filter: blur(10px);
}

.hero-proof div {
  padding: 1rem;
}

.hero-proof div + div {
  border-left: 1px solid rgba(255, 253, 247, 0.22);
}

.hero-proof dt {
  color: var(--cream);
  font-weight: 900;
}

.hero-proof dd {
  margin: 0.15rem 0 0;
  color: rgba(255, 253, 247, 0.76);
  font-size: 0.9rem;
}

.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 4rem;
}

.section-grid-balanced {
  grid-template-columns: 0.85fr 1.15fr;
}

.intro-band {
  width: 100%;
  padding-right: max(1rem, calc((100% - var(--max)) / 2));
  padding-left: max(1rem, calc((100% - var(--max)) / 2));
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  color: #6a6157;
  font-size: 1.05rem;
  column-gap: 2rem;
}

.spotlight {
  padding-top: 6.5rem;
}

.visual-stack {
  position: relative;
  min-height: 560px;
}

.visual-stack img {
  border: 8px solid var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.visual-main {
  width: 72%;
  aspect-ratio: 1 / 1;
}

.visual-small {
  position: absolute;
  width: 38%;
  aspect-ratio: 1 / 1;
}

.visual-small-top {
  top: 2rem;
  right: 0;
}

.visual-small-bottom {
  right: 7%;
  bottom: 1rem;
}

.spotlight-copy p:not(.eyebrow) {
  font-size: 1.05rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  color: var(--sage-dark);
  font-size: 0.9rem;
  font-weight: 800;
  background: rgba(112, 148, 112, 0.16);
  border: 1px solid rgba(112, 148, 112, 0.24);
  border-radius: var(--radius);
}

.text-link {
  display: inline-flex;
  margin-top: 0.7rem;
  color: var(--brown);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25rem;
}

.credentials,
.testimonials {
  width: 100%;
  padding-right: max(1rem, calc((100% - var(--max)) / 2));
  padding-left: max(1rem, calc((100% - var(--max)) / 2));
  background: #e8e1d3;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 2rem;
}

.credential-grid,
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.credential,
.offer {
  min-height: 100%;
  padding: 1.25rem;
  background: rgba(255, 253, 247, 0.82);
  border: 1px solid rgba(78, 47, 30, 0.1);
  border-radius: var(--radius);
}

.credential-number,
.offer-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2rem;
  margin-bottom: 0.85rem;
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 900;
  background: var(--gold);
  border-radius: var(--radius);
}

.credential p,
.offer p {
  margin-bottom: 0;
}

.offer p + p {
  margin-top: 0.85rem;
}

.offers {
  padding-bottom: 6.5rem;
}

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

.offer {
  background: var(--cream);
}

.offer-featured {
  color: rgba(255, 253, 247, 0.82);
  background: var(--sage-dark);
}

.offer-featured h3 {
  color: var(--cream);
}

.offer-featured .offer-tag {
  color: var(--brown);
  background: var(--gold);
}

.gallery-band {
  width: 100%;
  padding-right: max(1rem, calc((100% - var(--max)) / 2));
  padding-left: max(1rem, calc((100% - var(--max)) / 2));
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.05fr 1fr;
  align-items: center;
  gap: 0.75rem;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-strip img:nth-child(3) {
  aspect-ratio: 4 / 3;
}

.testimonial-shell {
  overflow: hidden;
  background: var(--cream);
  border: 1px solid rgba(78, 47, 30, 0.1);
  border-radius: var(--radius);
}

.testimonial-track {
  position: relative;
  min-height: 330px;
}

.testimonial {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: 2rem;
  opacity: 0;
  transform: translateX(2rem);
  transition: opacity 220ms ease, transform 220ms ease;
}

.testimonial.is-active {
  opacity: 1;
  transform: translateX(0);
}

.rating {
  margin-bottom: 1rem;
  color: var(--moss);
  font-weight: 900;
}

blockquote {
  max-width: 920px;
  margin: 0;
  color: #5d544b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.42;
}

.testimonial-author {
  margin: 1.4rem 0 0;
  color: var(--brown);
  font-weight: 900;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
}

.carousel-button,
.carousel-dot {
  color: var(--sage-dark);
  font-weight: 900;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.carousel-button {
  min-height: 42px;
  padding: 0.5rem 0.85rem;
}

.carousel-button:hover,
.carousel-button:focus-visible,
.carousel-dot.is-active {
  color: var(--cream);
  background: var(--sage);
}

.carousel-dots {
  display: flex;
  gap: 0.35rem;
}

.carousel-dot {
  width: 14px;
  height: 14px;
  padding: 0;
}

.social-section {
  padding-top: 6.5rem;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.social-links a {
  display: grid;
  min-height: 150px;
  padding: 1rem;
  color: var(--cream);
  text-decoration: none;
  background: var(--sage-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.social-links a:nth-child(2) {
  background: var(--clay);
}

.social-links a:nth-child(3) {
  background: var(--moss);
}

.social-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1.7rem;
  place-items: center;
  color: var(--brown);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 900;
}

.social-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.social-icon .icon-cutout {
  fill: var(--gold);
}

.social-links strong,
.social-links small {
  display: block;
}

.social-links strong {
  align-self: end;
  font-size: 1.2rem;
}

.social-links small {
  color: rgba(255, 253, 247, 0.76);
}

.final-cta {
  padding-top: 4rem;
}

.final-cta-inner {
  padding: 3rem;
  color: rgba(255, 253, 247, 0.82);
  background:
    linear-gradient(90deg, rgba(36, 56, 31, 0.96), rgba(83, 99, 49, 0.88)),
    url("../images/selection-cover.png") center / cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.final-cta-inner h2 {
  color: var(--cream);
}

.final-cta-inner p {
  max-width: 680px;
}

address {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-style: normal;
}

address a,
address span {
  color: var(--cream);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: #675f54;
  border-top: 1px solid var(--line);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 2px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(36, 56, 31, 0.12);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--sage-dark);
  font-weight: 800;
}

@media (max-width: 1060px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .credential-grid,
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-grid,
  .section-grid-balanced {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .visual-stack {
    min-height: 520px;
  }
}

@media (max-width: 820px) {
  .intro-band {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 0.7rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 0.85rem;
  }

  .hero {
    min-height: 640px;
    background-position: 60% center;
  }

  .hero-content {
    padding-top: 5.5rem;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof div + div {
    border-top: 1px solid rgba(255, 253, 247, 0.22);
    border-left: 0;
  }

  .gallery-strip,
  .social-links {
    grid-template-columns: 1fr;
  }

  .gallery-strip img:nth-child(3) {
    aspect-ratio: 1 / 1;
  }

  .site-footer {
    display: block;
  }

  .footer-links {
    margin-top: 1rem;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .section {
    padding: 4rem 0;
  }

  .intro-band,
  .credentials,
  .gallery-band,
  .testimonials {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero {
    min-height: 640px;
  }

  .hero-lead,
  .intro-copy,
  .spotlight-copy p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .credential-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .visual-stack {
    min-height: auto;
  }

  .visual-main,
  .visual-small {
    position: static;
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .testimonial-track {
    min-height: 480px;
  }

  .testimonial {
    padding: 1.25rem;
  }

  blockquote {
    font-size: 1.08rem;
  }

  .carousel-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .carousel-dots {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: center;
  }

  .final-cta-inner {
    padding: 1.5rem;
  }
}
