/* home.css - raw askenact home styling (body + components) */

body:has(.home-page) {
background: #F7F5F0;
}

/* Home content width comes from `.home-page .container` (below) and vertical
   rhythm from `.section` / `.home-hero`; the shared header & footer use
   main.css's `.container`, so the nav bar sits at the same height as every
   other page. (No global `.container` override here - that used to leak 24px
   of top padding into the header and push the home nav bar down.) */

.home-page .grid {
display: grid;
	gap: 18px;
}

.home-page .grid.cols-2 {
grid-template-columns: 1.1fr .9fr;
		align-items: start;
}@media (max-width:900px) {
  .home-page .grid.cols-2 { grid-template-columns: 1fr; }
}


#what-is .grid.cols-2 {
grid-template-columns: 1fr;
}

.home-page {
background: #F7F5F0;
}

.home-page .container {
max-width: 1060px;
}

.home-page .section {
padding: 26px 0;
}

.home-page .container.section {
padding-left: 24px;
        padding-right: 24px;
}@media (max-width: 600px) {
  .home-page .container.section { padding-left: 18px;
                padding-right: 18px; }
}


.home-hero {
position: relative;
        overflow: hidden;
        min-height: 500px;
        padding: 112px 0 64px;
        background:
                linear-gradient(180deg, rgba(236, 252, 251, 0.84) 0%, rgba(247, 245, 240, 0.96) 78%, #F7F5F0 100%),
                radial-gradient(circle at 82% 28%, rgba(0, 175, 185, 0.24), transparent 34%),
                radial-gradient(circle at 70% 10%, rgba(0, 129, 167, 0.16), transparent 30%),
                linear-gradient(135deg, rgba(221, 248, 247, 0.78) 0%, rgba(246, 243, 236, 0.72) 52%, #F7F5F0 100%);
}

.home-hero-mesh {
position: absolute;
        inset: 0;
        pointer-events: none;
        background:
                radial-gradient(circle at 84% 24%, rgba(0, 175, 185, 0.22), transparent 26%),
                radial-gradient(circle at 68% 54%, rgba(221, 248, 247, 0.74), transparent 30%),
                radial-gradient(circle at 28% 24%, rgba(0, 129, 167, 0.1), transparent 24%);
        filter: blur(20px);
        animation: hero-mesh-drift 26s ease-in-out infinite alternate;
}

.home-hero-inner {
position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(320px, 1fr) minmax(330px, .84fr);
        gap: 48px;
        align-items: center;
        max-width: 920px;
}

.home-hero-copy {
text-align: left;
}

.home-hero-copy h1 {
font-size: clamp(42px, 5.4vw, 70px);
        color: var(--text);
        text-align: left;
        text-shadow: 0 5px 16px rgba(26, 26, 46, 0.08);
}

.home-hero-copy .hero-sub {
max-width: 410px;
        margin-left: 0;
        margin-right: 0;
        color: var(--text);
        text-align: left;
        font-size: 16px;
        line-height: 1.45;
}

.home-hero-copy .hero-actions {
justify-content: flex-start;
        margin-top: 18px;
}

.home-page .video-section {
margin-top: 0;
        padding-top: 30px;
        padding-bottom: 34px;
}

.home-page .section-heading {
margin-left: auto;
        margin-right: auto;
}

.home-page .section-heading-center {
text-align: center;
}

.home-page .section-heading-center p {
max-width: 640px;
        margin-left: auto;
        margin-right: auto;
        color: var(--text);
}

.home-page .device-wrap {
max-width: 620px;
}

.home-page .frame {
padding: 8px;
        border: 1px solid rgba(0, 129, 167, 0.22);
        border-radius: 28px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(221, 248, 247, 0.72));
        box-shadow: 0 18px 44px rgba(6, 53, 67, 0.16);
}

.home-page .side-pill {
display: none;
}

.info-card-grid {
display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
        max-width: 900px;
        margin: 0 auto;
}

/* .info-card visual styling lives in main.css (shared, raw-matching) */

.home-page .section-note {
max-width: 820px;
        margin: 18px auto 0;
        color: var(--text);
        font-size: 14px;
        line-height: 1.5;
        text-align: center;
}

.impact-card-grid {
display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
        max-width: 820px;
        margin: 0 auto 16px;
}

.impact-card-grid .info-card {
width: 180px;
}

.impact-cta {
font-size: 13px;
        padding: 8px 18px;
}

.home-page .image-strip {
display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        max-width: 760px;
        margin: 20px auto 0;
}

.home-page .image-strip img {
width: 100%;
        aspect-ratio: 1.75;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 12px 28px rgba(6, 53, 67, 0.1);
        transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out);
}

.home-page .image-strip img:hover {
transform: translateY(-4px) scale(1.01);
        box-shadow: var(--hover-shadow);
}

.story-design {
max-width: 1060px;
}

