/* Home v2 (17 Nov 2026), from Abokar's mockup: Playfair Display headings, Inter Tight body,
   a glass "work" panel with picture cards, gold pill buttons, and the sunset behind everything.
   Loads last on the home page, so it overrides home.css, home-story.css and home-compose.css. */

:root { --gold: #e9c77e; --gold-hi: #f8dc97; --gold-lo: #dca64b; --cream: #f3e9d6; --serif: "Playfair Display", Georgia, serif; }

/* ---------- Sunset behind the whole page (iOS-safe fixed layer) ---------- */
body.home { background: transparent; }
body.home::before { content: ""; position: fixed; inset: -60px; z-index: -2; pointer-events: none;
  background: url("hero-v20.png") 62% 62% / cover no-repeat; filter: blur(24px) saturate(1.2) brightness(.62); transform: scale(1.08); }
body.home::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,12,22,.10) 0%, rgba(14,10,14,.38) 45%, rgba(8,7,8,.70) 100%); }

/* ---------- Hero: scene stays bright and melts into the sunset below ---------- */
.home .hero { background: transparent; -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 74%, transparent 100%); }
.home .hero::after { background: linear-gradient(180deg, rgba(10,8,14,.32) 0%, rgba(10,8,14,0) 20%), linear-gradient(270deg, rgba(10,8,14,.28) 0%, rgba(10,8,14,0) 45%); }
.home .hm-site { font-family: var(--serif); font-weight: 500; color: var(--gold); letter-spacing: .01em; }
.home .hm-tag { font-family: var(--serif); font-style: italic; font-weight: 400; color: #fff7ea; }

/* ---------- Hero video: invisible until it really plays (no iOS play button) ---------- */
.hero-video { opacity: 0; transition: opacity .8s ease; pointer-events: none; object-fit: cover; }
.hero-video.is-playing { opacity: 1; }
.hero-video::-webkit-media-controls, .hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; opacity: 0 !important; }

/* ---------- Shared type ---------- */
.home .kicker { font-family: "Inter Tight", system-ui, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .32em; color: var(--gold); margin: 0 0 6px; }
.home .sec h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 8.2vw, 46px); line-height: 1.08; letter-spacing: -.005em; color: var(--cream); }
.home .sub { font-size: clamp(13.5px, 3.7vw, 15.5px); line-height: 1.5; color: rgba(243,233,214,.74); max-width: 560px; margin: 8px 0 18px; }

/* ---------- 02 The work: glass panel over the bottom of the hero ---------- */
#services { position: relative; z-index: 3; margin-top: -160px; margin-top: -24svh; padding: 22px 14px 16px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(40,26,24,.66), rgba(16,12,12,.84));
  -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(233,199,126,.30);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,232,190,.10); }
@media (min-width: 760px) { #services { margin-top: -140px; padding: 34px 30px 28px; } }

/* two columns of picture cards, like the mockup */
.home .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .home .svc-grid { gap: 16px; } }
@media (max-width: 340px) { .home .svc-grid { grid-template-columns: 1fr; } }

.home .svc { display: flex; flex-direction: column; padding: 0 0 12px; overflow: hidden; border-radius: 16px;
  border: 1px solid rgba(233,199,126,.34);
  background: linear-gradient(180deg, rgba(52,34,28,.55), rgba(18,14,12,.94) 58%);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,232,190,.08); }
.home .svc.offer { border-color: rgba(233,199,126,.6); box-shadow: 0 10px 34px rgba(220,166,75,.16), inset 0 1px 0 rgba(255,232,190,.12); }
.home .svc:hover { border-color: rgba(248,220,151,.75); transform: translateY(-2px); }
.home .svc-art { position: relative; height: clamp(86px, 25vw, 160px); margin: 0 0 -14px; background: radial-gradient(120% 90% at 70% 30%, rgba(255,170,90,.35), rgba(30,18,20,0) 70%); }
.home .svc-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% 45%;
  -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%); mask-image: linear-gradient(180deg, #000 52%, transparent 100%); }

.home .svc-tag, .home .svc.free .svc-tag { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 4px 10px; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); color: #1c1408; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.home .svc-price { position: absolute; z-index: 2; top: 10px; right: 12px; font-family: var(--serif); font-size: clamp(13px, 3.6vw, 17px); color: var(--cream); text-shadow: 0 1px 8px rgba(0,0,0,.7); }

.home .svc h3, .home .svc p:not(.svc-price), .home .svc .svc-terms, .home .svc .svc-cta, .home .svc .svc-soon { margin-left: 11px; margin-right: 11px; position: relative; z-index: 1; }
.home .svc h3 { margin-top: 0; margin-bottom: 5px; font-family: var(--serif); font-weight: 500; font-size: clamp(16px, 4.5vw, 23px); line-height: 1.15; color: var(--cream); }
.home .svc p:not(.svc-price) { margin-bottom: 8px; font-size: clamp(11.5px, 3.15vw, 14px); line-height: 1.45; color: rgba(243,233,214,.8); }
.home .svc .svc-proof { font-size: clamp(11px, 2.9vw, 13px); }
.home .svc .svc-proof a { color: var(--gold-hi); font-weight: 600; }
.home .svc-terms { gap: 5px; margin-bottom: 8px; }
.home .svc-terms li { font-size: clamp(10.5px, 2.8vw, 12px); padding: 3px 9px; border-color: rgba(243,233,214,.35); color: var(--cream); }

/* gold pill buttons */
.home .svc-cta, .home .ff-enter { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; white-space: nowrap; border-radius: 999px; text-decoration: none;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); color: #1c1408; font-weight: 700; font-size: clamp(10.5px, 2.85vw, 13.5px); line-height: 1.2;
  box-shadow: 0 6px 18px rgba(220,166,75,.32), inset 0 1px 0 rgba(255,255,255,.45); transition: transform .15s, box-shadow .2s; }
