/* ============================================================
   home.css — Riva Rocci · Home Page Styles
   ============================================================ */

/* ── HERO ── */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding-bottom: 8vh; overflow: hidden;
}
.hero video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(.45); z-index: 0;
}
.hero-bg-fallback {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 60% 30%, rgba(26, 79, 255, .35) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(11, 122, 16, .28) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(240, 194, 0, .2)  0%, transparent 50%),
    var(--ink);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, transparent 30%, rgba(13, 12, 10, .75) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 820px; padding: 0 2rem;
}
.hero-eyebrow {
  font-size: .7rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(240, 235, 224, .5); margin-bottom: 1.4rem;
}
.hero-hl {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: .92; letter-spacing: -.03em; margin-bottom: 1.6rem;
}
.hero-hl .l1 { font-style: italic; display: block; color: var(--cream); }
.hero-hl .l2 {
  display: block;
  background: linear-gradient(100deg, var(--blue-l), var(--grn-l), var(--yel-l));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: .95rem; color: rgba(240, 235, 224, .6);
  max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.75; font-weight: 300;
}
.hero-ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 2.2rem; right: 3rem;
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.hs-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(240, 235, 224, .45), transparent);
  animation: spulse 2s ease-in-out infinite;
}
.hs-lbl { font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(240, 235, 224, .3); }
@keyframes spulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

/* ── IDENTITY STRIP ── */
.identity {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.id-cell {
  padding: 2rem 2.5rem; border-right: 1px solid var(--border);
  display: flex; align-items: center; gap: 1.1rem; transition: background-color .2s;
}
.id-cell:last-child { border-right: none; }
.id-cell:hover { background: rgba(240, 235, 224, .03); }
.id-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.id-label { font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.id-val { font-weight: 500; font-size: .9rem; }

/* ── MANIFESTO ── */
.manifesto {
  padding: 9rem 3rem; text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.manifesto-bg-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; filter: brightness(.5);
}
.manifesto-bg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 900;
  font-size: 28vw; line-height: 1; color: rgba(240, 235, 224, .025);
  pointer-events: none; white-space: nowrap; letter-spacing: -.04em; z-index: 0;
}
.manifesto-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.manifesto-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 2rem;
}
.manifesto-hl {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 2rem;
}
.manifesto-hl em { font-style: normal; color: var(--yel-l); }
.manifesto-body {
  font-size: 1rem; color: var(--cream); line-height: 1.85;
  font-weight: 300; max-width: 580px; margin: 0 auto 3rem;
}

/* ── PILLARS ── */
.pillars-section { border-bottom: 1px solid var(--border); }

.pillars-header {
  padding: 2.8rem 3rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
}
.pillars-header-left { display: flex; flex-direction: column; gap: .7rem; }
.pillars-tag {
  font-size: .65rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}
.pillars-h {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.03em; line-height: .95;
  white-space: nowrap;
}
.pillars-h em { font-style: normal; color: var(--yel-l); }
.pillars-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; flex-shrink: 0; }
.pillars-header-divider { display: none; }
.pillars-sub {
  font-size: .75rem; font-weight: 300; color: var(--dim);
  letter-spacing: .04em; text-align: right;
}

.pillar-row {
  display: grid; grid-template-columns: 58% 1fr;
  border-bottom: 1px solid var(--border); min-height: 380px;
}
.pillar-row:last-child { border-bottom: none; }

.pillar-row-flip { grid-template-columns: 1fr 58%; }
.pillar-row-flip .pillar-row-img { grid-column: 2; grid-row: 1; border-right: none; border-left: 1px solid var(--border); }
.pillar-row-flip .pillar-row-txt { grid-column: 1; grid-row: 1; }
.pillar-row-flip .pillar-row-bg { right: auto; left: -1rem; }

