/* Care that follows the findings (30 Oct): Starlight section after the dark "Beyond the Horizon". Three options, html[data-cf]:
   a  Image tiles   three tall interior images, copy over a soft Void fade at the foot.
   b  Feature       Longevity as the large tile, Regenerative and Anti-ageing stacked beside it.
   c  Rows          typographic rows (big title | copy | image) with the image opening as it enters the view.
   Gold stays on Void: on Starlight the type and hairlines are Void; tags over images are frosted Starlight. */

.cf { position: relative; z-index: 6; padding: clamp(96px, 11vw, 160px) var(--m); background: var(--star); color: var(--void); }
.cf-wrap { max-width: 1240px; margin: 0 auto; }
.cf h2, .cf h3, .cf p, .cf ul, .cf figure { margin: 0; }
.cf ul { list-style: none; padding: 0; }
.cf-h:focus { outline: none; }
.cf-h { font: 300 clamp(44px, 5.6vw, 84px)/.98 var(--f-display); letter-spacing: -.045em; text-wrap: balance; }
.cf-intro { font: 400 18px/1.6 var(--f-text); color: rgba(14, 14, 15, .62); text-wrap: pretty; }
.cf-fig { position: relative; overflow: hidden; }
.cf-fig img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); } /* hides the thin dark edge some renders carry */
.cf-t { font: 300 clamp(28px, 2.6vw, 38px)/1.08 var(--f-display); letter-spacing: -.03em; }
.cf-d { margin-top: 10px !important; font: 400 16px/1.55 var(--f-text); }
.cf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px !important; }
.cf-tags li { padding: 7px 12px; border-radius: 999px; font: 400 13px/1.2 var(--f-text); }
.cf-note { margin-top: clamp(40px, 5vw, 64px) !important; text-align: center; font: 400 15px/1.5 var(--f-text); color: rgba(14, 14, 15, .55); }

html.js .cf [data-cf] { opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * 100ms), transform 1.1s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * 100ms); }
html.js .cf [data-cf].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .cf [data-cf] { opacity: 1; transform: none; transition: none; } }

/* ---------- a: Image tiles ---------- */
html[data-cf="a"] .cf-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
html[data-cf="a"] .cf-intro { max-width: 26em; }
html[data-cf="a"] .cf-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
html[data-cf="a"] .cf-tile { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; color: var(--star); background: var(--void); }
html[data-cf="a"] .cf-fig { position: absolute; inset: 0; }
html[data-cf="a"] .cf-fig img { transition: transform 1.4s cubic-bezier(.22, 1, .36, 1); }
html[data-cf="a"] .cf-tile:hover .cf-fig img { transform: scale(1.07); }
html[data-cf="a"] .cf-fig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 14, 15, .86) 0%, rgba(14, 14, 15, .5) 32%, rgba(14, 14, 15, 0) 62%); }
html[data-cf="a"] .cf-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 28px; }
html[data-cf="a"] .cf-d { color: rgba(233, 228, 218, .78); max-width: 22em; }
html[data-cf="a"] .cf-tags li { background: rgba(233, 228, 218, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--star); }

