/* Home page — editorial layer on top of pi.css. Same tokens; display type uses Vazirmatn Light. */

.home { --display: clamp(34px, 5.6vw, 84px); --display-2: clamp(26px, 3.4vw, 52px); }

/* ---------- Overlay header ---------- */
.home .site-header { position: fixed; inset-inline: 0; top: 0; background: transparent; border-bottom-color: transparent; transition: background .3s ease, border-color .3s ease; }
.home .site-header.is-solid { background: rgba(255,255,255,.96); border-bottom-color: var(--color-line); }
@supports (backdrop-filter: blur(8px)) { .home .site-header.is-solid { background: rgba(255,255,255,.82); backdrop-filter: blur(12px); } }

/* ---------- Hero: framed film ----------
   The film is 1280×720, so it is shown in a framed 4:5 window at roughly its native size instead of
   full-bleed; it stays crisp on normal and retina screens. */
.home .site-header { position: sticky; background: rgba(255,255,255,.96); border-bottom-color: var(--color-line); }
.hx { padding-block: clamp(24px, 4vw, 56px) clamp(48px, 7vw, 96px); }
.hx__grid { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .hx__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 112px); min-height: min(calc(100svh - 160px), 760px); } }
.hx__copy { display: grid; gap: var(--s3); align-content: center; }
.hx h1 { font-size: clamp(32px, 4.2vw, 62px); line-height: 1.4; font-weight: 300; letter-spacing: -0.01em; }
.hx h1 b { font-weight: 700; }
.hx__lede { max-width: 40ch; color: var(--color-ink-2); font-size: var(--text-lg); font-weight: 300; line-height: 1.8; }
.hx__cta { display: flex; flex-wrap: wrap; gap: var(--s1); }
.hx__cta .btn { min-width: 160px; }
.hx__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--color-line); padding-top: var(--s2); margin-top: var(--s1); font-size: var(--text-sm); color: var(--color-ink-2); }
.hx__facts li { display: flex; align-items: center; gap: 8px; }
.hx__facts li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--color-ink); }
.hx__film { margin: 0; display: grid; gap: var(--s2); justify-self: center; width: min(100%, 520px); }
.hx__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #F3F2EF; }
.hx__frame img, .hx__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 2% 50%; }
.hx__frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(17,17,17,.06); pointer-events: none; }
@media (max-width: 899px) { .hx__film { order: -1; } .hx__lede { font-size: var(--text-base); } }

