/* Poiema site pages (About, Pricing): bold, media-first, Higgsfield energy.
   Builds on landing.css tokens (--bg, --volt, --line, --font). Display type is
   Archivo, set heavy and narrow, always uppercase and volt. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --ink: #0b0c0d;
  --card: #141617;
  --card-2: #1b1e1f;
  --soft: #c4c8c0;
  --radius-lg: 28px;
  --radius-md: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

.hf { padding-bottom: clamp(48px, 6vw, 96px); }
.hf > section + section { margin-top: clamp(56px, 8vw, 128px); }

/* Display type */
.hf-display {
  font-family: var(--display);
  font-weight: 860;
  font-stretch: 68%;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .86;
  color: var(--volt);
}
h1.hf-display { font-size: clamp(56px, 7.4vw, 132px); }
h2.hf-display { font-size: clamp(46px, 6.6vw, 108px); }
h3.hf-display { font-size: clamp(28px, 2.6vw, 40px); line-height: .9; }

/* Buttons */
.hf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 14px;
  font-weight: 700; font-size: 17px; line-height: 1; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.hf-btn:active { transform: translateY(1px); }
.hf-btn .ico { width: 18px; height: 18px; }
.hf-btn--volt { background: var(--volt); color: #0c1008; box-shadow: inset 0 -4px 0 rgb(0 0 0 / .16); }
.hf-btn--volt:hover { background: #e4ff6b; }
.hf-btn--white { background: #f4f5ef; color: var(--ink); box-shadow: inset 0 -4px 0 rgb(0 0 0 / .1); }
.hf-btn--white:hover { background: #ffffff; }
.hf-btn--ink { background: var(--ink); color: var(--volt); }
.hf-btn--ink:hover { background: #1d2120; }

/* Hero */
.hf-hero { padding-top: clamp(36px, 5vw, 80px); display: grid; gap: clamp(22px, 2.6vw, 34px); }
.hf-hero h1 { max-width: 19ch; }
.hf-hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.hf-lede { max-width: 56ch; color: var(--soft); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; }
.hf-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Media: an image first (crawlable, lazy), the clip fades in over it once playing. */
.hf-media { position: relative; overflow: hidden; background: var(--card); }
.hf-media > img, .hf-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hf-media > video { opacity: 0; transition: opacity .5s var(--ease); }
.hf-media > video.is-playing { opacity: 1; }
.hf-tag {
  position: absolute; z-index: 1; top: 12px; left: 12px;
  padding: 6px 11px; border-radius: 999px;
  background: rgb(11 12 13 / .66); color: #f3f3ed;
  font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: .01em;
}

/* Gallery: a fixed grid with tall and wide tiles (no CSS columns: Safari mispaints video there). */
.hf-gallery {
  display: grid; gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 12.5vw, 220px);
  grid-auto-flow: dense;
}
.hf-tile { border-radius: var(--radius-md); }
.hf-tile--tall { grid-row: span 2; }
.hf-tile--wide { grid-column: span 2; }
.hf-tile > img, .hf-tile > video { transition: transform .8s var(--ease), opacity .5s var(--ease); }
.hf-tile:hover > img, .hf-tile:hover > video { transform: scale(1.04); }
/* Narrow screens: one swipeable row of tall tiles (a mixed grid leaves holes). */
@media (max-width: 1000px) {
  .hf-gallery {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .hf-gallery::-webkit-scrollbar { display: none; }
  .hf-tile, .hf-tile--tall, .hf-tile--wide { flex: 0 0 clamp(200px, 44vw, 300px); height: clamp(330px, 72vw, 470px); scroll-snap-align: start; }
}

/* Story banner: text left, a fan of stills right. */
.hf-banner {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 85% 30%, #3b403c 0%, #232725 45%, #161918 100%);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: clamp(460px, 44vw, 640px);
}
.hf-banner-copy { padding: clamp(28px, 4vw, 64px); display: grid; align-content: center; gap: 22px; position: relative; z-index: 2; }
.hf-banner-copy .prose-hf { display: grid; gap: 16px; color: var(--soft); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; max-width: 58ch; }
.hf-banner-copy .prose-hf strong { color: #f3f3ed; font-weight: 600; }
.hf-sign { display: inline-flex; align-items: center; gap: 10px; color: #f3f3ed; font-weight: 600; }
.hf-sign::before { content: ''; width: 28px; height: 2px; background: var(--volt); }
.hf-fan { position: relative; min-height: 360px; }
.hf-fan figure {
  position: absolute; margin: 0; width: clamp(150px, 19vw, 280px); aspect-ratio: 4 / 5;
  border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgb(0 0 0 / .45);
  border: 1px solid rgb(255 255 255 / .08);
  transition: transform .7s var(--ease);
}
.hf-fan figure img { width: 100%; height: 100%; object-fit: cover; }
.hf-fan figure:nth-child(1) { left: 2%; top: 18%; transform: rotate(-14deg); }
.hf-fan figure:nth-child(2) { left: 24%; top: 6%; transform: rotate(-5deg); z-index: 2; }
.hf-fan figure:nth-child(3) { left: 46%; top: 14%; transform: rotate(6deg); z-index: 3; }
.hf-fan figure:nth-child(4) { left: 64%; top: 30%; transform: rotate(15deg); z-index: 1; }
.hf-banner:hover .hf-fan figure:nth-child(1) { transform: rotate(-17deg) translateX(-8px); }
.hf-banner:hover .hf-fan figure:nth-child(4) { transform: rotate(18deg) translateX(8px); }
.hf-banner-art { position: relative; min-height: 320px; }
.hf-banner-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hf-banner-art::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #191c1b 0%, rgb(25 28 27 / 0) 38%); }
@media (max-width: 900px) {
  .hf-banner { grid-template-columns: 1fr; }
  .hf-fan { min-height: 300px; margin: 0 clamp(20px, 6vw, 40px) 36px; }
  .hf-fan figure { width: 40%; }
  .hf-banner-art { min-height: 260px; order: -1; }
  .hf-banner-art::before { background: linear-gradient(0deg, #191c1b 0%, rgb(25 28 27 / 0) 45%); }
}

/* Facts */
.hf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 28px; margin: 0; }
.hf-facts div { padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.hf-facts dt { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.hf-facts dd { margin: 0; font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.hf-facts dd a { border-bottom: 1px solid rgb(212 255 58 / .5); }
.hf-facts dd a:hover { color: var(--volt); }

/* Section heads */
.hf-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(22px, 3vw, 40px); }
.hf-head p { max-width: 48ch; color: var(--soft); font-size: clamp(16px, 1.3vw, 19px); }

/* What you can make: one large card, two small, one wide. */
.hf-make { display: grid; gap: 12px; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: repeat(2, clamp(230px, 20vw, 330px)); }
.hf-card { border-radius: var(--radius-lg); color: #f3f3ed; display: block; }
.hf-card:first-child { grid-row: span 2; }
.hf-card:last-child { grid-column: span 2; }
.hf-card::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(11 12 13 / 0) 40%, rgb(11 12 13 / .82) 100%); }
.hf-card-copy { position: absolute; z-index: 2; left: clamp(18px, 2vw, 28px); right: clamp(18px, 2vw, 28px); bottom: clamp(18px, 2vw, 26px); display: grid; gap: 8px; }
.hf-card-copy h3 { color: #f3f3ed; }
.hf-card-copy p { color: var(--soft); max-width: 40ch; font-size: 15px; line-height: 1.45; }
.hf-card-copy .hf-go { display: inline-flex; align-items: center; gap: 8px; color: var(--volt); font-weight: 600; font-size: 14px; }
.hf-card-copy .hf-go .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.hf-card:hover .hf-go .ico { transform: translate(3px, -3px); }
@media (max-width: 900px) {
  .hf-make { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 260px; }
  .hf-card:first-child { grid-row: span 1; grid-column: span 2; }
}
@media (max-width: 560px) { .hf-make { grid-template-columns: 1fr; } .hf-card:first-child, .hf-card:last-child { grid-column: auto; } }

/* Films: hub grid and watch pages. */
.hf-films { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.hf-film-card { aspect-ratio: 9 / 16; border-radius: var(--radius-md); color: #f3f3ed; display: block; }
.hf-film-card::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(11 12 13 / 0) 50%, rgb(11 12 13 / .85) 100%); }
.hf-film-card .hf-display { color: #f3f3ed; font-size: clamp(26px, 2.2vw, 34px); }
.hf-film-card:hover .hf-display { color: var(--volt); }
.hf-film-card > img, .hf-film-card > video { transition: transform .8s var(--ease), opacity .5s var(--ease); }
.hf-film-card:hover > img, .hf-film-card:hover > video { transform: scale(1.04); }
.hf-film-meta { color: var(--soft); font-size: 13px; font-weight: 600; }
.hf-hero .crumbs { margin: 0; }
.hf-hero h1.hf-display--film { font-size: clamp(42px, 5vw, 84px); max-width: 24ch; }
.hf-watch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.hf-player { border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.hf-player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.hf-player--tall { width: min(100%, calc(min(78svh, 900px) * 9 / 16)); aspect-ratio: 9 / 16; }
.hf-player--wide { width: min(100%, 980px); aspect-ratio: 16 / 9; }
.hf-watch-copy { display: grid; gap: 28px; align-content: start; padding-top: 6px; }
.hf-facts--stack { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 24px; }
.hf-facts--stack div { padding-bottom: 14px; }
@media (max-width: 860px) { .hf-watch { grid-template-columns: 1fr; } .hf-player--tall { margin-inline: auto; } }

/* Pricing */
.hf-plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hf-plan {
  border-radius: var(--radius-md); padding: clamp(22px, 2vw, 30px);
  background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; min-height: 420px;
}
.hf-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 17px; }
.hf-plan-badge { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgb(212 255 58 / .14); color: var(--volt); }
.hf-plan-price { font-family: var(--display); font-weight: 860; font-stretch: 68%; font-size: clamp(64px, 6vw, 92px); line-height: .85; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hf-plan-price small { font-family: var(--font); font-stretch: 100%; font-weight: 500; font-size: 16px; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.hf-plan-credits { font-weight: 600; font-size: 17px; }
.hf-plan-desc { color: var(--muted); font-size: 15px; line-height: 1.5; }
.hf-plan .hf-btn { margin-top: auto; width: 100%; }
.hf-plan--trial { border-color: rgb(212 255 58 / .45); }
.hf-plan--featured { background: var(--volt); border-color: var(--volt); color: #0c1008; }
.hf-plan--featured .hf-plan-badge { background: #0c1008; color: var(--volt); }
.hf-plan--featured .hf-plan-price small, .hf-plan--featured .hf-plan-desc { color: #3a4512; }
.hf-plan--featured .hf-btn { background: #0c1008; color: var(--volt); box-shadow: none; }
.hf-plan--featured .hf-btn:hover { background: #1d2120; }
.hf-note { margin-top: 16px; color: var(--muted); font-size: 15px; }
.hf-note a { color: #f3f3ed; border-bottom: 1px solid rgb(212 255 58 / .5); }
.hf-packs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hf-pack { border-radius: var(--radius-md); padding: 22px 24px; background: var(--card-2); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hf-pack strong { font-family: var(--display); font-weight: 860; font-stretch: 68%; font-size: 44px; line-height: .9; color: var(--volt); }
.hf-pack span { color: var(--soft); font-weight: 600; }
.hf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.hf-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; counter-increment: step; }
.hf-steps li::before {
  content: counter(step); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--volt); color: #0c1008; font-weight: 700; font-size: 15px;
}
.hf-steps strong { color: #f3f3ed; font-size: 17px; }
.hf-steps span { color: var(--soft); font-size: 15px; line-height: 1.5; }

/* FAQ */
.hf-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.hf-faq details { border-bottom: 1px solid var(--line); }
.hf-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: clamp(17px, 1.4vw, 20px); font-weight: 600; }
.hf-faq summary::-webkit-details-marker { display: none; }
.hf-faq summary span { color: var(--volt); font-size: 26px; line-height: 1; transition: transform .3s var(--ease); }
.hf-faq details[open] summary span { transform: rotate(45deg); }
.hf-faq details p { padding: 0 0 22px; color: var(--soft); max-width: 62ch; line-height: 1.6; }
@media (max-width: 860px) { .hf-faq { grid-template-columns: 1fr; } }

/* Closing call to action */
.hf-cta { border-radius: var(--radius-lg); background: var(--volt); color: #0c1008; padding: clamp(32px, 5vw, 72px); display: grid; gap: 28px; }
.hf-cta .hf-display { color: #0c1008; font-size: clamp(60px, 10vw, 170px); }
.hf-cta-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.hf-cta-row p { max-width: 44ch; font-size: clamp(16px, 1.3vw, 19px); color: #2e3610; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .hf-tile > img, .hf-tile > video, .hf-fan figure, .hf-media > video, .hf-btn { transition: none; }
}