.pillar-row-img {
  position: relative; overflow: hidden;
  border-right: 1px solid var(--border);
}
.pillar-row-img .ph { position: absolute; inset: 0; border-radius: 0; }
.pillar-row-txt {
  padding: 3.5rem; display: flex; flex-direction: column;
  justify-content: center; position: relative; overflow: hidden;
}
.pillar-row-num {
  font-size: .6rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem;
}
.pillar-row-name {
  font-family: 'Playfair Display', serif; font-weight: 900; font-style: italic;
  font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.02;
  letter-spacing: -.03em; margin-bottom: 1.2rem; position: relative; z-index: 1;
}
.pillar-row-desc {
  font-size: .88rem; color: var(--dim); line-height: 1.8;
  font-weight: 300; max-width: 360px; position: relative; z-index: 1;
}
.pillar-row-bg {
  position: absolute; right: -1rem; bottom: -2rem;
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 900;
  font-size: clamp(7rem, 12vw, 12rem); line-height: 1; letter-spacing: -.04em;
  color: rgba(240, 235, 224, .04); pointer-events: none; z-index: 0;
}

/* ── ABOUT STRIP ── */
.about-section {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border); min-height: 520px;
}
.about-txt {
  padding: 6rem 3rem; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
}
.about-tag { font-size: .65rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.about-hl {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 900;
  font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 1.5rem;
}
.about-hl em { font-style: normal; color: var(--grn-l); }
.about-body { font-size: .88rem; color: var(--dim); line-height: 1.85; font-weight: 300; margin-bottom: 2.5rem; max-width: 520px; }
.about-photos {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 3px; background: var(--border);
}
.about-photos .ph { border-radius: 0; background: rgba(240, 235, 224, .04); }
.about-photos .ph:first-child { grid-row: span 2; }

/* ── STATS ── */
.stats-section {
  padding: 7rem 3rem; text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--ink);
  position: relative; overflow: hidden;
}
.stats-blobs { display: none; }
.stats-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
  opacity: 0;
  bottom: -150px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  animation: ringFloat linear infinite;
}
@keyframes ringFloat {
  0%   { transform: translateX(-50%) translateY(0);      opacity: 0; }
  8%   { opacity: .45; }
  100% { transform: translateX(-50%) translateY(-800px);  opacity: 0; }
}
.stats-blobs span { position: absolute; border-radius: 50%; filter: blur(72px); }
.stats-blobs span:nth-child(1) {
  width: 400px; height: 260px; background: rgba(26, 79, 255, .1);
  top: -60px; left: -80px; animation: sblob1 16s ease-in-out infinite;
}
.stats-blobs span:nth-child(2) {
  width: 320px; height: 320px; background: rgba(11, 122, 16, .09);
  bottom: -80px; right: 5%; animation: sblob2 20s ease-in-out infinite;
}
.stats-blobs span:nth-child(3) {
  width: 240px; height: 240px; background: rgba(240, 194, 0, .08);
  top: 30%; left: 45%; animation: sblob3 13s ease-in-out infinite;
}
@keyframes sblob1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(50px, 25px); } }
@keyframes sblob2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-35px, -30px); } }
@keyframes sblob3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-25px, 35px); } }

.stats-tag   { font-size: .65rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; position: relative; z-index: 2; }
.stats-num   { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 900; font-size: clamp(4rem, 12vw, 10rem); line-height: 1; letter-spacing: -.04em; margin-bottom: .5rem; position: relative; z-index: 2; }
.stats-num .n-b { color: var(--blue-l); }
.stats-num .n-g { color: var(--grn-l); }
.stats-num .n-y { color: var(--yel-l); }
.stats-label { font-size: 1rem; color: var(--dim); font-weight: 300; margin-bottom: 3rem; position: relative; z-index: 2; }
.stats-sub   { font-size: .8rem; color: var(--muted); max-width: 420px; margin: 0 auto; line-height: 1.75; font-weight: 300; position: relative; z-index: 2; }

/* ── INSTAGRAM FEED ── */
.ig-section { border-bottom: 1px solid var(--border); overflow: hidden; }

.ig-section-header {
  padding: 2.8rem 3rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
}
.ig-section-left { display: flex; flex-direction: column; gap: .7rem; }
.ig-section-tag {
  font-size: .65rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}