.story-design.quote {
display: block;
}

.story-design blockquote {
margin: 0;
        max-width: none;
        text-align: left;
}

.story-design h2 {
text-align: center;
        margin-bottom: 26px;
}

.story-portrait {
float: right;
        width: min(31vw, 312px);
        min-width: 240px;
        height: auto;
        max-height: none;
        aspect-ratio: auto;
        margin: 0 0 18px 42px;
        border-radius: 18px;
        object-fit: contain;
        box-shadow: 0 16px 34px rgba(6, 53, 67, 0.12);
        transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out);
}

.story-portrait:hover {
transform: translateY(-4px) scale(1.01);
        box-shadow: var(--hover-shadow);
}

.story-design::after {
content: "";
        display: block;
        clear: both;
}

.story-design .card img {
max-width: 100%;
        max-height: 300px;
        object-fit: cover;
}

.story-image-design {
max-width: 760px;
        padding-top: 10px;
}

.story-image-design img.field-image {
height: 300px;
}

.story-image-design .section-divider,
.story-image-design .media-accent::after {
display: none;
}

.home-page #blog {
max-width: 1320px;
}

.home-page .blog-grid {
max-width: 1320px;
        margin: 0 auto;
        gap: 48px;
}

.latest-updates-link {
margin-top: 28px;
}

.home-page #contact {
max-width: 760px;
        text-align: center;
}

.home-page .newsletter {
max-width: 560px;
        margin: 0 auto;
}

.hero-actions {
display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 24px;
}

.video-section {
margin-top: 20px;
}

.section-heading {
max-width: 760px;
        margin-bottom: 22px;
}

.device-wrap {
position: relative;
	margin: 28px auto 0;
	max-width: 900px;
}

.frame {
border: 16px solid #111;
	border-radius: 28px;
	background: transparent;
	overflow: hidden;
	position: relative;
	z-index: 2;
        box-shadow: 0 30px 80px rgba(6, 53, 67, 0.18);
}

.video-embed {
position: relative;
	padding-top: 56.25%;
        overflow: hidden;
        border-radius: 20px;
        background: #101010;
}

.video-embed iframe {
position: absolute;
        top: 0;
        bottom: 0;
        left: -1px;
        right: 0;
	width: calc(100% + 2px);
	height: 100%;
	border: 0;
        display: block;
}

.side-pill {
position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 120px;
	border-radius: 999px;
	background: var(--secondary);
        animation: pill-float 3.8s ease-in-out infinite;
}

.side-pill.left {
left: 0;
}

.side-pill.right {
right: 0;
		background: var(--primary);
                animation-delay: 1s;
}

img.responsive {
display: block;
	width: 100%;
	height: auto;
	border: 0;
	border-radius: 20px;
	box-shadow: none;
	background: transparent;
}

.card.media {
background: transparent !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 20px;
	overflow: hidden; /* image follows rounded corners */
}

.media-accent {
position: relative;
}

.media-accent::after {
content: "";
        position: absolute;
        inset: 12px;
        border: 1px solid rgba(0, 129, 167, 0.32);
        border-radius: 14px;
        pointer-events: none;
}

img.field-image {
height: clamp(260px, 38vw, 430px);
        object-fit: cover;
}

.field-image--family {
object-position: 62% center;
}

.field-image--techweek {
object-position: center center;
}

.field-image--housing {
object-position: center center;
}

.field-image--doorstep {
object-position: center center;
}

.hero-sub {
max-width: 800px;
        margin: 12px auto 0;
        text-align: center;
        color: var(--text);
        font-size: clamp(17px, 2.2vw, 20px);
}

.home-page .home-hero {
min-height: 560px;
        padding: 122px 0 66px;
}

.section[data-reveal]:not(.hero-lab) {
position: relative;
}

.home-page .section[data-reveal]:not(.home-hero) {
isolation: isolate;
}

.home-page .section[data-reveal]:not(.home-hero)::before {
content: "";
        position: absolute;
        inset: 0 50%;
        width: 100vw;
        margin-left: -50vw;
        z-index: -1;
        pointer-events: none;
}

.home-page #what-is::before {
background: #F7F5F0;
}

.home-page .video-section::before,
.home-page .story-design::before,
.home-page .story-image-design::before {
background: #F6F3EC;
}

.home-page #impact::before {
background: #F7F5F0;
}

.home-page #blog::before {
background: #F6F3EC;
}

.home-page #contact::before {
background: #F6F3EC;
}

.section-divider {
position: absolute;
        top: 0;
        left: 24px;
        right: 24px;
        height: 1px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(0, 184, 199, 0), rgba(0, 129, 167, 0.46), rgba(255, 107, 53, 0.22), rgba(0, 184, 199, 0));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .42s var(--ease-out);
        pointer-events: none;
}

.section.is-visible > .section-divider {
transform: scaleX(1) !important;
}

.quote {
display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
}

