/* ==================================================================
   Mangea Group marketing homepage — DRAFT, nav + hero only, built for
   sign-off before continuing to the remaining sections. Separate route
   (/home) from the staff app (public/index.html) and the partner
   portal (public/portal/) — none of those are touched by this file.
   Tokens reuse the portal redesign's near-black/cream/gold family for
   consistency; the nav mark is the EXISTING real logo-icon.png as a
   placeholder only — Task 2's new Mangea Group mark concepts are
   presented separately for approval and are not wired in here yet.
   ================================================================== */
:root {
  --h-ink: #0B0B0A;
  --h-ink-2: #14140F;
  --h-gold: #C9A94A;
  --h-gold-soft: #E8D9AD;
  --h-cream: #F4F1E7;
  --h-cream-soft: rgba(244,241,231,0.7);
  --h-hair: rgba(201,169,74,0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--h-ink); color: var(--h-cream);
  font-family: 'IBM Plex Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* ---------------- Nav ---------------- */
.home-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; background: var(--h-ink); border-bottom: 1px solid var(--h-hair);
}
@media (min-width: 900px) { .home-nav { padding: 20px 40px; } }

.home-nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.home-nav-mark { width: 30px; height: auto; display: block; }
.home-nav-word { display: flex; flex-direction: column; line-height: 1.05; }
.home-nav-word strong { font-family: 'Parastoo', 'IBM Plex Serif', serif; font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.home-nav-word small { font-size: 9px; font-weight: 600; letter-spacing: .16em; color: var(--h-gold); }

.home-nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 28px; }
@media (min-width: 900px) { .home-nav-links { display: flex; } }
.home-nav-links a { font-size: 13px; font-weight: 500; color: var(--h-cream-soft); transition: color .15s; }
.home-nav-links a:hover { color: var(--h-cream); }

.home-portal-menu { position: relative; flex-shrink: 0; }
.home-portal-btn {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--h-cream); border: 1px solid var(--h-hair); padding: 9px 14px; transition: border-color .15s, background .15s;
}
.home-portal-btn:hover, .home-portal-btn[aria-expanded="true"] { border-color: var(--h-gold); background: rgba(201,169,74,0.08); }
.home-portal-btn svg { transition: transform .15s; flex-shrink: 0; }
.home-portal-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.home-portal-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 240px;
  background: var(--h-ink-2); border: 1px solid var(--h-hair); z-index: 51;
}
.home-portal-dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-size: 13px; font-weight: 500;
  border-bottom: 1px solid var(--h-hair); transition: background .15s, color .15s;
}
.home-portal-dropdown a:last-child { border-bottom: none; }
.home-portal-dropdown a:hover { background: rgba(201,169,74,0.08); color: var(--h-gold); }
.home-portal-dropdown svg { flex-shrink: 0; opacity: .7; }

/* ---------------- Hero ---------------- */
.home-hero {
  display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 65px); min-height: calc(100dvh - 65px);
}
@media (min-width: 900px) { .home-hero { grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 73px); min-height: calc(100dvh - 73px); } }

.home-hero-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 48px 24px 56px; position: relative; z-index: 1;
}
@media (min-width: 900px) { .home-hero-copy { padding: 0 8px 0 48px; } }

.home-hero-word {
  font-family: 'Parastoo', 'IBM Plex Serif', serif; font-weight: 700; color: var(--h-cream);
  margin: 0; line-height: 0.88; letter-spacing: -0.01em;
  font-size: clamp(64px, 15vw, 130px);
}
@media (min-width: 900px) { .home-hero-word { font-size: clamp(90px, 9vw, 160px); } }

.home-hero-tag {
  font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(20px, 4vw, 30px); line-height: 1.18; letter-spacing: .01em; margin: 0; color: var(--h-cream);
}
.home-hero-tag em { color: var(--h-gold); font-style: normal; }