/* caption under the film, synced to its timeline */
.h-cap { display: grid; gap: 10px; }
.h-cap__text { font-size: var(--text-sm); min-height: 1.8em; transition: opacity .4s ease; }
.h-cap__text.is-fading { opacity: 0; }
.h-cap__bar { height: 1px; background: var(--color-line); position: relative; overflow: hidden; }
.h-cap__bar i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--color-ink); }
.h-cap__meta { display: flex; justify-content: space-between; gap: var(--s2); font-size: var(--text-xs); color: var(--color-ink-3); }
.h-cap__meta button { background: none; border: 0; padding: 0; font: inherit; color: var(--color-ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Manifesto ---------- */
.h-manifesto { padding-block: clamp(64px, 9vw, 140px); }
.h-manifesto p.big { font-size: clamp(24px, 3vw, 44px); line-height: 1.75; font-weight: 300; max-width: 30ch; margin-top: var(--s3); }
.h-manifesto p.big .muted { color: var(--color-ink-3); }
.h-inline-img { display: inline-block; width: 1.6em; height: 1em; vertical-align: -0.12em; margin-inline: 0.15em; overflow: hidden; background: var(--color-surface); }
.h-inline-img img { width: 100%; height: 100%; object-fit: cover; }
.h-manifesto__foot { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-top: var(--s5); }

/* ---------- INCI ticker ---------- */
.h-ticker { border-block: 1px solid var(--color-line); overflow: hidden; padding-block: 18px; }
.h-ticker__track { display: flex; gap: var(--s5); width: max-content; animation: hTicker 60s linear infinite; direction: ltr; }
.h-ticker span { font-family: var(--font-en); font-size: var(--text-sm); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-ink-2); white-space: nowrap; }
.h-ticker span::after { content: "·"; margin-left: var(--s5); color: var(--color-ink-3); }
@keyframes hTicker { to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */
.h-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.h-head h2 { font-size: var(--display-2); font-weight: 300; line-height: 1.3; }
.h-head .caps { margin-bottom: 8px; }
.h-section { padding-block: clamp(64px, 9vw, 128px); }

/* ---------- Rail ---------- */
.h-rail-nav { display: none; gap: var(--s1); }
.h-rail-nav button { width: 48px; height: 48px; border: 1px solid var(--color-ink); background: var(--color-bg); border-radius: var(--radius); cursor: pointer; font-size: 18px; }
.h-rail-nav button:hover { background: var(--color-ink); color: var(--color-bg); }
@media (min-width: 900px) { .h-rail-nav { display: flex; } }
.h-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); margin: 0; list-style: none; }
.h-rail::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .h-rail { grid-auto-columns: 42%; } }
@media (min-width: 1024px) { .h-rail { grid-auto-columns: calc((min(100vw, var(--max)) - 2 * var(--gutter) - 3 * var(--s3)) / 3.4); gap: var(--s3); } }
.h-card { scroll-snap-align: start; }
.h-card a { display: grid; gap: 6px; text-decoration: none; }
.h-card__img { position: relative; aspect-ratio: 4 / 5; background: var(--color-surface); overflow: hidden; }
.h-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.h-card__img img + img { opacity: 0; }
.h-card a:hover .h-card__img img:first-child { transform: scale(1.03); }
.h-card a:hover .h-card__img img + img { opacity: 1; }
.h-card__no { position: absolute; top: 14px; inset-inline-start: 14px; font-family: var(--font-en); font-size: var(--text-xs); letter-spacing: var(--tracking-caps); }
.h-card__row { display: flex; justify-content: space-between; gap: var(--s2); align-items: baseline; margin-top: 10px; }
.h-card__name { font-weight: 500; }
.h-card__price { font-size: var(--text-sm); color: var(--color-ink-2); white-space: nowrap; }
.h-card__meta { font-size: var(--text-xs); color: var(--color-ink-2); display: flex; align-items: center; gap: 6px; }

