/* Home story sections (02 The man → 05 The connection) + cinematic opening.
   Loads after home.css. Keeps the hero layout the owner placed by hand. */

/* ---------- Opening sequence ---------- */
.hero-hi { position: absolute; z-index: 4; top: clamp(84px, 13vh, 140px); right: clamp(18px, 5vw, 56px); margin: 0;
  font-family: "Instrument Serif", Georgia, serif; font-size: clamp(30px, 8vw, 52px); color: #f0e8d6; text-shadow: 0 2px 18px rgba(0,0,0,.6); opacity: 0; pointer-events: none; }
.intro-play .hero-hi { animation: hiInOut 2.6s ease .2s forwards; }
@keyframes hiInOut { 0% { opacity: 0; transform: translateY(10px); } 25%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
/* everything else waits for the greeting, then arrives in order */
.intro-play .hero-mind { animation-delay: 2.6s; }
.intro-play .hm-list { animation-delay: 3s; }
.intro-play .shortcuts.in-hero { opacity: 0; animation: rise 1s cubic-bezier(.2,.7,.2,1) 3.3s forwards; }
.intro-play header { opacity: 0; animation: fadeIn .8s ease 2.2s forwards; }
.intro-play .scroll-cue { opacity: 0; animation: fadeIn .8s ease 3.8s forwards; }
.intro-skip .hero-mind, .intro-skip .hm-list { animation-delay: 0s; animation-duration: .5s; }
@keyframes fadeIn { to { opacity: 1; } }

/* warm light breathing near the sun (no distortion of the artwork) */
.hero-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(40% 30% at 72% 52%, rgba(255,170,80,.22), rgba(255,170,80,0) 70%); animation: breathe 7s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .35; } to { opacity: 1; } }

