/* Homepage V4 - cinematic, editorial and responsive */
.home-v4 {
  --home-ink: #f4f2ed;
  --home-muted: rgba(244,242,237,.68);
  --home-line: rgba(255,255,255,.13);
  --home-panel: rgba(10,29,27,.76);
  background: #f3f1ec;
}

.home-v4 .page-main,
.home-v4 main { overflow: clip; }

.home-v4 .nav-over-hero {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  background: linear-gradient(180deg, rgba(3,12,11,.78), rgba(3,12,11,0));
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.home-v4 .nav-over-hero .nav-menu > a,
.home-v4 .nav-over-hero .brand small { color: rgba(255,255,255,.78); }
.home-v4 .nav-over-hero .nav-toggle span { background: #fff; }
.home-v4 .nav-over-hero .nav-toggle { border-color: rgba(255,255,255,.24); background: rgba(0,0,0,.16); }
.home-v4 .nav-over-hero .nav-cta { background: var(--coral); color: #fff; }
.home-v4 .nav-over-hero.scrolled {
  background: rgba(4,18,17,.82);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(1.2);
}

.cinematic-hero {
  position: relative;
  height: 390vh;
  min-height: 2500px;
  background: #041211;
  color: #fff;
}
.cinematic-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
}
#heroCanvas,
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#heroCanvas { z-index: -6; opacity: 0; transition: opacity .6s ease; }
.hero-motion #heroCanvas { opacity: 1; }
.hero-motion .hero-poster { opacity: 0; }
.hero-poster { z-index: -7; object-position: 62% center; transition: opacity .5s ease; }
.hero-film {
  position: absolute;
  inset: 0;
  z-index: -5;
  background:
    linear-gradient(90deg, rgba(2,12,11,.94) 0%, rgba(2,12,11,.82) 34%, rgba(2,12,11,.28) 68%, rgba(2,12,11,.46) 100%),
    linear-gradient(180deg, rgba(3,13,12,.34), rgba(3,13,12,.12) 55%, rgba(3,13,12,.86));
}
.hero-film::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 80%);
}
.hero-aura {
  position: absolute;
  width: min(52vw, 850px);
  aspect-ratio: 1;
  right: -7vw;
  top: 8vh;
  z-index: -4;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,163,151,.18), rgba(37,163,151,.04) 48%, transparent 70%);
  filter: blur(2px);
}

