/* ============================================================
   luseen.co — Homepage styles
   ============================================================ */


/* ───────────── HERO ───────────── */
.hero {
  min-height: calc(100vh - 120px);
  padding: 80px 32px 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: clip;
}

.hero-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease forwards;
}
.hero-meta .line { flex: 0 0 60px; height: 1px; background: var(--ink); }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(80px, 14vw, 240px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-weight: 400;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: visible;
}
.hero h1 .word { display: inline-block; overflow: visible; }
.hero h1 .word span {
  display: inline-block;
  transform: translateY(110%);
  animation: wordReveal 0.9s var(--ease-out-quart) forwards;
}
@keyframes wordReveal { to { transform: translateY(0); } }
.hero h1 .italic { font-style: italic; font-weight: 300; }
.hero h1 .red { color: var(--red); }
.hero h1 .blue { color: var(--blue); }

/* Rotating final word */
.rotator {
  display: inline-block;
  height: 1.3em;
  overflow-y: clip;
  overflow-x: visible;
  vertical-align: bottom;
  position: relative;
  padding-right: 0.12em;
}
.rotator-inner {
  display: flex;
  flex-direction: column;
  animation: rotateWords 9s infinite;
}
.rotator-inner span {
  display: block;
  height: 1.3em;
  line-height: 1;
  padding-bottom: 0.3em;
  font-style: italic;
  font-weight: 300;
}
.rotator-inner .r1 { color: var(--red); }
.rotator-inner .r2 { color: var(--blue); }
.rotator-inner .r3 { color: var(--red); }
.rotator-inner .r4 { color: var(--red); }
@keyframes rotateWords {
  0%,  28%  { transform: translateY(0); }
  31%, 61%  { transform: translateY(-1.3em); }
  64%, 94%  { transform: translateY(-2.6em); }
  97%, 100% { transform: translateY(-3.9em); }
}

.hero-footer {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s ease forwards;
}
.hero-tag {
  max-width: 480px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
}
.hero-tag strong { font-weight: 600; color: var(--ink); }
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-scroll .arrow {
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: breathe 2s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.6; }
}

/* Hero floating shapes */
.hero-shape { position: absolute; pointer-events: none; z-index: 0; }
.hero-shape.circle {
  top: 12%; right: 3%;
  width: 100px; height: 100px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.hero-shape.square {
  bottom: 22%; left: 3%;
  width: 44px; height: 44px;
  background: var(--blue);
  animation: float 10s ease-in-out infinite reverse;
  opacity: 0.9;
}
.hero-shape.cross {
  bottom: 15%; right: 4%;
  width: 28px; height: 28px;
  color: var(--red);
  animation: spin 20s linear infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%       { transform: translateY(-30px) rotate(45deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Floating agent card */
.hero-agent {
  position: absolute;
  top: 50%;
  left: 2.5%;
  transform: translateY(-50%);
  width: 220px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  z-index: 1;
  animation: float 9s ease-in-out infinite;
  animation-delay: -3s;
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.agent-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: agentPulse 1.8s ease-in-out infinite;
}
@keyframes agentPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}
.agent-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.agent-log {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.agent-log li { color: var(--ink); }
.agent-arrow { color: var(--red); margin-right: 4px; }
.agent-arrow.blink { animation: agentBlink 1.2s step-end infinite; }
@keyframes agentBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.cursor {
  display: inline-block;
  color: var(--blue);
  animation: agentBlink 1s step-end infinite;
  margin-left: 2px;
}

/* Floating output card */
.hero-output {
  position: absolute;
  top: 18%;
  right: 2.5%;
  width: 180px;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  z-index: 1;
  animation: float 11s ease-in-out infinite;
  animation-delay: -5s;
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.output-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.output-tick {
  color: var(--red);
  font-size: 11px;
}

.output-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}
.output-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.output-key {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.output-val {
  font-weight: 700;
  letter-spacing: 0.04em;
}
.output-val.up   { color: var(--red); }
.output-val.down { color: var(--blue); }

.output-footer {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
}

@media (max-width: 900px) {
  .hero-output { display: none; }
}

.agent-footer {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
}

@media (max-width: 900px) {
  .hero-agent { display: none; }
}

/* Hero editorial watermark */
.hero-bg-word {
  position: absolute;
  bottom: -0.08em;
  right: -0.02em;
  font-family: var(--display);
  font-size: clamp(200px, 32vw, 520px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.06em;
  color: rgba(10,10,10,0.055);
  pointer-events: none;
  line-height: 1;
  z-index: 0;
  user-select: none;
  white-space: nowrap;
}

/* Thin gradient accent line on left edge */
.hero-accent-line {
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--red) 0%, var(--blue) 100%);
  pointer-events: none;
}


/* ───────────── LATEST ISSUE BANNER ───────────── */
.issue-banner {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 48px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 48px;
  align-items: center;
  border-top: 2px solid var(--red);
  position: relative;
}
.issue-banner::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 33%;
  height: 2px;
  background: var(--blue);
}
.issue-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}
.issue-label .num {
  background: var(--red);
  padding: 4px 10px;
  margin-right: 8px;
  color: var(--paper);
}
.issue-title {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.issue-title em { color: var(--blue-electric); font-weight: 300; }
.issue-cta {
  text-align: right;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  transition: color 0.2s;
}
.issue-cta:hover { color: var(--red); }
.issue-cta .arrow-box {
  width: 44px;
  height: 44px;
  border: 1px solid var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.issue-cta:hover .arrow-box {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(-45deg);
}


/* ───────────── BLOG GRID ───────────── */
.blog-section { padding: 120px 48px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 80px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-family: var(--display);
  font-size: 72px;
  letter-spacing: -0.04em;
  font-weight: 400;
  line-height: 1;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--red); }
.section-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.blog-card {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out-quart), background 0.3s ease;
  background: var(--paper);
}
.blog-card:nth-child(2), .blog-card:nth-child(3) { padding-left: 32px; }
.blog-card:last-child { border-right: none; }
.blog-card:hover { transform: translateY(-4px); background: var(--paper-warm); }
.blog-card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-bottom: 32px;
  display: block;
}
.blog-card .category {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 24px;
}
.blog-card .category.red  { background: var(--red);  color: var(--paper); }
.blog-card .category.blue { background: var(--blue); color: var(--paper); }
.blog-card .category.ink  { background: var(--ink);  color: var(--paper); }

.blog-card h3 {
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 20px;
}
.blog-card:first-child h3 { font-size: 48px; }
.blog-card h3 em { font-style: italic; font-weight: 300; }
.blog-card .excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.blog-card .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  gap: 16px;
}
.blog-card .meta .separator { color: var(--red); }