.home-hero-sub { font-size: 14.5px; line-height: 1.6; color: var(--h-cream-soft); margin: 0; max-width: 40ch; }

.home-scroll-cue {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--h-gold-soft);
}
.home-scroll-cue::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--h-gold); display: block; }

.home-hero-photo { position: relative; min-height: 320px; overflow: hidden; }
/* Shift layer: the only thing the scroll-driven parallax ever touches. It
   sits exactly at the parent's bounds; the parent's own overflow:hidden is
   the real clipping edge, so translating this layer a few px can never
   reveal a gap - the zoomed <img> inside always has margin to spare. */
.home-hero-photo-shift { position: absolute; inset: 0; }
.home-hero-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: heroPhotoBreathe 16s ease-in-out infinite;
  will-change: transform;
}
/* A slow, symmetric breathing zoom - "the moment is still settling," not a
   pan across the frame. Scale only, so it stays GPU-compositor-only. */
@keyframes heroPhotoBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.09); }
}
/* Drifting dust/powder specks, independent of the photo beneath them -
   transform + opacity only, so ~20 of them cost nothing on slow devices. */
.home-hero-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.home-hero-particle {
  position: absolute; left: var(--x); bottom: -24px;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: radial-gradient(circle, rgba(244,241,231,0.95) 0%, rgba(244,241,231,0) 70%);
  opacity: 0;
  animation: heroParticleDrift var(--dur) linear infinite;
  animation-delay: var(--delay);
  will-change: transform, opacity;
}
@keyframes heroParticleDrift {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: var(--peak); }
  88% { opacity: var(--peak); }
  100% { transform: translate3d(var(--sway), calc(-1 * var(--travel)), 0); opacity: 0; }
}
.home-hero-photo::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,11,10,0.95) 0%, rgba(11,11,10,0.15) 22%, rgba(11,11,10,0) 45%);
}
@media (max-width: 899.98px) {
  .home-hero-photo::before { background: linear-gradient(0deg, rgba(11,11,10,0.95) 0%, rgba(11,11,10,0.1) 30%, rgba(11,11,10,0) 55%); }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-photo img { animation: none; }
  .home-hero-particles { display: none; }
}

/* ---------------- Shared section rhythm ---------------- */
.home-section { padding: 64px 24px; }
@media (min-width: 900px) { .home-section { padding: 96px 48px; } }
.home-section-head { max-width: 640px; margin: 0 0 40px; }
.home-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--h-gold); margin: 0 0 10px; text-transform: uppercase; }
.home-h2 {
  font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(24px, 4vw, 34px); line-height: 1.2; margin: 0 0 14px; color: var(--h-cream);
}
.home-h2 em { color: var(--h-gold); font-style: normal; }
.home-section-sub { font-size: 14.5px; line-height: 1.6; color: var(--h-cream-soft); margin: 0; max-width: 52ch; }
.home-placeholder-note {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  background: rgba(11,11,10,0.55); color: var(--h-gold-soft); font-size: 11px; font-weight: 700; letter-spacing: .04em;
}

/* ---------------- Process strip ---------------- */
.home-process { background: var(--h-ink); border-top: 1px solid var(--h-hair); border-bottom: 1px solid var(--h-hair); }
.home-process-inner { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 900px) { .home-process-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 24px; } }
.home-process-copy { flex: 0 0 auto; }
@media (min-width: 900px) { .home-process-copy { max-width: 260px; } }
.home-process-steps { display: grid; grid-template-columns: 1fr; gap: 28px; flex: 1; }
@media (min-width: 640px) { .home-process-steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.home-process-step { display: flex; flex-direction: column; gap: 10px; }
.home-process-icon { color: var(--h-gold); }
.home-process-step h3 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0; color: var(--h-cream); }
.home-process-step p { font-size: 13px; line-height: 1.5; color: var(--h-cream-soft); margin: 0; }