/* ---------- Concern index ---------- */
.h-index { list-style: none; border-top: 1px solid var(--color-ink); }
.h-index a { display: grid; grid-template-columns: 48px 1fr auto; align-items: baseline; gap: var(--s2); padding-block: 22px; border-bottom: 1px solid var(--color-line); text-decoration: none; transition: padding .3s ease, background .3s ease; }
.h-index .n { font-family: var(--font-en); font-size: var(--text-xs); color: var(--color-ink-3); letter-spacing: var(--tracking-caps); }
.h-index .t { font-size: clamp(22px, 2.6vw, 38px); font-weight: 300; line-height: 1.3; }
.h-index .en { font-size: var(--text-xs); color: var(--color-ink-2); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.h-index .go { grid-column: 3; grid-row: 1; font-size: 20px; transition: transform .3s ease; }
@media (min-width: 900px) {
  .h-index a { grid-template-columns: 64px 1fr 260px 40px; }
  .h-index .en { grid-column: 3; grid-row: 1; }
  .h-index .go { grid-column: 4; }
  .h-index a:hover { padding-inline: var(--s2); background: var(--color-surface); }
  .h-index a:hover .go { transform: translateX(-8px); }
}
@media (max-width: 899px) { .h-index .en { grid-column: 2; } }

/* ---------- Skin types ---------- */
.h-types { display: grid; gap: var(--s2); list-style: none; }
@media (min-width: 900px) { .h-types { grid-template-columns: repeat(3, 1fr); gap: var(--s3); } }
.h-type a { display: grid; gap: var(--s2); align-content: start; min-height: 360px; padding: var(--s4) var(--s3); background: var(--color-surface); text-decoration: none; position: relative; transition: background .3s ease; }
.h-type a::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--fn); }
.h-type a:hover { background: #EDECEA; }
.h-type .t { font-size: clamp(30px, 3.4vw, 48px); font-weight: 300; line-height: 1.2; }
.h-type ol { list-style: none; display: grid; gap: 6px; font-size: var(--text-sm); color: var(--color-ink-2); counter-reset: s; margin-top: auto; }
.h-type li { counter-increment: s; display: flex; gap: 12px; }
.h-type li::before { content: "0" counter(s); font-family: var(--font-en); font-size: var(--text-xs); color: var(--color-ink-3); padding-top: 3px; }
.h-type .more { font-size: var(--text-sm); border-bottom: 1px solid var(--color-ink); justify-self: start; padding-bottom: 2px; margin-top: var(--s2); }

/* ---------- Feature (full bleed split) ---------- */
.h-feature { display: grid; background: var(--color-surface); }
@media (min-width: 900px) { .h-feature { grid-template-columns: 1fr 1fr; min-height: 86vh; } }
.h-feature__img { min-height: 60vh; position: relative; overflow: hidden; }
.h-feature__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-feature__copy { display: grid; align-content: center; gap: var(--s3); padding: var(--s5) var(--gutter); max-width: 620px; }
.h-feature__copy h2 { font-size: var(--display-2); font-weight: 300; line-height: 1.3; }
.h-shades { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.h-shades li { font-size: var(--text-xs); padding: 6px 12px; border: 1px solid var(--color-line); background: var(--color-bg); }

/* ---------- Proof ---------- */
.h-proof { list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--color-ink); }
@media (min-width: 900px) { .h-proof { grid-template-columns: repeat(4, 1fr); } }
.h-proof li { display: grid; gap: 8px; align-content: start; padding: var(--s4) var(--s2) var(--s4) 0; border-bottom: 1px solid var(--color-line); }
.h-proof li:nth-child(even) { padding-inline-start: var(--s2); border-inline-start: 1px solid var(--color-line); }
@media (min-width: 900px) { .h-proof li { border-bottom: 0; padding-inline: var(--s3); border-inline-start: 1px solid var(--color-line); } .h-proof li:first-child { border-inline-start: 0; padding-inline-start: 0; } }
.h-proof .num { font-size: clamp(44px, 5vw, 72px); font-weight: 300; line-height: 1.1; }
.h-proof .num.en { font-family: var(--font-en); letter-spacing: 0.04em; }
.h-proof b { font-weight: 500; }
.h-proof span:last-child { font-size: var(--text-sm); color: var(--color-ink-2); }

/* ---------- Journal ---------- */
.h-journal { list-style: none; display: grid; gap: var(--s4); }
@media (min-width: 900px) { .h-journal { grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s3); } }
.h-journal a { display: grid; gap: 10px; text-decoration: none; }
.h-journal .cover { aspect-ratio: 4 / 3; background: var(--color-surface); display: grid; place-items: center; overflow: hidden; }
.h-journal li:first-child .cover { aspect-ratio: 4 / 3.4; }
.h-journal .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.h-journal a:hover .cover img { transform: scale(1.03); }
.h-journal .cover .en { font-size: clamp(28px, 3vw, 44px); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-ink); }
.h-journal b { font-size: var(--text-lg); font-weight: 500; line-height: 1.6; }
.h-journal a:hover b { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.h-journal .meta { font-size: var(--text-xs); color: var(--color-ink-2); }

/* ---------- Store ---------- */
.h-store { display: grid; gap: var(--s4); padding-block: var(--s5); border-top: 1px solid var(--color-ink); }
@media (min-width: 900px) { .h-store { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.h-store h2 { font-size: var(--display-2); font-weight: 300; line-height: 1.3; }
.h-store div { display: grid; gap: 6px; align-content: start; font-size: var(--text-sm); }
.h-store div b { font-weight: 500; font-size: var(--text-base); }
.h-store div span { color: var(--color-ink-2); }

/* ---------- Footer wordmark ---------- */
.home .site-footer { margin-top: 0; }
.h-wordmark { font-family: var(--font-en); font-size: clamp(72px, 19vw, 300px); line-height: .8; letter-spacing: -0.02em; color: #FFFFFF; direction: ltr; text-align: left; margin-top: var(--s5); user-select: none; white-space: nowrap; }
.h-wordmark b { font-weight: 700; }
.h-wordmark span { font-weight: 400; color: #6E6E6E; }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .h-ticker__track, .h-scroll::after { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 899px) {
  .h-index a { padding-block: 14px; row-gap: 2px; }
}

/* ---------- Promise (replaces the inline-image manifesto) ---------- */
.h-promise { display: grid; gap: var(--s5); padding-block: clamp(72px, 10vw, 150px); align-items: center; }
@media (min-width: 1024px) { .h-promise { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 120px); } }
.h-promise__copy { display: grid; gap: var(--s3); align-content: center; }
.h-promise h2 { font-size: clamp(34px, 4.6vw, 68px); font-weight: 300; line-height: 1.25; letter-spacing: -0.01em; }
.h-promise__lede { font-size: var(--text-lg); font-weight: 300; color: var(--color-ink-2); max-width: 40ch; line-height: 1.8; }
.h-promise__list { list-style: none; border-top: 1px solid var(--color-ink); margin-top: var(--s2); }
.h-promise__list li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s2); padding-block: var(--s3); border-bottom: 1px solid var(--color-line); }
.h-promise__list .n { font-size: var(--text-sm); color: var(--color-ink-3); letter-spacing: var(--tracking-caps); padding-top: 4px; }
.h-promise__list div { display: grid; gap: 4px; }
.h-promise__list b { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; }
.h-promise__list div span { color: var(--color-ink-2); font-size: var(--text-sm); }
.h-promise__links { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }
.h-promise__media { position: relative; aspect-ratio: 4 / 5; background: #F3F2EF; overflow: hidden; }
.h-promise__media img { width: 100%; height: 100%; object-fit: cover; }
.h-promise__media figcaption { position: absolute; bottom: var(--s2); inset-inline-start: var(--s2); background: rgba(255,255,255,.9); padding: 6px 10px; }
.home .eyebrow { display: flex; align-items: center; gap: 12px; }
.home .eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--color-ink); flex: none; }
/* Feature: the whole block (photo + title) opens the product page; no separate button */
.h-feature__link { display: grid; grid-column: 1 / -1; color: inherit; text-decoration: none; }
@media (min-width: 900px) { .h-feature__link { grid-template-columns: 1fr 1fr; min-height: 86vh; } }
.h-feature:has(.h-feature__link:hover) .h-feature__img img { transform: scale(1.03); }
.h-feature__img img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.h-feature:has(.h-feature__link:hover) h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 10px; }
.h-feature__price { font-size: var(--text-sm); display: flex; gap: 10px; align-items: center; }
.h-feature__link:focus-visible .h-feature__copy { outline: 1px solid var(--color-ink); outline-offset: 8px; }
/* hero frame tweaks: hide the source's dark edge rows, keep jar + honeycomb in the crop, square on phones */
.hx__frame img, .hx__frame video { object-position: 14% 50%; transform: scale(1.025); }
@media (max-width: 899px) { .hx__frame { aspect-ratio: 1 / 1; } .hx__frame img, .hx__frame video { object-position: 12% 50%; } }