.hero-beats {
  position: relative;
  width: min(1240px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 84px);
}
.hero-beat {
  position: absolute;
  left: clamp(24px, 6vw, 84px);
  top: 50%;
  width: min(620px, calc(100% - 48px));
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
}
.hero-beat:first-child { opacity: 1; visibility: visible; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .27em;
  text-transform: uppercase;
  color: #dd8e84;
}
.hero-eyebrow::before { content: ""; width: 42px; height: 1px; background: currentColor; }
.hero-beat h1,
.hero-beat h2 {
  max-width: 11ch;
  font-size: clamp(50px, 6vw, 94px);
  line-height: .94;
  letter-spacing: -.055em;
  color: #fff;
}
.hero-beat h2 { font-size: clamp(44px, 5.5vw, 82px); }
.hero-beat .accent { color: #e08378; }
.hero-deck {
  max-width: 55ch;
  margin-top: 26px;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.72;
  color: var(--home-muted);
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-buttons .btn-ghost { color: #fff; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.04); }
.hero-buttons .btn-ghost:hover { background: rgba(255,255,255,.1); }

.hero-bridge {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 650px;
  margin-top: 34px;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--home-line);
}
.hero-bridge > div { padding: 22px; background: rgba(3,18,17,.72); backdrop-filter: blur(12px); }
.hero-bridge span { display: block; color: #e08378; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.hero-bridge strong { display: block; margin-top: 9px; font-size: 14px; line-height: 1.42; color: #fff; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 630px;
  margin-top: 34px;
}
.hero-metric {
  padding: 24px;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: rgba(3,18,17,.66);
  backdrop-filter: blur(14px);
}
.hero-metric strong { display: block; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.045em; color: #fff; }
.hero-metric span { display: block; margin-top: 8px; color: var(--home-muted); font-size: 13px; line-height: 1.45; }

.hero-nameplate {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(3,18,17,.58);
  backdrop-filter: blur(14px);
}
.hero-nameplate .dot { width: 9px; height: 9px; border-radius: 50%; background: #e08378; box-shadow: 0 0 0 7px rgba(224,131,120,.12); }
.hero-nameplate span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.78); }

.hero-progress {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: 2px auto;
  gap: 17px;
  align-items: stretch;
  z-index: 8;
}
.hero-progress-track { position: relative; width: 2px; height: 240px; background: rgba(255,255,255,.16); overflow: hidden; }
.hero-progress-fill { position: absolute; inset: 0 0 auto; height: 0; background: #e08378; }
.hero-progress-labels { display: flex; flex-direction: column; justify-content: space-between; padding: 0; }
.hero-progress-labels span { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.4); transition: color .3s ease; }
.hero-progress-labels span.active { color: #fff; }
.hero-scroll-cue {
  position: absolute;
  left: clamp(24px, 6vw, 84px);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.54);
}
.hero-scroll-cue i { display: block; width: 44px; height: 1px; background: rgba(255,255,255,.38); position: relative; overflow: hidden; }
.hero-scroll-cue i::after { content: ""; position: absolute; inset: 0; background: #e08378; transform: translateX(-100%); animation: cue 2.3s ease-in-out infinite; }
@keyframes cue { 50%,100% { transform: translateX(100%); } }

.home-section { max-width: 1220px; margin: 0 auto; padding: clamp(78px, 10vw, 144px) clamp(24px, 6vw, 76px); }
.home-manifesto { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(42px, 8vw, 110px); align-items: end; }
.home-manifesto h2 { max-width: 13ch; font-size: clamp(38px, 5vw, 66px); line-height: 1.02; letter-spacing: -.045em; color: var(--teal-deep); }
.home-manifesto-copy p { font-size: 17px; line-height: 1.78; color: rgba(6,64,63,.72); }
.home-manifesto-copy p + p { margin-top: 18px; }

.capability-rail { border-top: 1px solid rgba(6,87,88,.14); border-bottom: 1px solid rgba(6,87,88,.14); }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.capability-item { position: relative; padding: 34px 28px 36px; border-right: 1px solid rgba(6,87,88,.12); min-height: 220px; }
.capability-item:last-child { border-right: 0; }
.capability-item .cap-num { display: block; font-size: 11px; letter-spacing: .18em; color: var(--coral); }
.capability-item h3 { margin-top: 40px; font-size: 21px; line-height: 1.12; color: var(--teal-deep); }
.capability-item p { margin-top: 12px; font-size: 14px; line-height: 1.65; color: rgba(6,64,63,.68); }

.work-stage { background: #071816; color: #fff; }
.work-stage .home-section { padding-top: clamp(86px, 11vw, 150px); padding-bottom: clamp(86px, 11vw, 150px); }
.work-stage-head { display: grid; grid-template-columns: 1fr .7fr; gap: 40px; align-items: end; margin-bottom: 58px; }
.work-stage h2 { max-width: 12ch; font-size: clamp(42px, 5.5vw, 72px); line-height: .98; letter-spacing: -.05em; color: #fff; }
.work-stage-head > p { max-width: 48ch; color: rgba(255,255,255,.64); font-size: 16px; line-height: 1.7; }
.work-story-list { display: grid; gap: 24px; }
.work-story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
  background: #0b2421;
  color: #fff;
}
.work-story:nth-child(even) { grid-template-columns: minmax(330px, .8fr) minmax(0, 1.2fr); }
.work-story:nth-child(even) .work-story-copy { order: 2; }
.work-story:nth-child(even) .work-story-visual { order: 1; }
.work-story-copy { padding: clamp(34px, 5vw, 66px); display: flex; flex-direction: column; justify-content: center; }
.work-story-copy small { color: #df877c; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.work-story-copy h3 { max-width: 17ch; margin-top: 18px; font-size: clamp(30px, 4vw, 48px); line-height: 1.02; letter-spacing: -.035em; color: #fff; }
.work-story-copy p { max-width: 53ch; margin-top: 19px; color: rgba(255,255,255,.65); font-size: 15px; line-height: 1.72; }
.work-story-copy .impact-line { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 14px; font-weight: 700; }
.work-story-copy .more { margin-top: 22px; color: #e58e83; font-weight: 700; }
.work-story-visual { position: relative; min-height: 360px; overflow: hidden; background: #0f2b27; }
.work-story-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .68; filter: saturate(.8) contrast(1.08); }
.work-story-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,36,33,.48), transparent 60%), linear-gradient(0deg, rgba(3,15,14,.5), transparent); }
.visual-data-grid { position: absolute; inset: 0; padding: 46px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 12px; background: radial-gradient(circle at 70% 20%, rgba(224,131,120,.18), transparent 38%); }
.visual-data-grid span { display: block; border-radius: 999px 999px 8px 8px; background: linear-gradient(180deg, #df877c, rgba(223,135,124,.15)); box-shadow: 0 0 28px rgba(223,135,124,.15); }
.visual-state-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; padding: 44px; align-content: center; }
.visual-state-grid span { aspect-ratio: 1; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.045); }
.visual-state-grid span:nth-child(3n), .visual-state-grid span:nth-child(7n) { background: rgba(224,131,120,.24); border-color: rgba(224,131,120,.4); }

.product-stage { background: #f3f1ec; }
.product-stage-head { display: grid; grid-template-columns: 1.05fr .75fr; gap: 50px; align-items: end; margin-bottom: 54px; }
.product-stage h2 { max-width: 12ch; font-size: clamp(40px, 5vw, 66px); line-height: 1; letter-spacing: -.045em; color: var(--teal-deep); }
.product-stage-head > p { color: rgba(6,64,63,.7); line-height: 1.72; }
.product-grid-v4 { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; }
.product-story { display: flex; flex-direction: column; min-height: 520px; padding: 22px; overflow: hidden; border: 1px solid rgba(6,87,88,.12); border-radius: 28px; background: #fff; box-shadow: 0 28px 70px -52px rgba(6,64,63,.5); color: var(--teal-deep); }
.product-story.featured { background: #071816; color: #fff; }
.product-story-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.product-story-meta span { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--coral); }
.product-story-meta b { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: rgba(6,64,63,.48); }
.product-story.featured .product-story-meta b { color: rgba(255,255,255,.44); }
.product-device { position: relative; height: 260px; margin: 24px 0 30px; overflow: hidden; border-radius: 22px; background: #e9e5dc; }
.product-story.featured .product-device { background: #102d29; }
.product-story h3 { font-size: 29px; letter-spacing: -.03em; color: inherit; }
.product-story p { margin-top: 13px; font-size: 14px; line-height: 1.68; color: rgba(6,64,63,.68); }
.product-story.featured p { color: rgba(255,255,255,.64); }
.product-story .more { margin-top: auto; padding-top: 22px; color: var(--coral); font-weight: 700; }
.reader-mock { position: absolute; width: 72%; height: 84%; left: 14%; top: 10%; border-radius: 18px; background: #fbfaf6; box-shadow: 0 24px 50px rgba(0,0,0,.22); padding: 22px; transform: rotate(-3deg); }
.reader-mock::before { content: "Chapter 04"; display: block; color: #c46960; font-size: 9px; letter-spacing: .17em; text-transform: uppercase; }
.reader-mock::after { content: "The future of reading is not only about access. It is about presence, voice and attention."; display: block; margin-top: 24px; color: #0a4543; font-family: Georgia, serif; font-size: 17px; line-height: 1.45; }
.reader-wave { position: absolute; left: 22%; right: 22%; bottom: 20px; height: 26px; display: flex; gap: 4px; align-items: center; }
.reader-wave i { flex: 1; border-radius: 999px; background: #df877c; animation: wave 1.4s ease-in-out infinite alternate; }
.reader-wave i:nth-child(2n) { animation-delay: -.7s; }
@keyframes wave { from { height: 4px; } to { height: 24px; } }
.map-mock { position: absolute; inset: 0; background: linear-gradient(35deg, transparent 48%, rgba(6,87,88,.12) 49%, rgba(6,87,88,.12) 51%, transparent 52%), linear-gradient(-28deg, transparent 46%, rgba(6,87,88,.1) 47%, rgba(6,87,88,.1) 49%, transparent 50%); background-size: 78px 78px, 96px 96px; }
.map-route { position: absolute; width: 70%; height: 56%; left: 15%; top: 22%; border: 4px solid #c46960; border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(18deg); }
.map-pin { position: absolute; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; background: #065758; transform: rotate(-45deg); }
.map-pin.one { left: 22%; bottom: 24%; }.map-pin.two { right: 20%; top: 22%; background: #c46960; }
.market-mock { position: absolute; inset: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.market-card { padding: 14px; border-radius: 15px; background: rgba(255,255,255,.72); box-shadow: 0 10px 30px rgba(6,64,63,.08); }
.market-card b { display: block; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(145deg, rgba(6,87,88,.2), rgba(196,105,96,.2)); }
.market-card span { display: block; height: 7px; margin-top: 12px; border-radius: 99px; background: rgba(6,87,88,.18); }
.market-card span:last-child { width: 64%; }

.thinking-stage { background: #fffdf8; }
.thinking-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 20px; }
.thinking-card { min-height: 360px; padding: 30px; border: 1px solid rgba(6,87,88,.11); border-radius: 26px; background: #fff; color: var(--teal-deep); display: flex; flex-direction: column; transition: transform .35s ease, box-shadow .35s ease; }
.thinking-card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px -45px rgba(6,64,63,.5); }
.thinking-card.featured { color: #fff; background: linear-gradient(145deg, #0c2a27, #06100f); }
.thinking-card span { color: var(--coral); font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.thinking-card h3 { margin-top: auto; font-size: clamp(25px, 3vw, 39px); line-height: 1.02; letter-spacing: -.035em; color: inherit; }
.thinking-card p { margin-top: 14px; font-size: 14px; line-height: 1.65; color: rgba(6,64,63,.66); }
.thinking-card.featured p { color: rgba(255,255,255,.64); }
.thinking-card b { margin-top: 20px; color: var(--coral); font-size: 13px; }

.home-cta-v4 { padding-top: 40px; padding-bottom: 120px; }
.home-cta-panel { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 90px); border-radius: 34px; background: #071816; text-align: center; color: #fff; }
.home-cta-panel::before { content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%; left: 50%; top: 100%; transform: translate(-50%,-35%); background: radial-gradient(circle, rgba(196,105,96,.22), transparent 68%); }
.home-cta-panel > * { position: relative; }
.home-cta-panel h2 { max-width: 15ch; margin: 0 auto; font-size: clamp(36px, 5vw, 62px); line-height: 1; letter-spacing: -.045em; color: #fff; }
.home-cta-panel p { max-width: 56ch; margin: 20px auto 0; color: rgba(255,255,255,.64); line-height: 1.7; }

@media (max-width: 1000px) {
  .hero-progress { display: none; }
  .work-story, .work-story:nth-child(even) { grid-template-columns: 1fr; }
  .work-story:nth-child(even) .work-story-copy, .work-story:nth-child(even) .work-story-visual { order: initial; }
  .work-story-visual { min-height: 310px; }
  .product-grid-v4 { grid-template-columns: 1fr 1fr; }
  .product-story:first-child { grid-column: 1 / -1; }
  .thinking-grid { grid-template-columns: 1fr 1fr; }
  .thinking-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .cinematic-hero { height: auto; min-height: 100svh; }
  .cinematic-stage { position: relative; min-height: 760px; height: 100svh; }
  .hero-beat { top: auto; bottom: 76px; transform: none; width: calc(100% - 48px); }
  .hero-beat:not(:first-child) { display: none; }
  .hero-beat h1 { font-size: clamp(46px, 13vw, 66px); max-width: 9ch; }
  .hero-deck { font-size: 15px; max-width: 44ch; }
  .hero-bridge, .hero-metrics { display: none; }
  .hero-film { background: linear-gradient(180deg, rgba(3,13,12,.2) 0%, rgba(3,13,12,.35) 38%, rgba(3,13,12,.94) 78%); }
  .hero-poster { object-position: 61% center; }
  .hero-scroll-cue { display: none; }
  .home-manifesto, .work-stage-head, .product-stage-head { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .capability-item:nth-child(2) { border-right: 0; }
  .capability-item:nth-child(-n+2) { border-bottom: 1px solid rgba(6,87,88,.12); }
  .product-grid-v4, .thinking-grid { grid-template-columns: 1fr; }
  .product-story:first-child, .thinking-card:first-child { grid-column: auto; }
  .product-story { min-height: 500px; }
  .home-v4 .nav-over-hero { background: linear-gradient(180deg, rgba(3,12,11,.88), transparent); }
}

@media (max-width: 520px) {
  .hero-buttons { align-items: stretch; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-item { border-right: 0; border-bottom: 1px solid rgba(6,87,88,.12); min-height: auto; }
  .work-story { border-radius: 22px; }
  .work-story-copy { padding: 28px 23px 34px; }
  .work-story-visual { min-height: 250px; }
  .product-story { border-radius: 22px; }
  .thinking-card { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .reader-wave i, .hero-scroll-cue i::after { animation: none; }
}
