/* ShapeOS — Dark cosmic editorial design */
/* Fonts: Cormorant Garamond (headings) + DM Mono (body/tech) */

:root {
  --bg: #070709;
  --bg-warm: #0d0b0f;
  --surface: #121017;
  --surface-raised: #1a1720;
  --text: #e8e0d4;
  --text-dim: #8a7f72;
  --text-muted: #4a4340;
  --accent: #c8a96e;
  --accent-glow: rgba(200, 169, 110, 0.15);
  --border: rgba(200, 169, 110, 0.12);
  --border-strong: rgba(200, 169, 110, 0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,169,110,0.08) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(180,80,80,0.05) 0%, transparent 70%);
  bottom: 0; right: 10%;
}
.glow-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(100,120,200,0.04) 0%, transparent 70%);
  top: 30%; left: 40%;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 clamp(2rem, 6vw, 7rem);
  max-width: 900px;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
  font-family: 'DM Mono', monospace;
}

.label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.hero-title-line { display: block; }
.hero-title-line.italic { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-meta {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.meta-col { display: flex; flex-direction: column; gap: 0.3rem; }
.meta-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.meta-val {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(2rem, 6vw, 7rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-muted);
  position: relative;
}
.scroll-line::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-right: 1px solid var(--text-muted);
  border-bottom: 1px solid var(--text-muted);
  transform: translateY(-50%) rotate(-45deg);
}

/* ── MANIFESTO ── */
.manifesto {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  padding: clamp(4rem, 10vw, 8rem) clamp(2rem, 6vw, 7rem);
}

.manifesto-inner { max-width: 820px; }

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3rem;
  font-family: 'DM Mono', monospace;
}

.label-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--border-strong);
}

.manifesto-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 2.5rem;
  border-left: 2px solid var(--accent);
  padding-left: 2rem;
}

.manifesto-body {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

/* ── FIELD ── */
.field {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(4rem, 10vw, 8rem) clamp(2rem, 6vw, 7rem);
}

.field-inner { max-width: 820px; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 0;
}

.field-item {
  padding: 3rem 2.5rem;
  border: 1px solid var(--border);
  margin: -1px -1px 0 0;
  position: relative;
  transition: background 0.3s ease;
}

.field-item:hover { background: var(--surface); }

.field-item-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  margin-bottom: 1.5rem;
}

.field-item-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.field-item-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── OBJECTS ── */
.objects {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  padding: clamp(4rem, 10vw, 8rem) clamp(2rem, 6vw, 7rem);
}

.objects-inner { max-width: 820px; }

.objects-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 0;
}

.objects-left, .objects-right { display: flex; flex-direction: column; gap: 2rem; }

.object-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.3s ease;
}

.object-card:hover { border-color: var(--border-strong); }
.object-card.object-card-tall { flex: 1; }

.object-card-tag {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'DM Mono', monospace;
}

.object-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.25;
  margin-top: 0.25rem;
}

.object-card-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
  flex: 1;
}

.object-card-link {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
  transition: opacity 0.2s;
}
.object-card-link:hover { opacity: 0.7; }

/* ── CLOSING ── */
.closing {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(6rem, 14vw, 12rem) clamp(2rem, 6vw, 7rem);
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(200,169,110,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.closing-orb {
  position: relative;
  width: 120px;
  height: 120px;
}

.orb-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 30px var(--accent), 0 0 60px rgba(200,169,110,0.3);
}

.orb-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  animation: orb-rotate 20s linear infinite;
}

.orb-ring-1 { width: 50px; height: 50px; animation-duration: 8s; }
.orb-ring-2 { width: 80px; height: 80px; animation-duration: 14s; animation-direction: reverse; }
.orb-ring-3 { width: 110px; height: 110px; animation-duration: 22s; }

@keyframes orb-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.closing-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.closing-headline em { font-style: italic; color: var(--accent); }

.closing-sub {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(2rem, 6vw, 7rem);
  background: var(--bg-warm);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 820px;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.05em;
}
.footer-tagline { font-size: 11px; color: var(--text-muted); }

.footer-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text); }

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 3s ease-in-out infinite;
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  .hero-meta { gap: 1.5rem; flex-wrap: wrap; }
  .field-grid { grid-template-columns: 1fr; }
  .objects-layout { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { gap: 1rem; }
  .hero-title { font-size: clamp(3rem, 15vw, 5rem); }
}