/* ---------- Story hero ---------- */
.hx__copy { gap: var(--s3); }
.hx__brand { font-size: var(--text-sm); font-weight: 400; color: var(--color-ink-2); line-height: 1.8; padding-bottom: var(--s2); border-bottom: 1px solid var(--color-line); max-width: 46ch; }
.hx__brand b { color: var(--color-ink); font-weight: 700; }
.hx__title { display: block; font-size: clamp(36px, 4.8vw, 70px); font-weight: 300; line-height: 1.3; letter-spacing: -0.015em; text-decoration: none; color: var(--color-ink); }
.hx__title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 12px; }
.hx__text { font-size: clamp(17px, 1.5vw, 20px); font-weight: 300; line-height: 2; color: var(--color-ink-2); max-width: 44ch; }
.hx__product { display: inline-flex; align-items: center; gap: 14px; justify-self: start; padding: 14px 0; text-decoration: none; border-bottom: 1px solid var(--color-ink); }
.hx__product .caps { color: var(--color-ink-2); }
.hx__product #hs-name { font-weight: 500; }
.hx__product .go { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.hx__product:hover .go { transform: translateX(-6px); }
.hx__frame.is-photo img { object-position: center; transform: none; }
.hx h1.hx__brand { font-size: var(--text-sm); font-weight: 400; line-height: 1.8; letter-spacing: 0; }
.h-cap[hidden] { display: none; }

/* ---------- Hero, option A: full-height media bleeding to the page edge (user's choice) ---------- */
.hx--bleed { display: grid; padding: 0; border-bottom: 1px solid var(--color-line); }
.hx__media { position: relative; aspect-ratio: 4 / 5; background: #F3F2EF; overflow: hidden; }
.hx--bleed .hx__frame { position: absolute; inset: 0; aspect-ratio: auto; display: block; }
.hx--bleed .hx__frame::after { content: none; }
.hx--bleed .hx__frame img, .hx--bleed .hx__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 8% 50%; transform: scale(1.02); }
.hx--bleed .hx__frame.is-photo img { object-position: center; transform: none; }
.hx--bleed .hx__copy { padding: var(--s4) var(--gutter) var(--s5); }
.hx--bleed .h-cap { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: 14px var(--gutter) 16px; background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hx--bleed .h-cap[hidden] { display: none; }
@media (min-width: 900px) {
  .hx--bleed { grid-template-columns: 1fr 1fr; height: min(calc(100svh - 64px), 820px); min-height: 600px; }
  .hx__media { order: 2; aspect-ratio: auto; height: 100%; }
  .hx--bleed .hx__copy {
    align-content: center; padding-block: var(--s5);
    padding-inline-start: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    padding-inline-end: clamp(40px, 5vw, 88px);
  }
  .hx--bleed .h-cap { padding-inline: 32px; }
}

/* ---------- Hero: A + B merged — full-height grey mat bleeding to the edge, with a sharp 3:4 catalogue print inside ---------- */
.hx--bleed .hx__media { background: #F4F4F3; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 40px 24px 32px; aspect-ratio: auto; }
.hx--bleed .hx__frame { position: relative; inset: auto; width: min(78vw, 420px); aspect-ratio: 3 / 4; overflow: hidden; background: #ECEBE8; outline: 1px solid rgba(17,17,17,.10); outline-offset: 0; }
.hx--bleed .hx__frame img, .hx--bleed .hx__frame video { object-position: 10% 50%; transform: scale(1.02); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.hx--bleed .hx__frame.is-photo img { object-position: center; transform: none; }
.hx--bleed .hx__frame:hover img, .hx--bleed .hx__frame:hover video { transform: scale(1.04); }
.hx__label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; width: min(78vw, 420px); padding-top: 12px; border-top: 1px solid var(--color-ink); font-size: var(--text-sm); }
.hx__label .caps { color: var(--color-ink); }
.hx__label #hs-name2 { color: var(--color-ink-2); }
.hx--bleed .h-cap { position: static; width: min(78vw, 420px); padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* catalogue rule beside the story text */
.hx--bleed .hx__text { border-inline-start: 1px solid var(--color-ink); padding-inline-start: 20px; }
@media (min-width: 900px) {
  .hx--bleed .hx__media { padding: 56px; }
  .hx--bleed .hx__frame, .hx__label, .hx--bleed .h-cap { width: min(calc((100svh - 64px) * .6), 480px, 34vw); }
}
.hx__label[hidden] { display: none; }