/* scroll cue */
.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; }
.scroll-cue span { width: 14px; height: 14px; border-right: 2px solid #e9cf8f; border-bottom: 2px solid #e9cf8f; transform: rotate(45deg); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 4px; } }

/* ---------- Shared section look ---------- */
.sec { margin-top: 16px; padding: 22px 20px; border-radius: 20px; border: 1px solid rgba(217,169,68,.22); background: linear-gradient(180deg, rgba(29,29,26,.96), rgba(18,18,16,.98)); color: var(--text); scroll-margin-top: 80px; }
.sec h2 { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(26px, 6vw, 36px); line-height: 1.1; }
.kicker { margin: 0 0 8px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #e9cf8f; font-weight: 600; }
.sub { margin: 6px 0 16px; color: var(--muted); font-size: 14px; }
.lead { margin: 12px 0 0; font-size: 16px; line-height: 1.6; max-width: 620px; }
.lead.dim { color: var(--muted); }
.paths { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.paths button { font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.more-link { display: inline-block; margin-top: 14px; color: #e9cf8f; text-decoration: none; font-weight: 600; font-size: 14px; }
.more-link:hover, .svc-cta:hover { text-decoration: underline; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 02 The man ---------- */
.about .more-me { margin-top: 16px; }
.traits { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.traits li { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(217,169,68,.35); color: var(--text); }
.about .motto { margin: 18px 0 0; text-align: left; font-size: 18px; }

/* ---------- 03 Services ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 760px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc { position: relative; padding: 16px; border-radius: 16px; background: rgba(240,232,214,.04); border: 1px solid rgba(217,169,68,.18); transition: border-color .2s, transform .2s; }
.svc:hover { border-color: rgba(217,169,68,.55); transform: translateY(-2px); }
.svc h3 { margin: 6px 0 6px; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 22px; }
.svc p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: rgba(240,232,214,.88); }
.svc .svc-proof { color: var(--muted); font-size: 13px; }
.svc .svc-proof a { color: #e9cf8f; }
.svc-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: linear-gradient(180deg, #f2cf7a, #d9a944); color: #1a1408; }
.svc.free .svc-tag { background: transparent; color: #e9cf8f; border: 1px solid rgba(217,169,68,.5); }
.svc-cta { color: #e9cf8f; font-weight: 600; font-size: 14px; text-decoration: none; }
.svc-soon { font-size: 12px; color: var(--muted); }

/* ---------- 04 1000 Frames feature ---------- */
.frames-feature { padding: 22px 20px; }
.frames-feature .ff-head { padding: 0; }
.ff-meter { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); margin: 0 0 16px; }
.ff-meter .bar { flex: 1; max-width: 260px; height: 4px; border-radius: 999px; background: rgba(240,232,214,.12); overflow: hidden; }
.ff-meter .bar span { display: block; height: 100%; background: #e2b45a; }
.ff-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ff-card { display: grid; gap: 6px; text-decoration: none; color: var(--text); }
.ff-card.big { grid-column: 1 / -1; }
.ff-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; background: #0d0b08; border-radius: 12px; border: 1px solid rgba(217,169,68,.4); transition: border-color .2s, transform .3s; }
.ff-card.big img { aspect-ratio: auto; max-height: 70vh; }
.ff-card:hover img { border-color: rgba(217,169,68,.8); transform: scale(1.01); }
.ff-cap { font-size: 13px; color: var(--muted); }
.ff-cap b { color: #e9cf8f; font-weight: 600; }
.ff-enter { margin-top: 16px; }
@media (min-width: 760px) { .ff-feature { grid-template-columns: 2fr 1fr 1fr; align-items: start; } .ff-card.big { grid-column: auto; } .ff-card.big img { max-height: none; } }

/* ---------- Imaginations preview ---------- */
.jf-entry { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.07); }
.jf-entry:first-child { border-top: 0; padding-top: 0; }
.jf-entry time { font-size: 12px; color: #e9cf8f; letter-spacing: .06em; }
.jf-entry p { margin: 6px 0 0; line-height: 1.6; }
.jf-empty { color: var(--muted); font-style: italic; font-family: "Instrument Serif", Georgia, serif; font-size: 20px; margin: 0; }

/* ---------- 05 Connection ---------- */
.connect { text-align: center; margin-bottom: 20px; }
.connect .paths { justify-content: center; }

/* Inside My Head header spacing now that it has a kicker */
.head .head-intro h2 { font-size: clamp(26px, 6vw, 36px); }
.stages li { min-height: 40px; }

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .scroll-cue span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .svc, .ff-card img { transition: none; }
}

/* Desktop: hero runs edge to edge to show more of the landscape; big painting capped */
.home .hero { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
@media (min-width: 760px) { .home .hero { min-height: 92vh; } .ff-card.big img { max-height: 560px; } }
.ff-today { margin: 0 0 16px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.ff-today b { color: #e9cf8f; font-weight: 600; font-size: 15px; }
.svc.offer { border-color: rgba(217,169,68,.55); }
.svc-price { position: absolute; top: 14px; right: 16px; margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: 28px; line-height: 1; color: #e9cf8f; }
.svc-terms { list-style: none; padding: 0; margin: 0 0 10px; display: flex; gap: 6px; }
.svc-terms li { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(217,169,68,.4); color: var(--text); }

/* ---------- Footer (starts after 03 Frames) ---------- */
.site-foot { margin: 28px -16px 0; padding: 28px 20px 26px; border-top: 1px solid rgba(217,169,68,.22); background: linear-gradient(180deg, #0f0e0c, #080706); color: var(--text); }
.sf-grid { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; }
@media (min-width: 760px) { .sf-grid { grid-template-columns: 2fr 1fr 1fr; } }
.sf-col h2, .sf-col h3 { margin: 0 0 10px; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
.sf-col h2 { font-size: 24px; }
.sf-col h3 { font-size: 18px; color: #e9cf8f; }
.sf-col a { display: block; padding: 6px 0; color: rgba(240,232,214,.85); text-decoration: none; font-size: 14px; }
.sf-col a:hover { color: #e9cf8f; }
.sf-head .stages li { font-size: 11.5px; }
.sf-head .stage-item { padding: 10px 12px; }
.sf-base { max-width: 980px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.sf-base span { font-family: "Instrument Serif", Georgia, serif; font-size: 18px; color: #e9c77e; }
.sf-base em { font-family: "Instrument Serif", Georgia, serif; font-size: 16px; }
.site-foot { margin: 20px 0 0; padding: 28px 20px 26px; }
.home main { padding-bottom: 0; } .home main > .frames-feature { margin-bottom: 0; }
