/* ===== Fey-style black hero with emerging MacBook (preview) ===== */
.fey-hero{
  position: relative;
  background: #000;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 13vh;
  z-index: 6;
}
/* soft top glow behind the text */
.fey-hero::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  background: radial-gradient(58% 42% at 50% 16%, rgba(255,255,255,0.055), transparent 72%);
}
.fey-hero__inner{ position:relative; z-index:2; text-align:center; max-width:780px; padding:0 24px; }
.fey-hero__eyebrow{
  font-size:14px; font-weight:700; letter-spacing:0.005em; color:#f0a160;
  margin-bottom:22px; opacity:0; animation:feyHeroUp .8s .05s cubic-bezier(.2,.7,.2,1) forwards;
}
.fey-hero__title{
  font-size:clamp(38px,5.2vw,74px); font-weight:800; letter-spacing:-0.035em; line-height:1.04;
  color:#d8d8da; margin-bottom:22px; opacity:0;
  animation:feyHeroUp .9s .12s cubic-bezier(.2,.7,.2,1) forwards;
}
.fey-hero__sub{
  font-size:clamp(15px,1.35vw,19px); color:#8a8a90; line-height:1.5; max-width:560px;
  margin:0 auto 30px; opacity:0; animation:feyHeroUp .9s .2s cubic-bezier(.2,.7,.2,1) forwards;
}
.fey-hero__cta{
  background:#0c0c0e; color:#fff; border:1px solid rgba(255,255,255,0.13); border-radius:999px;
  padding:15px 34px; font-size:15px; font-weight:700; cursor:pointer;
  box-shadow:0 10px 34px rgba(0,0,0,0.6); transition:transform .2s ease, background .2s ease;
  opacity:0; animation:feyHeroUp .9s .28s cubic-bezier(.2,.7,.2,1) forwards;
}
.fey-hero__cta:hover{ transform:translateY(-2px); background:#17171a; }

.fey-hero__device{ width:100%; display:flex; justify-content:center; margin-top:5vh; position:relative; z-index:1; }
.fey-hero__macbook{
  width:min(760px,48vw); height:auto; display:block; user-select:none; pointer-events:none;
  opacity:0; transform:translateY(64px) scale(0.96);
  animation:feyMacUp 1.5s .35s cubic-bezier(.16,.8,.2,1) forwards;
  will-change:transform,opacity;
  /* light fade so the bottom of the MacBook dissolves into the black */
  -webkit-mask-image:linear-gradient(to bottom, #000 52%, transparent 100%);
  mask-image:linear-gradient(to bottom, #000 52%, transparent 100%);
}
@keyframes feyHeroUp{ from{opacity:0; transform:translateY(18px);} to{opacity:1; transform:none;} }
@keyframes feyMacUp{ from{opacity:0; transform:translateY(64px) scale(0.96);} to{opacity:1; transform:translateY(0) scale(1);} }

@media (max-width:640px){
  .fey-hero{ padding-top:14vh; min-height:92vh; }
  .fey-hero__device{ margin-top:5vh; }
  .fey-hero__macbook{ width:min(560px, 92vw); }
  .fey-hero__title{ font-size:clamp(30px, 8.5vw, 44px); }
  .fey-hero__sub{ font-size:15px; }
}

/* ===== Previous hero kept in markup but hidden (restore: remove this rule) =====
   High-specificity selectors are REQUIRED: redesign.css has
   `body.mode-home #home-hero{display:block!important}` (1,1,1) which otherwise
   overrides a plain `#home-hero` (1,0,0) hide and re-shows the old hero. */
#home-hero, #sample-question, .home-cards-section,
html body.mode-home #home-hero,
html body.mode-corp #home-hero,
html body.mode-home #sample-question,
html body.mode-home .home-cards-section,
html body.mode-corp .home-cards-section{ display:none !important; }

/* ===== Showcase: Apple-style scrollable carousel on black ===== */
.gfx-showcase{ position:relative; background:#000; padding:80px 0 88px; overflow:hidden; z-index:6; }
.gfx-showcase__head{ max-width:1180px; margin:0 auto 30px; padding:0 24px; }
.gfx-showcase__title{
  font-size:clamp(28px,4vw,46px); font-weight:800; letter-spacing:-0.03em;
  background:linear-gradient(180deg,#f4f6fb 25%,#7aa7e0 135%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
}

.gfx-carousel{ position:relative; }
.gfx-track{
  display:flex; align-items:flex-start; gap:24px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth;
  padding:8px calc(50% - min(720px, 86vw) / 2); -webkit-overflow-scrolling:touch; scrollbar-width:none;
}
.gfx-track::-webkit-scrollbar{ display:none; }
.gfx-slide{ flex:0 0 auto; width:min(720px,86vw); scroll-snap-align:center; }
.gfx-card{
  width:100%; aspect-ratio:4 / 3; border-radius:22px; overflow:hidden; background:#0a0a0a;
  box-shadow:0 24px 60px rgba(0,0,0,0.55);
}
.gfx-card img{ display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
/* phone slide: show the whole device (no crop) */
.gfx-slide--contain .gfx-card img{ object-fit:contain; }
.gfx-cap{ margin:18px 4px 0; font-size:clamp(14px,1.05vw,16px); line-height:1.5; color:#a1a1a6; }
.gfx-cap strong{ color:#f5f5f7; font-weight:700; }

.gfx-nav{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:46px; height:46px; border-radius:50%; border:none; cursor:pointer;
  background:rgba(255,255,255,0.12); color:#fff; font-size:24px; line-height:1; backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center; transition:background .2s;
}
.gfx-nav:hover{ background:rgba(255,255,255,0.22); }
.gfx-nav--prev{ left:24px; } .gfx-nav--next{ right:24px; }

.gfx-dots{ display:flex; gap:9px; justify-content:center; margin-top:28px; }
.gfx-dot{ width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,0.28); border:none; padding:0; cursor:pointer; transition:width .25s, background .25s; }
.gfx-dot.is-active{ background:#fff; width:24px; border-radius:99px; }

@media (max-width:760px){
  .gfx-showcase{ padding:56px 0 64px; }
  .gfx-nav{ display:none; }
  .gfx-slide{ width:82vw; }
}

/* ===== STORY: Apple-style scroll-reveal text ===== */
.story{ position:relative; background:#000; height:280vh; z-index:6; }
.story__sticky{
  position:sticky; top:0; height:100vh;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  text-align:center; padding:0 24px;
}
.story__eyebrow{
  font-size:clamp(14px,1.3vw,18px); font-weight:700; color:#f5f5f7; margin-bottom:18px;
  opacity:0; transform:translateY(8px); transition:opacity .7s ease, transform .7s ease;
}
.story__headline{
  font-size:clamp(32px,6vw,80px); font-weight:800; letter-spacing:-0.03em; line-height:1.05;
  color:#e8e8ea; margin:0 auto 34px; max-width:1000px;
  opacity:0; transform:translateY(14px); transition:opacity .8s ease, transform .8s ease;
}
.story__grad{
  background:linear-gradient(115deg,#a98cdb 0%,#7fa8d6 48%,#9ad2c9 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
}
.story.is-active .story__eyebrow,
.story.is-active .story__headline{ opacity:1; transform:none; }
.story__bodies{ position:relative; width:100%; max-width:760px; min-height:7.5em; }
.story__body{
  position:absolute; left:0; right:0; top:50%; transform:translateY(-50%); margin:0;
  font-size:clamp(15px,1.5vw,22px); font-weight:600; line-height:1.5; color:#48484a;
}
.story__body--2{ opacity:0; }
.story__body .w{ color:#48484a; transition:color .25s ease; }
.story__body .w.lit{ color:#e8e8ea; }
@media (max-width:760px){
  .story{ height:170vh; }
  .story__headline{ margin-bottom:24px; }
}

/* ===== PIN: laptop stays fixed, only the screen + side text swap on scroll ===== */
.pin{ position:relative; background:#000; height:380vh; z-index:6; }
.pin__sticky{ position:sticky; top:0; height:100vh; display:flex; align-items:center; }
.pin__wrap{
  width:100%; max-width:1360px; margin:0 auto; padding:0 40px;
  display:flex; align-items:center; gap:48px;
}
.pin__stage{ flex:0 0 auto; width:min(58vw,78vh); aspect-ratio:1 / 1; position:relative; }
.pin__shot{
  position:absolute; inset:0; width:100%; height:100%; object-fit:contain;
  opacity:0; transition:opacity .5s ease;
}
.pin__shot.is-on{ opacity:1; }
/* align middle screen's laptop onto the others (file 3 sits lower + slightly bigger) */
.pin__shot--mid{ transform:translateY(-2.3%) scale(0.983); transform-origin:center; }
.pin__panels{ flex:1 1 auto; position:relative; min-height:260px; }
.pin__panel{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center;
  opacity:0; transform:translateY(12px); transition:opacity .5s ease, transform .5s ease;
  pointer-events:none;
}
.pin__panel.is-on{ opacity:1; transform:none; pointer-events:auto; }
.pin__eyebrow{
  font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; margin-bottom:12px;
  background:linear-gradient(90deg,#b79ddd,#9ad2c9); -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.pin__title{
  font-size:clamp(24px,2.6vw,38px); font-weight:800; letter-spacing:-0.02em; line-height:1.12; margin-bottom:14px;
  background:linear-gradient(105deg,#9bb8ee 0%,#7e9fe0 45%,#b291e0 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
}
.pin__title--violet{ background:linear-gradient(105deg,#bfa0e8 0%,#a98cdb 50%,#8fb6e8 100%); -webkit-background-clip:text; background-clip:text; }
.pin__body{ font-size:clamp(15px,1.25vw,18px); color:#a1a1a6; line-height:1.55; max-width:420px; }
@media (max-width:900px){
  .pin{ height:190vh; }
  .pin__wrap{ flex-direction:column; gap:22px; padding:0 22px; }
  .pin__stage{ width:min(90vw,52vh); }
  .pin__panels{ width:100%; min-height:160px; text-align:center; }
  .pin__panel{ align-items:center; }
  .pin__body{ max-width:560px; }
}

/* ===== AI section: pinned — scroll zooms INTO the atom, then 4 cards appear ===== */
.ai{ position:relative; background:#000; height:340vh; z-index:6; }
.ai__sticky{ position:sticky; top:0; height:100vh; overflow:hidden; }

.ai__intro{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:34px; text-align:center; padding:0 24px; }
.ai__visual{ position:relative; display:flex; align-items:center; justify-content:center; transform-origin:center center; will-change:transform,opacity; }
.ai__glow{
  position:absolute; width:330px; height:330px; max-width:90vw; aspect-ratio:1; border-radius:50%;
  background:radial-gradient(circle, rgba(150,110,220,0.40), rgba(110,140,220,0.12) 45%, transparent 68%);
  filter:blur(8px); animation:aiPulse 5s ease-in-out infinite;
}
.ai__scroll{ transform-origin:center; will-change:transform; }
.ai__visual .alo-orb-wrap{ margin-bottom:0; }
.ai__text{ max-width:620px; will-change:opacity; }
.ai__eyebrow{
  font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; margin-bottom:12px;
  background:linear-gradient(90deg,#b79ddd,#9ad2c9); -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.ai__title{
  font-size:clamp(28px,3.6vw,50px); font-weight:800; letter-spacing:-0.03em; line-height:1.1; margin-bottom:16px;
  background:linear-gradient(105deg,#cdd9f4 0%,#9bb8ee 50%,#b291e0 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
}
.ai__body{ font-size:clamp(15px,1.2vw,18px); color:#a1a1a6; line-height:1.55; max-width:520px; margin:0 auto; }

.ai__cards{
  position:absolute; inset:0; display:grid; align-content:center; justify-content:center;
  grid-template-columns:repeat(2, minmax(0, 280px)); gap:18px; padding:0 24px;
  opacity:0; transform:scale(0.94); pointer-events:none; will-change:opacity,transform;
}
.ai__card{
  background:rgba(255,255,255,0.04); border:1px solid rgba(150,130,220,0.18); border-radius:18px; padding:24px;
  text-align:left; backdrop-filter:blur(8px);
}
.ai__card .ico{ font-size:24px; display:block; margin-bottom:12px; }
.ai__card h3{ font-size:clamp(16px,1.3vw,19px); font-weight:700; color:#f5f5f7; margin-bottom:8px; }
.ai__card p{ font-size:13.5px; color:#a1a1a6; line-height:1.5; }

@keyframes aiPulse{ 0%,100%{ opacity:1; } 50%{ opacity:0.7; } }
@media (max-width:760px){
  .ai{ height:190vh; }
  .ai__cards{ grid-template-columns:1fr; max-width:380px; gap:12px; }
  .ai__card{ padding:18px; }
}