/* ---------- b: Feature ---------- */
html[data-cf="b"] .cf-head { max-width: 720px; margin: 0 auto; text-align: center; }
html[data-cf="b"] .cf-intro { margin-top: 20px; }
html[data-cf="b"] .cf-list { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
html[data-cf="b"] .cf-tile { display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: rgba(255, 255, 255, .45); }
html[data-cf="b"] .cf-longevity { grid-row: 1 / 3; }
html[data-cf="b"] .cf-longevity .cf-fig { flex: 1; min-height: 360px; }
html[data-cf="b"] .cf-regenerative, html[data-cf="b"] .cf-anti-ageing { flex-direction: row; }
html[data-cf="b"] .cf-regenerative .cf-fig, html[data-cf="b"] .cf-anti-ageing .cf-fig { flex: 0 0 44%; aspect-ratio: 4 / 5; }
html[data-cf="b"] .cf-body { padding: 32px 32px 36px; }
html[data-cf="b"] .cf-regenerative .cf-body, html[data-cf="b"] .cf-anti-ageing .cf-body { display: flex; flex-direction: column; justify-content: flex-end; }
html[data-cf="b"] .cf-d { color: rgba(14, 14, 15, .66); }
html[data-cf="b"] .cf-tags li { border: 1px solid rgba(14, 14, 15, .14); color: rgba(14, 14, 15, .78); }

/* ---------- c: Rows ---------- */
html[data-cf="c"] .cf-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
html[data-cf="c"] .cf-intro { max-width: 26em; }
html[data-cf="c"] .cf-list { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid rgba(14, 14, 15, .16); }
html[data-cf="c"] .cf-tile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  align-items: start; padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid rgba(14, 14, 15, .16); }
html[data-cf="c"] .cf-body { display: contents; }
html[data-cf="c"] .cf-t { grid-column: 1; grid-row: 1 / 3; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.045em; }
html[data-cf="c"] .cf-d, html[data-cf="c"] .cf-tags { grid-column: 2; }
html[data-cf="c"] .cf-d { grid-row: 1; padding-top: .6em; margin-top: 0 !important; font-size: 17px; color: rgba(14, 14, 15, .66); }
html[data-cf="c"] .cf-tags { grid-row: 2; margin-top: 4px !important; }
html[data-cf="c"] .cf-tags li { border: 1px solid rgba(14, 14, 15, .14); color: rgba(14, 14, 15, .78); }
html[data-cf="c"] .cf-fig { grid-column: 3; grid-row: 1 / 3; aspect-ratio: 4 / 3; border-radius: 20px;
  clip-path: inset(12% 12% 12% 12% round 20px); transition: clip-path 1.2s cubic-bezier(.22, 1, .36, 1) .15s; }
html[data-cf="c"] .cf-tile.is-in .cf-fig, html:not(.js)[data-cf="c"] .cf-fig { clip-path: inset(0 round 20px); }
@media (prefers-reduced-motion: reduce) { html[data-cf="c"] .cf-fig { clip-path: inset(0 round 20px); transition: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  html[data-cf="a"] .cf-head, html[data-cf="c"] .cf-head { grid-template-columns: 1fr; gap: 20px; }
  html[data-cf="a"] .cf-list { grid-template-columns: 1fr 1fr; }
  html[data-cf="a"] .cf-tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  html[data-cf="b"] .cf-list { grid-template-columns: 1fr; }
  html[data-cf="b"] .cf-longevity { grid-row: auto; }
  html[data-cf="c"] .cf-tile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  html[data-cf="c"] .cf-t { grid-column: 1 / -1; }
  html[data-cf="c"] .cf-d { grid-column: 1; grid-row: 2; }
  html[data-cf="c"] .cf-tags { grid-column: 1; grid-row: 3; }
  html[data-cf="c"] .cf-fig { grid-column: 2; grid-row: 2 / 4; }
}

/* ---------- phone ---------- */
@media (max-width: 759px) {
  .cf { padding: 88px 16px 96px; }
  html[data-cf="a"] .cf-list { grid-template-columns: 1fr; gap: 12px; }
  html[data-cf="a"] .cf-tile, html[data-cf="a"] .cf-tile:first-child { aspect-ratio: 4 / 5; border-radius: 24px; }
  html[data-cf="a"] .cf-body { padding: 24px 20px; }
  html[data-cf="b"] .cf-tile { border-radius: 24px; }
  html[data-cf="b"] .cf-longevity .cf-fig { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
  html[data-cf="b"] .cf-regenerative, html[data-cf="b"] .cf-anti-ageing { flex-direction: column; }
  html[data-cf="b"] .cf-regenerative .cf-fig, html[data-cf="b"] .cf-anti-ageing .cf-fig { flex: none; aspect-ratio: 4 / 3; }
  html[data-cf="b"] .cf-body { padding: 24px 20px 28px; }
  html[data-cf="c"] .cf-tile { grid-template-columns: 1fr; gap: 14px; }
  html[data-cf="c"] .cf-t, html[data-cf="c"] .cf-d, html[data-cf="c"] .cf-tags, html[data-cf="c"] .cf-fig { grid-column: 1; grid-row: auto; }
  html[data-cf="c"] .cf-fig { order: -1; aspect-ratio: 16 / 10; }
}
