/* Home page (src/Views/pages/home.php; also used by the prototype public/home.html) */
/* Ticker (sits above the overlay header) */
.site-header--overlay { top: 36px; }
.site-header--overlay.is-scrolled { top: 0; }

.ticker { position: absolute; inset: 0 0 auto 0; z-index: 11; height: 36px; overflow: hidden; background: var(--deep-green); color: var(--white); display: flex; align-items: center; }
.ticker__track { display: flex; flex: none; gap: var(--space-5); padding-right: var(--space-5); white-space: nowrap; animation: ticker 40s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }


/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 86% 50%; }
@media (min-width: 701px) { .hero__img { object-position: 72% 42%; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(43,64,51,.5), rgba(43,64,51,0) 38%), linear-gradient(to right, rgba(43,64,51,.22), rgba(43,64,51,0) 45%); }
.hero__content { position: relative; z-index: 1; padding-bottom: var(--space-5); }
.hero .label { margin-bottom: var(--space-3); }
.hero__content > * { max-width: min(100%, 560px); }
.hero h1 { font-size: clamp(48px, 7vw, 104px); line-height: 1; margin-bottom: var(--space-3); }
.hero h1 em { color: var(--sand); }
.hero__tagline { margin-bottom: var(--space-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.btn--outline { background: transparent; color: var(--white); border: 1px solid currentColor; }
.btn--outline:hover { background: var(--white); color: var(--deep-green); }
.btn--outline-dark { background: transparent; color: var(--deep-green); border: 1px solid currentColor; }
.btn--outline-dark:hover { background: var(--deep-green); color: var(--white); }

@media (max-width: 700px) {
  /* Photo on top (so the text never covers Cila), text at the bottom on deep green */
  .hero { align-items: flex-end; background: var(--deep-green); }
  .hero__img { bottom: auto; height: 64svh; }
  .hero::after { background: linear-gradient(to bottom, rgba(43,64,51,.4), rgba(43,64,51,0) 28%, rgba(43,64,51,0) 42%, var(--deep-green) 64svh); }
  .hero__content { padding-top: 0; padding-bottom: var(--space-4); }
  .hero__content > * { max-width: 100%; }
}

/* Intro: photos, no rounded frames; highlighted statement */
.intro { display: grid; gap: var(--space-5); align-items: start; }
.intro__tall, .intro__wide { margin: 0; overflow: hidden; }
.intro__tall { aspect-ratio: 3 / 4; }
.intro__wide { aspect-ratio: 3 / 2; margin-top: var(--space-5); }
.intro img { width: 100%; height: 100%; object-fit: cover; }
.intro__tall img { object-position: 62% 45%; }
.intro__wide img { object-position: 55% 45%; }
.intro__quote { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; margin-bottom: var(--space-4); }
.intro__text { padding-left: var(--space-3); border-left: 1px solid rgba(43,64,51,.25); }
.intro__text p { max-width: 46ch; }
@media (min-width: 900px) {
  .intro { grid-template-columns: 5fr 6fr; gap: var(--space-6); }
  .intro__text { padding-left: var(--space-4); }
}

/* Manifesto band (ideas from the identity presentation: sun-ray mark, arc band, mixed type, star ornament) */
.spark { display: block; width: 26px; height: 26px; margin: 0 auto var(--space-3); background: currentColor; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.manifesto { position: relative; overflow: hidden; background: var(--sage-green); color: var(--white); text-align: center; }
.manifesto::before { content: ""; position: absolute; right: -6%; bottom: -12%; width: min(60vw, 560px); aspect-ratio: 1010 / 1080; background: url('../img/elements/mark-white.svg') center / contain no-repeat; opacity: .12; pointer-events: none; }
.manifesto::after { content: ""; position: absolute; left: -120px; top: -90px; width: 380px; height: 190px; border: 34px solid var(--sand); border-bottom: 0; border-radius: 999px 999px 0 0; opacity: .5; pointer-events: none; }
.manifesto .container { position: relative; z-index: 1; }
.manifesto .spark { color: var(--sand); }
.manifesto h2 { font-size: clamp(34px, 6vw, 72px); line-height: 1.1; max-width: 18ch; margin: 0 auto var(--space-5); }
.manifesto em { color: var(--sand); }
.manifesto__elements { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-3); max-width: 1000px; margin: 0 auto; }
.manifesto__elements li { margin: 0; }
.manifesto__elements img { width: 80px; height: auto; margin: 0 auto var(--space-2); filter: invert(1); }
.manifesto__elements strong { display: block; font: 400 clamp(30px, 6vw, 52px)/1 var(--font-display); margin-bottom: var(--space-1); }
.manifesto__elements li:nth-child(even) strong { font-family: var(--font-body); font-weight: 500; font-size: clamp(26px, 5vw, 44px); letter-spacing: .02em; color: var(--sand); }
.manifesto__elements span { display: block; opacity: .85; font-size: 15px; line-height: 24px; }
@media (min-width: 900px) {
  .manifesto__elements { grid-template-columns: repeat(4, 1fr); }
  .manifesto__elements li:nth-child(2), .manifesto__elements li:nth-child(4) { margin-top: var(--space-4); }
  .manifesto__elements strong { font-size: clamp(30px, 3.4vw, 48px); }
  .manifesto__elements li:nth-child(even) strong { font-size: clamp(26px, 2.9vw, 40px); }
}

/* Star ornament in other sections */
.intro .spark, .along__head .spark { margin: 0 0 var(--space-3); color: var(--terracotta); }

/* Step in cards */
.stepin__head { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.stepin__head p { max-width: 52ch; margin: 0; }
.stepin .spark { margin: 0 0 var(--space-3); color: var(--terracotta); }
@media (min-width: 900px) { .stepin__head { grid-template-columns: 1fr 1fr; align-items: end; } .stepin__head h2 { margin: 0; } }
.cards { list-style: none; margin: 0; display: flex; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) var(--space-3); scrollbar-width: thin; }
.card { position: relative; flex: 0 0 min(72vw, 300px); aspect-ratio: 3 / 4.4; border-radius: var(--radius-arch); overflow: hidden; scroll-snap-align: start; color: var(--white); text-decoration: none; }
.card a { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.card a:focus-visible { outline-offset: -4px; outline-color: var(--white); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover img { transform: scale(1.05); }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(43,64,51,.8), rgba(43,64,51,0) 55%); }
.card__body { display: block; position: absolute; z-index: 1; inset: auto 0 0 0; padding: var(--space-4) var(--space-3); text-align: center; }
.card__title { display: block; font: 400 28px/1.1 var(--font-display); }
@media (min-width: 1100px) { .cards { overflow: visible; justify-content: center; padding-inline: var(--gutter); } .card { flex: 1 1 0; max-width: 280px; } .card:nth-child(even) { margin-top: var(--space-5); } }
.stepin { position: relative; overflow: hidden; }
.stepin::before { content: ""; position: absolute; right: -140px; bottom: 90px; width: 520px; height: 260px; border: 44px solid var(--paper); border-bottom: 0; border-radius: 999px 999px 0 0; opacity: .7; pointer-events: none; }
.stepin > * { position: relative; }
.stepin__cta { text-align: center; margin-top: var(--space-5); }

/* Come along: carousel (Instagram feed) */
.along__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-3); margin-bottom: var(--space-4); }
.along__head h2 { margin-bottom: var(--space-2); }
.along__head p { margin: 0; max-width: 44ch; }
.carousel { position: relative; }
.carousel__track { display: flex; gap: var(--space-2); overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { flex: 0 0 min(70vw, 300px); aspect-ratio: 4 / 5; scroll-snap-align: start; overflow: hidden; display: block; }
.carousel__item { display: grid; place-items: center; }
.carousel__item img { width: 38%; height: auto; opacity: .4; transition: transform .6s; }
.carousel__item:hover img { transform: scale(1.06); }
.carousel__item--photo { background: var(--sand); }
.carousel__item--photo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.carousel__item--sand { background: var(--sand); }
.carousel__item--sage { background: var(--sage-green); }
.carousel__item--terracotta { background: var(--terracotta); }
.carousel__item--sky { background: var(--sky-blue); }
.carousel__item--deep { background: var(--deep-green); }
.carousel__nav { display: flex; gap: var(--space-1); margin-top: var(--space-3); padding-inline: var(--gutter); }
.carousel__nav button { width: 48px; height: 48px; border-radius: var(--radius-pill); border: 1px solid var(--deep-green); background: transparent; color: var(--deep-green); font-size: 18px; cursor: pointer; }
.carousel__nav button:hover { background: var(--deep-green); color: var(--white); }
@media (min-width: 900px) { .carousel__item { flex-basis: 320px; } .carousel__nav { justify-content: flex-end; } }

/* Connect band before footer */
.connect { position: relative; color: var(--white); text-align: center; overflow: hidden; }
.connect > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.connect::after { content: ""; position: absolute; inset: 0; background: rgba(159, 103, 74, .9); background: color-mix(in srgb, var(--terracotta-deep) 90%, transparent); }
.connect::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; width: min(80vw, 640px); aspect-ratio: 1010 / 1080; transform: translate(-50%, -50%); background: url('../img/elements/mark-white.svg') center / contain no-repeat; opacity: .12; pointer-events: none; }
.connect .container { position: relative; z-index: 2; }
.connect h2 em { color: var(--paper); }
.connect h2 { font-size: clamp(40px, 7vw, 88px); line-height: 1; max-width: 12ch; margin-inline: auto; }
.connect p { max-width: 40ch; margin: 0 auto var(--space-4); }