/* ---------------- Brand split ---------------- */
.home-brands { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .home-brands { grid-template-columns: 1fr 1fr; } }
.home-brand-panel { position: relative; min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 32px 28px; }
.home-brand-panel.is-speakit { background: #12160F; }
.home-brand-panel.is-corvelle { background: #1C1210; }
.home-brand-photo { position: absolute; inset: 0; z-index: 0; }
.home-brand-photo img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .55; }
.home-brand-panel.is-speakit .home-brand-photo::after,
.home-brand-panel.is-corvelle .home-brand-photo::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.15) 100%);
}
.home-brand-mark { position: absolute; top: 28px; left: 28px; z-index: 2; }
.home-brand-mark.is-speakit-mark img { height: 68px; width: auto; display: block; }
.home-brand-mark.is-corvelle-mark img { height: 64px; width: auto; display: block; }
.home-brand-tag { position: relative; z-index: 1; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--h-cream-soft); margin: 0 0 8px; }
.home-brand-desc { position: relative; z-index: 1; font-size: 14px; line-height: 1.6; color: var(--h-cream-soft); margin: 0 0 20px; max-width: 42ch; }
.home-brand-cta { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; border: 1px solid var(--h-hair); padding: 10px 18px; color: var(--h-cream); }
.home-brand-panel.is-speakit .home-brand-cta:hover { border-color: #7A9E6E; }
.home-brand-panel.is-corvelle .home-brand-cta:hover { border-color: var(--h-gold); }

/* ---------------- Product universe grid ---------------- */
.home-universe-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.home-universe-browse { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; color: var(--h-gold); border-bottom: 1px solid var(--h-gold); padding-bottom: 2px; white-space: nowrap; }
.home-universe-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--h-hair); }
@media (min-width: 700px) { .home-universe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .home-universe-grid { grid-template-columns: repeat(4, 1fr); } }
.home-universe-tile { position: relative; min-height: 300px; background: var(--h-ink-2); display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 20px; overflow: hidden; }
.home-universe-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .6; }
.home-universe-tile::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(11,11,10,0.92) 0%, rgba(11,11,10,0.25) 60%); }
.home-universe-tile-body { position: relative; z-index: 2; }
.home-universe-tile h3 { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 8px; color: var(--h-cream); }
.home-universe-tile p { font-size: 12.5px; line-height: 1.5; color: var(--h-cream-soft); margin: 0; }

/* ---------------- Built for your business ---------------- */
.home-built { background: var(--h-cream); color: var(--h-ink); display: flex; flex-direction: column; }
@media (min-width: 900px) { .home-built { flex-direction: row; } }
.home-built-main { flex: 1; padding: 48px 28px; }
@media (min-width: 900px) { .home-built-main { padding: 56px 48px; } }
.home-built-head { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 28px; color: var(--h-ink); max-width: 20ch; line-height: 1.4; }
.home-built-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .home-built-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .home-built-grid { grid-template-columns: repeat(4, 1fr); } }
.home-built-item h3 { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 10px 0 6px; color: var(--h-ink); }
.home-built-item p { font-size: 13px; line-height: 1.5; color: #6B6656; margin: 0; }
.home-built-stats { flex: 0 0 auto; background: var(--h-ink); color: var(--h-cream); padding: 40px 32px; display: flex; flex-direction: row; gap: 32px; align-items: center; justify-content: center; }
@media (min-width: 900px) { .home-built-stats { flex-direction: column; align-items: flex-start; justify-content: center; width: 220px; gap: 26px; } }
.home-built-stat .home-stat-num { font-family: 'Reddit Mono', monospace; font-size: 30px; font-weight: 700; color: var(--h-gold-soft); line-height: 1; }
.home-built-stat .home-stat-label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--h-cream-soft); margin-top: 4px; }