.home .svc-cta { margin-top: auto; align-self: flex-start; }
.home .svc-cta:hover, .home .ff-enter:hover { text-decoration: none; box-shadow: 0 8px 24px rgba(220,166,75,.45), inset 0 1px 0 rgba(255,255,255,.5); }
.home .svc-cta:active, .home .ff-enter:active { transform: scale(.97); }
.home .svc-soon { margin-top: auto; align-self: flex-start; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(243,233,214,.4); color: var(--cream); font-size: clamp(11px, 3vw, 13px); }

/* ---------- Frames: open on the sunset, big painting + two stacked ---------- */
.home .frames-feature { background: transparent; border: 0; box-shadow: none; padding: 34px 2px 6px; margin-top: 6px; }
.home .frames-feature .ff-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; margin-bottom: 14px; }
.home .frames-feature .ff-logo { grid-column: 1 / -1; display: flex; flex-wrap: nowrap; align-items: baseline; gap: 0 .3em; margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 6.6vw, 46px); line-height: 1.05; letter-spacing: .1em; white-space: nowrap; color: var(--gold); text-transform: uppercase; }
.home .ff-num, .home .ff-word, .home .ff-dash { font-family: inherit; font-size: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; padding: 0; }
.home .ff-tag { grid-column: 1; grid-row: 2; margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(16px, 4.6vw, 24px); line-height: 1.2; color: var(--gold); }
.home .ff-today { display: none; }
.home .ff-head .ff-enter { grid-column: 2; grid-row: 2; align-self: center; margin: 0; white-space: nowrap; }
.home .ff-feature { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(230px, 62vw, 480px); }
.home .ff-card { position: relative; display: block; overflow: hidden; border-radius: 16px; border: 1px solid rgba(233,199,126,.42); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.home .ff-card.big { grid-column: 1; grid-row: 1 / 3; }
.home .ff-card img, .home .ff-card.big img { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; border: 0; border-radius: 0; background: #0d0b08; }
.home .ff-card:hover img { transform: scale(1.03); }
.home .ff-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.78)); font-size: clamp(10.5px, 2.9vw, 13px); color: var(--cream); }
.home .ff-cap b { color: var(--cream); margin-right: 6px; }

/* ---------- Inside My Head + footer: open on the sunset ---------- */
.home .site-foot { background: transparent; border-top: 0; margin: 8px 0 0; padding: 26px 16px 0; }
.home .sf-grid { grid-template-columns: 1fr 1fr; gap: 26px 0; max-width: 1000px; }
.home .sf-head { grid-column: 1 / -1; }
.home .sf-head h2 { margin: 0 0 12px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 7.6vw, 42px); color: var(--cream); }
.home .stages { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.home .stages li, .home .sf-head .stages li { min-height: 36px; padding: 8px 4px; font-size: 12.5px; font-weight: 600; color: var(--cream); border: 1.5px solid rgba(243,233,214,.3); background: rgba(20,14,14,.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.home .stages li.on { background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); color: #1c1408; border-color: transparent; }
.home .stage-list { gap: 10px; }
.home .stage-item, .home .sf-head .stage-item { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; border-radius: 16px;
  border: 1px solid rgba(233,199,126,.3); background: linear-gradient(180deg, rgba(40,28,24,.6), rgba(16,12,12,.8)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--cream); }
.home .stage-item:hover { border-color: rgba(248,220,151,.7); }
.home .stage-thumb { width: 92px; height: 58px; border-radius: 11px; background: radial-gradient(120% 120% at 30% 20%, #f3c776 0%, #b8682e 45%, #2a1612 100%) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255,232,190,.18); display: grid; place-items: center; font-family: var(--serif); font-size: 26px; color: rgba(28,20,8,.85); }
.home .stage-item b { display: block; font-size: 15px; font-weight: 600; }
.home .stage-item small { font-size: 12px; line-height: 1.4; color: rgba(243,233,214,.72); }
.home .stage-item .arrow { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(243,233,214,.7); display: grid; place-items: center; color: var(--cream); font-size: 15px; }

.home .sf-col h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(19px, 5vw, 24px); color: var(--gold); }
.home nav.sf-col a { padding: 5px 0; font-size: clamp(12.5px, 3.4vw, 15px); color: var(--cream); }
.home nav.sf-col a::before { content: "\2192"; margin-right: 8px; }
.home nav.sf-col a:hover { color: var(--gold-hi); }
.home .sf-col[aria-label="Explore"] { padding-right: 14px; border-right: 1px solid rgba(233,199,126,.3); }
.home .sf-col[aria-label="Work with me"] { padding-left: 22px; }
.home .sf-base { margin: 26px -16px 0; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); max-width: none; border-top: 1px solid rgba(233,199,126,.18); background: rgba(8,7,7,.86); align-items: center; }
.home .sf-base span { font-family: var(--serif); font-size: clamp(17px, 4.6vw, 20px); color: var(--gold); }
.home .sf-base em { font-family: var(--serif); font-style: italic; font-size: clamp(15px, 4.2vw, 18px); color: var(--cream); }

@media (prefers-reduced-motion: reduce) { .home .svc, .home .svc-cta, .home .ff-enter, .home .ff-card img { transition: none; } }