/* ── Blog card as <a> ── */
a.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ── Thumbnail visual ── */
.featured-visual {
  height: 200px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-visual svg { width: 100%; height: 100%; }

/* Featured (first) card: taller thumbnail */
.blog-card:first-child .featured-visual { height: 260px; }

/* Grid column span helpers */
.blog-grid.posts-1 .blog-card       { grid-column: 1 / -1; }
.blog-grid.posts-2 .blog-card:first-child { grid-column: span 2; }


/* ───────────── MORE POSTS (floating cards) ───────────── */
.more-posts {
  padding: 100px 48px;
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
}
.more-posts-header {
  max-width: 1400px;
  margin: 0 auto 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.more-posts-header h2 {
  font-family: var(--display);
  font-size: 56px;
  letter-spacing: -0.03em;
  font-weight: 400;
  line-height: 1;
}
.more-posts-header h2 em { font-style: italic; color: var(--blue); font-weight: 300; }

.more-posts-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.floating-card {
  padding: 40px 32px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: all 0.4s var(--ease-out-quart);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.floating-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--red);
  transition: width 0.4s ease;
}
.floating-card:nth-child(even)::before { background: var(--blue); }
.floating-card:hover::before { width: 100%; }
.floating-card:hover {
  transform: translateY(-6px);
  box-shadow: 6px 6px 0 var(--ink);
  border-color: var(--ink);
  transition: all 0.35s var(--ease-out-quart);
}
.floating-card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-bottom: 24px;
  display: block;
}
.floating-card h3 {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-weight: 400;
}
.floating-card h3 em { font-style: italic; font-weight: 300; }
.floating-card h3 em.red  { color: var(--red); }
.floating-card h3 em.blue { color: var(--blue); }
.floating-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.floating-card .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}


/* ───────────── NEWSLETTER BLOCK ───────────── */
.newsletter {
  padding: 140px 48px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), var(--blue-electric), transparent);
}
.newsletter-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.newsletter-eyebrow .line { width: 40px; height: 1px; background: var(--red); }
.newsletter h2 {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: -0.04em;
  font-weight: 400;
  line-height: 0.95;
  max-width: 1100px;
  margin: 0 auto 48px;
}
.newsletter h2 em { font-style: italic; font-weight: 300; color: var(--blue-electric); }
.newsletter h2 .strike { color: var(--red); font-style: italic; font-weight: 300; }

.newsletter-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--red);
  color: var(--paper);
  padding: 20px 40px;
  border-radius: 100px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}
.newsletter-cta:hover { background: var(--blue); transform: translateY(-2px); }
.newsletter-note {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(250,250,247,0.5);
  text-transform: uppercase;
}


/* ───────────── RESPONSIVE ───────────── */
@media (max-width: 900px) {
  .hero { padding: 60px 20px 80px; }
  .hero h1 { font-size: clamp(52px, 13vw, 120px); }
  .hero-footer { grid-template-columns: 1fr; gap: 32px; }
  .hero-shape { display: none; }
  .hero-bg-word { font-size: clamp(120px, 40vw, 280px); }
  .issue-banner { grid-template-columns: 1fr; gap: 24px; padding: 40px 24px; }
  .issue-cta { justify-self: start; text-align: left; }
  .blog-section { padding: 80px 24px; }
  .section-header { flex-direction: column; gap: 16px; align-items: flex-start; }
  .section-title { font-size: 48px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { padding: 32px 0; border-right: none; }
  .blog-card:nth-child(2), .blog-card:nth-child(3) { padding-left: 0; }
  .blog-card:first-child h3 { font-size: 36px; }
  .more-posts { padding: 60px 24px; }
  .more-posts-grid { grid-template-columns: 1fr; }
  .more-posts-header { flex-direction: column; gap: 16px; align-items: flex-start; }
  .more-posts-header h2 { font-size: 40px; }
  .newsletter { padding: 80px 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(44px, 14vw, 80px); }
  .hero { padding: 48px 16px 64px; }
}