/* ---------------- Client Portal teaser ---------------- */
.home-portal-teaser { background: var(--h-ink); display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 900px) { .home-portal-teaser { flex-direction: row; align-items: center; gap: 56px; } }
.home-device-mock { flex: 0 0 auto; position: relative; width: 100%; max-width: 480px; margin: 0 auto; }
.home-device-laptop { border: 10px solid #26261F; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
.home-device-laptop img { width: 100%; display: block; }
.home-device-base { height: 12px; background: #26261F; margin: 0 -6px; border-radius: 0 0 6px 6px; }
.home-portal-teaser-copy { flex: 1; }
.home-portal-features { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 480px) { .home-portal-features { grid-template-columns: 1fr 1fr; } }
.home-portal-features li { display: flex; align-items: flex-start; gap: 10px; }
.home-portal-features .home-feat-icon { color: var(--h-gold); flex-shrink: 0; margin-top: 2px; }
.home-portal-features strong { display: block; font-size: 13px; color: var(--h-cream); }
.home-portal-features span { font-size: 12.5px; color: var(--h-cream-soft); }
.home-portal-teaser-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.home-btn-primary { background: var(--h-gold); color: var(--h-ink); font-size: 13px; font-weight: 700; padding: 12px 22px; display: inline-flex; align-items: center; gap: 8px; }
.home-btn-secondary { border: 1px solid var(--h-hair); color: var(--h-cream); font-size: 13px; font-weight: 700; padding: 12px 22px; display: inline-flex; align-items: center; gap: 8px; }

/* ---------------- Where Mangea goes to work ---------------- */
.home-venues-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--h-hair); }
@media (min-width: 700px) { .home-venues-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .home-venues-grid { grid-template-columns: repeat(6, 1fr); } }
.home-venue-tile { position: relative; aspect-ratio: 3/4; background: var(--h-ink-2); overflow: hidden; }
.home-venue-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-venue-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,11,10,0.85) 0%, rgba(11,11,10,0.1) 60%); }
.home-venue-label { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--h-cream); }

/* ---------------- Closing CTA + footer ---------------- */
.home-closing { background: var(--h-ink); border-top: 1px solid var(--h-hair); display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 900px) { .home-closing { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; } }
.home-closing-word {
  font-family: 'Parastoo', 'IBM Plex Serif', serif; font-weight: 700; color: var(--h-gold);
  font-size: clamp(40px, 7vw, 68px); line-height: 0.95; margin: 0;
}
.home-closing-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--h-cream-soft); margin: 0 0 8px; text-transform: uppercase; }
.home-closing-mid { font-size: 14px; color: var(--h-cream-soft); line-height: 1.6; margin: 0; max-width: 32ch; }
.home-closing-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.home-footer { border-top: 1px solid var(--h-hair); padding: 40px 24px; }
@media (min-width: 900px) { .home-footer { padding: 40px 48px; } }
.home-footer-top { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
@media (min-width: 700px) { .home-footer-top { flex-direction: row; align-items: center; justify-content: space-between; } }
.home-footer-links { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.home-footer-links a { font-size: 12.5px; color: var(--h-cream-soft); }
.home-footer-links a:hover { color: var(--h-cream); }
.home-footer-bottom { font-size: 11.5px; color: var(--h-cream-soft); }

/* ---------------- Partners ---------------- */
.home-partners .home-h2 { margin-bottom: 32px; }
.home-partners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--h-hair); border: 1px solid var(--h-hair); }
@media (min-width: 700px) { .home-partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .home-partners-grid { grid-template-columns: repeat(6, 1fr); } }
.home-partner-tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 3/2; padding: 22px; background: var(--h-ink); }
/* Logos arrive in their own colours; several are black ink that would vanish
   on this near-black page, so every mark is shown as one cream silhouette. */
.home-partner-tile img { max-width: 100%; max-height: 72px; object-fit: contain; filter: brightness(0) invert(1); opacity: .72; transition: opacity .25s; }
.home-partner-tile:hover img { opacity: 1; }