.quote blockquote {
order: 1;
}

.quote .card {
order: 2;
		display: flex;
		justify-content: center;
		align-items: stretch;
}

.quote .card img {
max-width: 80%;   /* shrink relative to column width */
  height: auto;
  align-self: flex-start; /* line up with the top of the text */
}@media (max-width:900px) {
  .quote { grid-template-columns: 1fr; }
  .quote blockquote, .quote .card { order: initial; }
  .home-hero-inner { grid-template-columns: 1fr;
                max-width: 560px; }
  .info-card-grid,
        .image-strip,
        .story-design.quote { grid-template-columns: 1fr; }
  .story-portrait { float: none;
                display: block;
                width: min(100%, 340px);
                min-width: 0;
                margin: 0 auto 20px; }
  .home-page .image-strip img { aspect-ratio: 1.9; }
  .hero-lab { min-height: auto;
                padding-top: 42px; }
  .hero-lab-inner { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: repeat(5, minmax(220px, 1fr)); }
  .tabs-shell { grid-template-columns: 1fr; }
  .tab-buttons { grid-template-columns: repeat(3, 1fr); }
  .tab-button:hover,
        .tab-button.is-active { transform: translateY(-2px); }
  .practice-proof { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-copy h1,
        .hero-copy .hero-sub { text-align: center; }
  .hero-actions { justify-content: center; }
  .section-divider { left: 18px;
                right: 18px; }
  .tab-buttons { grid-template-columns: 1fr; }
  .tab-panel { min-height: auto; }
  img.field-image { height: 280px; }
  .field-image--family { object-position: 68% center; }
  .proof-grid { grid-template-columns: 1fr; }
  .pill-input { flex-direction: column;
                align-items: stretch; }
}


.blog-grid {
display: grid;
	gap: 32px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}@media (max-width:1100px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width:700px) {
  .blog-grid { grid-template-columns: 1fr; }
}


.blog-card {
background: #fff;
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 16px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        min-height: 520px;
        transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out);
}

.blog-card:hover,
.blog-card:focus-within {
transform: translateY(-6px) scale(1.01);
        border-color: rgba(255, 107, 53, 0.42);
        box-shadow: var(--hover-shadow);
}

.blog-card-media {
background: var(--neutral2);
        height: 190px;
        width: 100%;
}

.blog-card-media img {
width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
}

.blog-card .body {
display: flex;
                flex: 1;
                flex-direction: column;
                padding: 20px;
}

.blog-card .meta {
font-size: 14px;
                color: rgba(26, 26, 46, 0.72);
                margin-bottom: 8px;
}

.blog-card .body h3 {
font-size: clamp(20px, 2vw, 24px);
                line-height: 1.18;
}

/* Read-more placement is handled by .blog-card-footer in main.css */

.text-center {
text-align: center;
}

.hide {
display: none !important;
}

.sr-only {
position: absolute !important;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
}

[data-reveal] {
opacity: 0;
        transform: translateY(28px);
        transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

[data-reveal].is-visible {
opacity: 1;
        transform: translateY(0);
}

[data-stagger-item] {
opacity: 0;
        transform: translateY(18px);
        transition: opacity .54s var(--ease-out), transform .54s var(--ease-out);
        transition-delay: var(--stagger-delay, 0ms);
}

[data-reveal].is-visible [data-stagger-item] {
opacity: 1;
        transform: translateY(0);
}

.stat-card,
.about-panel,
.barrier-card,
.what-is-card,
.media-accent {
transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out);
}

.stat-card:hover,
.about-panel:hover,
.barrier-card:hover,
.what-is-card:hover,
.media-accent:hover {
transform: translateY(-5px) scale(1.01);
        border-color: rgba(0, 184, 199, 0.38);
        box-shadow: var(--hover-shadow);
}

.card.media:hover,
.media-accent:hover {
box-shadow: var(--hover-shadow) !important;
}@media (prefers-reduced-motion: reduce) {
  [data-reveal],
        [data-stagger-item] { opacity: 1 !important;
                transform: none !important; }
  .hero-lab::before { animation: none !important;
                transform: none !important; }
  .hero-grid,
        .hero-scan { animation: none !important; }
  .story-portrait { animation: none !important; }
  .section-divider { transform: scaleX(1); }
}


/* Like the raw site: the home header is fixed and overlays the hero, so the
   hero's own gradient + mesh show behind it (no header background needed).
   The hero's 122px top padding keeps content clear of the fixed header. */
body:has(.home-page) .header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }


/* ---- Keyframes (restored from askenact.com) ---- */
@keyframes hero-mesh-drift {
        0% { transform: translate3d(-1.5%, -1%, 0) scale(1); }
        50% { transform: translate3d(1.8%, 1.4%, 0) scale(1.025); }
        100% { transform: translate3d(1%, -1.6%, 0) scale(1.015); }
}
