/* ============================================================
   KĀRTH — Homepage Styles
   home.css · v1.0
   Page-specific only — global styles live in karth.css
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
#home-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.k-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroZoom 20s ease-out forwards;
  will-change: transform;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}

/* Layered overlays */
.h-over-1 {
  position: absolute; inset: 0;
  background: rgba(6, 6, 6, 0.68);
  z-index: 1;
}
.h-over-2 {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(201, 168, 76, 0.05) 0%, transparent 65%);
  z-index: 2;
}
.h-over-3 {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(6, 6, 6, 0.25) 0%,
    transparent 35%,
    rgba(6, 6, 6, 0.55) 100%);
  z-index: 2;
}

/* Solar rings */
.k-solar-wrap {
  position: absolute;
  width: 520px; height: 520px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  animation: solarSpin 90s linear infinite;
  will-change: transform;
}
.k-solar-inner {
  position: absolute;
  width: 260px; height: 260px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  animation: solarSpin 55s linear infinite reverse;
}
@keyframes solarSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hero text content */
.h-content {
  position: relative;
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: heroReveal 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.h-eyebrow {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 200;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: heroReveal 1.4s ease 1.6s forwards;
}
.h-wordmark {
  font-family: var(--serif);
  font-size: clamp(64px, 11vw, 120px);
  font-weight: 300;
  letter-spacing: 0.6em;
  color: var(--text);
  line-height: 1;
  margin-left: 0.6em; /* optical offset for letter-spacing */
  text-shadow: 0 0 100px rgba(201, 168, 76, 0.07);
}
.h-rule {
  width: 0.5px;
  height: 0;
  background: var(--gold-dim);
  margin: 36px auto;
  animation: h-rule-grow 1s ease 2.2s forwards;
}
@keyframes h-rule-grow { to { height: 52px; } }

.h-tagline {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 200;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: 0;
  animation: heroReveal 1s ease 2.6s forwards;
}
.h-cta {
  margin-top: 52px;
  opacity: 0;
  animation: heroReveal 1s ease 3.2s forwards;
}

/* Scroll hint */
.h-scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: heroReveal 1s ease 4s forwards;
}
.h-scroll-hint p {
  font-size: 7.5px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.h-scroll-line {
  width: 0.5px; height: 44px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* ── FEATURED PIECES STRIP ────────────────────────────────── */
#home-pieces { padding-bottom: 0; }

.hp-strip {
  display: flex;
  gap: 3px;
  padding: 0 var(--pad-x);
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.hp-strip:active { cursor: grabbing; }
.hp-strip::-webkit-scrollbar { display: none; }

.hp-card {
  flex: 0 0 300px;
  height: 440px;
}
.hp-card:first-child { flex: 0 0 360px; }

/* Teaser end-card */
.hp-card--teaser {
  flex: 0 0 280px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid var(--text-ghost);
}
.hp-teaser-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px;
}

.hp-drag-hint {
  padding: 20px var(--pad-x) 0;
  font-size: 8.5px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--text-ghost);
  display: flex;
  align-items: center;
  gap: 16px;
}
.hp-drag-hint::before {
  content: '';
  width: 28px; height: 0.5px;
  background: var(--text-ghost);
}

/* ── PILLARS ──────────────────────────────────────────────── */
.hp-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5px;
  background: var(--text-ghost);
}
.hp-pillar {
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding: 88px var(--pad-x);
}
.hp-pillar-fill {
  position: absolute;
  inset: 0;
  background: var(--surface);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-pillar:hover .hp-pillar-fill {
  clip-path: inset(0 0 0 0);
}
.hp-pillar-inner { position: relative; z-index: 1; }
.hp-pillar-num {
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--gold-dim);
}

/* ── COLLECTION GRID ──────────────────────────────────────── */
.hp-cat-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 500px 250px;
  gap: 3px;
}
.hp-cat {
  display: block; /* override <a> inline */
}
.hp-cat .k-tile-content {
  padding: 36px 40px;
}

/* ── 270 DAYS SECTION ─────────────────────────────────────── */
#home-270 {
  position: relative;
  height: 68vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hp-270-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
}
.hp-270-over-1 {
  position: absolute; inset: 0;
  background: rgba(6, 6, 6, 0.72);
}
.hp-270-over-2 {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(6, 6, 6, 0.9) 0%,
    rgba(6, 6, 6, 0.1) 50%,
    rgba(6, 6, 6, 0.9) 100%);
}
.hp-270-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hp-270-number {
  font-family: var(--serif);
  font-size: clamp(100px, 16vw, 180px);
  font-weight: 300;
  line-height: 1;
  color: rgba(201, 168, 76, 0.14);
  position: relative;
  display: inline-block;
}
.hp-270-number span {
  position: absolute;
  bottom: 14px; right: -72px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 200;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.hp-270-text {
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 42px);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
  margin-top: 12px;
}

/* ── ABOUT / EDITORIAL ────────────────────────────────────── */
.hp-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hp-about-img {
  position: relative;
  overflow: hidden;
}
.hp-about-img img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85) contrast(1.05);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.6s ease;
}
.hp-about-img:hover img {
  transform: scale(1.03);
  filter: brightness(0.9) contrast(1.02);
}
.hp-about-img-caption {
  position: absolute;
  bottom: 24px; left: 24px;
}
.hp-about-text {}

/* ── CIRCLE CTA ───────────────────────────────────────────── */
#home-cta {
  position: relative;
  padding: 180px var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hp-cta-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}
.hp-cta-over {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 80%,
    rgba(201, 168, 76, 0.05) 0%, transparent 60%);
}
.hp-cta-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Journey steps */
.hp-journey {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 64px;
  flex-wrap: wrap;
  row-gap: 24px;
}
.hp-journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hp-journey-num {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 300;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
}
.hp-journey-label {
  font-size: 8px;
  font-weight: 200;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hp-journey-line {
  width: 48px; height: 0.5px;
  background: var(--text-ghost);
  margin: 0 8px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 8px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hp-pillars    { grid-template-columns: 1fr; }
  .hp-cat-grid   { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hp-cat:first-child { grid-row: 1 / 1; }
  .hp-cat[style*="grid-column:2/4"] { grid-column: 1 / 3; }
  .hp-about-grid { grid-template-columns: 1fr; gap: 48px; }
  .hp-about-img img { height: 400px; }
  .k-solar-wrap  { width: 380px; height: 380px; }
  .k-solar-inner { width: 200px; height: 200px; }
}

@media (max-width: 768px) {
  .hp-cat-grid   { grid-template-columns: 1fr; grid-template-rows: 320px; }
  .hp-cat-grid .hp-cat { grid-row: auto !important; grid-column: auto !important; }
  .hp-cat { height: 320px !important; }
  .hp-card { flex: 0 0 260px; height: 380px; }
  .hp-card:first-child { flex: 0 0 280px; }
  .hp-journey  { gap: 12px; }
  .hp-journey-line { width: 24px; }
  .k-solar-wrap  { width: 280px; height: 280px; }
  #home-cta { padding: 120px var(--pad-x); }
}

@media (max-width: 480px) {
  .hp-card { flex: 0 0 220px; height: 340px; }
  .hp-cat-grid .hp-cat { height: 260px !important; }
  .hp-270-number { font-size: 80px; }
  .hp-270-number span { font-size: 9px; right: -54px; }
}
