/* Front-page composition only. The member theme remains unchanged. */
.filos-homepage { --home-navy: #123c62; --home-blue: #2468a3; --home-cream: #faf7f0; --home-gold: #edc585; background: var(--home-cream); }
.filos-homepage .filos-system { display: block; padding: 0; }
.filos-homepage .filos-system__content { width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.filos-homepage .filos-header { background: rgba(250,247,240,.96); }
.filos-homepage .filos-footer { background: var(--home-navy); color: #d8e8f4; font-size: .9rem; padding: 2rem 1rem; }
.home-experience { color: var(--home-navy); background: var(--home-cream); }
.home-experience p { margin: 0 0 1.3rem; }
.filos-homepage .home-experience :is(h1,h2,h3) { color: inherit; }
.home-experience h2 { font-size: clamp(2.4rem,4.8vw,4.6rem); line-height: 1.08; margin: 0 0 1.7rem; }
.home-experience em { font-weight: 400; }
.home-experience :is(h1,h2) em { color: #2468a3; }
.home-experience .home-eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; line-height: 1.7; margin-bottom: 1.8rem; }
.home-experience .home-lead { font-size: clamp(1.2rem,1.6vw,1.48rem); line-height: 1.5; }
.home-experience .home-note { font-size: .84rem; line-height: 1.65; margin: 1.5rem 0 0; color: #51677a; }
.home-hero { display: grid; grid-template-columns: 1.05fr 1fr; position: relative; }
.home-hero__copy { padding: clamp(3rem,6.3vw,7rem) clamp(1.3rem,5.5vw,6rem) 6rem; align-self: center; }
.home-hero { min-height: calc(100svh - 100px); }
.home-title-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.home-title-line > * { display: block; }
.home-motion .home-title-line > * { animation: home-title-enter 1.35s cubic-bezier(.16,1,.3,1) both; }
.home-motion .home-title-line:nth-child(2) > * { animation-delay: .18s; }
.home-motion .home-title-line:nth-child(3) > * { animation-delay: .36s; }
@keyframes home-title-enter { from { transform: translateY(110%); } to { transform: translateY(0); } }
.home-hero h1 { font-size: clamp(3.1rem,5.8vw,6.2rem); line-height: 1.01; margin-bottom: 2rem; }
.home-hero__copy > p:not(.home-eyebrow) { max-width: 29rem; }
.home-hero__visual { position: relative; min-width: 0; min-height: 680px; display: grid; align-items: center; overflow: hidden; background: #163f65; isolation: isolate; }
/* Owner-supplied family photography; reserve space before the image loads. */
.home-architecture { position: absolute; inset: -85px 0; overflow: hidden; }
.home-family-photo { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 44%; }
.home-hero__visual::after { content: ''; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent,rgba(8,30,50,.68)); pointer-events: none; }
.home-experience .home-visual-caption { position: absolute; z-index: 1; bottom: 1.8rem; left: 0; width: 100%; margin: 0; padding: 0 1rem; text-align: center; color: #fffaf0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.home-scroll { position: absolute; left: clamp(1.3rem,5.5vw,6rem); bottom: 1.6rem; display: flex; align-items: center; gap: .8rem; min-height: 44px; font-size: .8rem; color: var(--home-navy); text-decoration: none; }
.home-scroll span { font-size: 1.7rem; }
.home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem 1.8rem; margin-top: 2rem; }
.home-experience .home-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 3.4rem; padding: .8rem 1.3rem; color: white; background: var(--home-navy); text-decoration: none; border: 1px solid var(--home-navy); border-radius: .2rem; font-size: 1rem; transition: background-color .2s, color .2s, transform .2s; }
.filos-homepage .home-experience .home-button:hover { color: white; background: #2468a3; }
.home-experience .home-button:active { transform: translateY(2px); }
.home-text-link { display: inline-flex; align-items: center; gap: .8rem; min-height: 44px; color: var(--home-navy); font-weight: 700; font-size: .95rem; text-underline-offset: .3em; }
.home-experience a:focus-visible { outline: 3px solid #b16b1d; outline-offset: 5px; }
.home-section { padding: clamp(4rem,8vw,8rem) max(1.3rem,calc((100vw - 1160px)/2)); }
.home-intro { background: #fff; }
.home-section-heading { text-align: center; max-width: 45rem; margin: 0 auto 4rem; }
.home-pillars { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; }
.home-pillar { padding: 1.2rem 2.1rem; border-left: 1px solid #cad8e2; color: var(--home-navy); text-decoration: none; transition: background-color .25s; }
.home-pillar:first-child { border-left: 0; }
.home-pillar:hover { background: #f4f8fb; }
.home-pillar__number { font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; }
.home-pillar__icon { display: block; font: 3.6rem/1 Georgia,serif; color: #2468a3; margin: 2.2rem 0 1.4rem; }
.home-pillar h3 { font-size: 1.9rem; line-height: 1.15; margin: 0 0 1rem; }
.home-pillar p { font-size: 1rem; }
.home-pillar__link { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-top: 1.5rem; font-size: .9rem; font-weight: 700; }
.home-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(2rem,7vw,7rem); }
.home-feature-copy { min-width: 0; }
.home-feature-copy > p:not(.home-eyebrow) { max-width: 35rem; }
.home-status { display: inline-block; margin: .5rem 0 .1rem .4rem; padding: .2rem .65rem; background: #dcece4; color: #28533d; border-radius: 2rem; font-size: .64rem; vertical-align: middle; letter-spacing: .06em; }
.home-status--planned { background: #eee4d6; color: #74512a; }
.home-status--light { background: #ffffff20; color: #fff; border: 1px solid #9cbed5; }
.home-game-scene { padding: 2rem .8rem; position: relative; }
.home-game-card { background: #fff; border-radius: 0; padding: clamp(1.3rem,3vw,2.8rem); box-shadow: 0 26px 65px -25px #153f6550; border: 1px solid #ccdce8; transform: none; }
.home-game-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.2rem; border-bottom: 1px solid #dce7ef; margin-bottom: 1.5rem; font-family: Georgia,serif; font-size: 1.6rem; }
.home-game-top > span:last-child { color: #a87534; }
.home-game-card h3 { font-size: 2rem; line-height: 1.15; margin: 0 0 1.5rem; }
.home-game-card .home-eyebrow { font-size: .65rem; margin-bottom: 1rem; }
.home-play-photo { display: block; width: 100%; height: auto; }
.home-family-discoveries { margin-top: 1.5rem; color: #405b70; font-size: .92rem; line-height: 1.65; }
.home-experience .home-family-discoveries p { margin-bottom: .8rem; }
.home-family-discoveries ul { margin: 0; padding-left: 1.2rem; }
.home-family-discoveries li + li { margin-top: .55rem; }
.home-experience .home-game-aside { font: italic 1.25rem/1.4 Georgia,serif; text-align: center; margin: 2.6rem 1rem 0; }
.home-filo { background: #e9f1f7; }
.home-conversation { padding: clamp(1.3rem,3.5vw,3rem); background: #f7fafc; border: 1px solid #d0dfeb; border-radius: 0; }
.home-filo-mark { display: block; text-align: center; font: italic clamp(2.7rem,5vw,4.5rem)/1.2 Georgia,serif; color: #2468a3; margin-bottom: 1rem; }
.home-conversation > .home-eyebrow { text-align: center; font-size: .66rem; }
.home-chat { padding: 1.3rem; margin-top: 1.2rem; border-radius: 0; }
.home-chat p { margin: 0; font-size: 1.1rem; }
.home-chat--you { margin-left: 2rem; background: #e2ecf4; border-bottom-right-radius: 0; }
.home-chat--filo { margin-right: 1rem; background: var(--home-navy); color: #fff; border-bottom-left-radius: 0; }
.home-chat--filo > span { display: block; font-size: .72rem; letter-spacing: .12em; color: #edc585; margin-bottom: .6rem; }
.home-rewind { position: relative; overflow: hidden; background: #103659; color: #fffaf0; isolation: isolate; }
.home-rewind__background { position: absolute; inset: -220px 0; z-index: -1; background: repeating-linear-gradient(125deg,transparent 0,transparent 159px,#b9cbd119 160px,transparent 161px),linear-gradient(120deg,#081f34,#204866); }
.home-rewind__background::after { content: ''; position: absolute; width: 1px; height: 100%; left: 70%; top: 0; background: #d6b57a66; transform: rotate(35deg); }
.home-rewind__inner > .home-feature-copy { max-width: 54rem; }
.home-rewind__inner h2 em { color: var(--home-gold); }
.home-rewind__inner > .home-note { color: #c6d8e7; }
.home-reel { margin-top: 6rem; border-top: 1px solid #82a5c066; padding-top: 2.5rem; }
.home-reel__frame { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; padding: 5rem 0; }
.home-story-frame { min-height: 340px; padding: 1.7rem; display: flex; flex-direction: column; justify-content: space-between; color: #fffaf0; background: linear-gradient(135deg,#416178,#173248); border: 1px solid #b8c8d044; }
.home-story-frame:nth-child(2) { background: linear-gradient(145deg,#ded6c7,#a29682); color: #19354a; }
.home-story-frame:nth-child(3) { background: linear-gradient(135deg,#496568,#1a363e); }
.home-story-frame > span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.home-story-frame p { font: 400 clamp(1.45rem,2vw,2rem)/1.25 Georgia,serif; margin: 0; }
.home-reel__caption { display: flex; justify-content: space-between; padding: 1rem .5rem .25rem; font-size: .86rem; }
.home-reel__caption > span:last-child { color: var(--home-gold); }
.home-choices { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem,7vw,7rem); background: #fff; }
.home-closing { position: relative; text-align: center; overflow: hidden; }
.home-closing .home-actions { justify-content: center; }
.home-closing__spark { display: block; color: #a87534; font: italic 2rem/1 Georgia,serif; margin-bottom: 2rem; }
.home-closing .home-note { max-width: 35rem; margin: 2rem auto 0; }
.home-native-content { max-width: 72rem; margin: 0 auto; }
.home-native-content .views-element-container:has(.view-content) { padding: 2rem; }
/* Factual, accessible count-up story; final values are the no-JS default. */
.home-measures { background: #102f49; color: #fffaf0; border-bottom: 1px solid #ffffff26; }
.home-measures__intro { max-width: 45rem; }
.home-experience .home-measures h2 { font-size: clamp(2.2rem,4vw,3.5rem); }
.home-measures__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3rem; margin-top: 4rem; }
.home-measure { border-top: 1px solid #aabfc65c; padding-top: 1.5rem; }
.home-measure__value { display: block; font: 400 clamp(4.8rem,9vw,8rem)/1.1 Georgia,serif; color: #e1c59b; font-variant-numeric: lining-nums tabular-nums; min-height: 1.1em; margin-bottom: 1.5rem; }
.home-measure h3 { font-size: 1.2rem; margin: 0 0 .65rem; }
.home-measure p { font-size: .9rem; color: #c3d3df; }
.home-reading-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: #b68a4d; transform-origin: left; transform: scaleX(var(--home-progress,0)); z-index: 600; pointer-events: none; }
@media (min-width: 801px) {
  .home-measure:nth-child(2) { transition-delay: .16s; }
  .home-measure:nth-child(3) { transition-delay: .32s; }
}
@media (max-width: 800px) {
  .home-measures__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .home-measure__value { font-size: 5.5rem; }
}
/* Visible by default. JS opts individual, below-fold sections into a reveal. */
[data-home-reveal] { opacity: 1; transform: none; }
.home-reveal-waiting { opacity: 0; transform: translateY(64px); transition: opacity 1.15s ease,transform 1.15s cubic-bezier(.16,1,.3,1); }
.home-reveal-visible { opacity: 1; transform: none; }
[data-home-parallax] { translate: 0 var(--home-shift,0px); }
@media (min-width: 801px) {
  .home-pillars > :nth-child(2) { transition-delay: .16s; }
  .home-pillars > :nth-child(3) { transition-delay: .32s; }
}
@media (max-width: 800px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero__copy { padding: 3.5rem 1.4rem 3rem; }
  .home-hero h1 { font-size: clamp(3.5rem,10vw,5.5rem); }
  .home-hero { min-height: 0; }
  .home-hero__visual { min-height: 0; aspect-ratio: 1012 / 1022; }
  .home-architecture { inset: 0; }
  .home-visual-caption { bottom: 1.5rem; font-size: .65rem; }
  .home-scroll { position: static; padding: .6rem 1.4rem; background: #fff; }
  .home-section { padding: 4rem 1.4rem; }
  .home-pillars { grid-template-columns: 1fr; gap: 2rem; }
  .home-pillar { border-left: 0; border-top: 1px solid #cad8e2; padding: 1.6rem 0 0; }
  .home-pillar__icon { margin: 1.2rem 0; font-size: 2.8rem; }
  .home-split,.home-choices { grid-template-columns: 1fr; gap: 3rem; }
  .home-split--reverse .home-feature-copy { grid-row: 1; }
  .home-game-scene { padding: 1rem .4rem; }
  .home-game-card { transform: none; }
  .home-reel__frame { grid-template-columns: 1fr; padding: 0; }
  .home-story-frame { min-height: 260px; }
  .home-conversation { max-width: 35rem; justify-self: center; }
  .home-status { margin-left: 0; }
  [data-home-parallax] { translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-experience *, .home-experience *::before, .home-experience *::after { transition: none !important; animation: none !important; }
  .home-experience .home-title-line > *,.home-experience [data-home-reveal],.home-experience .home-button:active { opacity: 1; transform: none; }
  .home-experience [data-home-parallax] { translate: none; }
  .home-reading-progress { display: none; }
}
@media print {
  .home-experience .home-title-line > * { animation: none; transform: none; }
  .home-experience [data-home-reveal] { opacity: 1; transform: none; }
  .home-experience [data-home-parallax] { translate: none; }
  .home-reading-progress { display: none; }
  .home-experience :is(.home-hero__visual,.home-game-scene,.home-conversation,.home-reel) { break-inside: avoid; }
  .filos-homepage .filos-header { position: static; }
}