.ig-section-hl {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.03em; line-height: .95;
  white-space: nowrap;
}
.ig-section-hl em { font-style: normal; color: var(--yel-l); }
.ig-section-handle { font-size: .75rem; font-weight: 300; color: var(--dim); letter-spacing: .04em; }
.ig-follow-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .7rem 1.6rem; border-radius: 100px;
  background: rgba(26, 79, 255, .15); color: var(--blue-l);
  border: 1px solid rgba(26, 79, 255, .3); flex-shrink: 0; transition: background .2s;
}
.ig-follow-btn:hover { background: rgba(26, 79, 255, .25); }

.ig-feed {
  display: grid; grid-template-columns: repeat(7, 1fr);
  align-items: start; overflow: hidden;
  padding: 2.5rem 3rem 3rem; gap: 16px;
}
.ig-feed-pad { display: none; }

.ig-post {
  width: 100% !important;
  background: rgba(240, 235, 224, .03);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: background .2s;
  cursor: pointer; text-decoration: none; color: inherit;
}
.ig-post:hover { background: rgba(240, 235, 224, .06); }

/* Staggered vertical offsets */
.ig-post:nth-child(1) { margin-top: 0; }
.ig-post:nth-child(2) { margin-top: 48px; }
.ig-post:nth-child(3) { margin-top: 12px; }
.ig-post:nth-child(4) { margin-top: 60px; }
.ig-post:nth-child(5) { margin-top: 20px; }
.ig-post:nth-child(6) { margin-top: 40px; }
.ig-post:nth-child(7) { margin-top: 8px; }

/* Varied aspect ratios */
.ig-post:nth-child(odd)  .ig-post-img { aspect-ratio: 4/5; }
.ig-post:nth-child(even) .ig-post-img { aspect-ratio: 1/1; }

.ig-post-header {
  padding: .6rem .8rem;
  display: flex; align-items: center; gap: .6rem;
  border-bottom: 1px solid var(--border);
}
.ig-post-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.ig-post-name { font-size: .72rem; font-weight: 500; color: var(--cream); }
.ig-post-loc  { font-size: .62rem; color: var(--muted); }

.ig-post-img {
  width: 100%; display: block; flex-shrink: 0;
  position: relative; overflow: hidden;
}
.ig-post-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.ig-post-actions { padding: .55rem .8rem .3rem; display: flex; gap: .75rem; align-items: center; }
.ig-post-actions svg { opacity: .55; flex-shrink: 0; }
.ig-post-likes   { padding: 0 .8rem .25rem; font-size: .7rem; font-weight: 500; color: var(--cream); }
.ig-post-caption { padding: 0 .8rem .3rem; font-size: .7rem; color: var(--dim); line-height: 1.45; }
.ig-post-caption strong { color: var(--cream); font-weight: 600; }
.ig-post-time    { padding: 0 .8rem .7rem; font-size: .58rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ── ULTRA-WIDE (1920px+) ── */
@media (min-width: 1920px) {
  .hero-content       { max-width: 1080px; }
  .hero-scroll        { right: 6rem; }

  .manifesto          { padding: 12rem 8rem; }
  .manifesto-inner    { max-width: 960px; }

  .pillars-header     { padding: 3.5rem 8rem; }
  .pillar-row-txt     { padding: 5rem 6rem; }
  .pillar-row-desc    { max-width: 480px; }
  .pillar-row         { min-height: 500px; }

  .about-txt          { padding: 8rem 6rem; }
  .about-section      { min-height: 640px; }

  .stats-section      { padding: 10rem 8rem; }

  .ig-section-header  { padding: 3rem 8rem; }
  .ig-feed            { padding: 3.5rem 8rem 4.5rem; gap: 24px; }

  .id-cell            { padding: 2.5rem 4rem; }

  footer              { padding: 6rem 8rem 3.5rem; }
  .ft-grid            { gap: 6rem; }

  .cta-section        { padding: 14rem 8rem; }
}
