/* ═══════════════════════════════════════════════
   infonomic.id — style.css
   ═══════════════════════════════════════════════ */

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

/* ── Tokens ── */
:root {
  --ink:      #0d0d0d;
  --gold:     #c9a84c;
  --gold2:    #e8c97a;
  --red:      #b5372a;
  --red-dark: #8b1a10;
  --cream:    #f5f0e8;
  --paper:    #ede8de;
  --muted:    #6b6455;
  --line:     rgba(201, 168, 76, 0.25);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;
  --font-serif:   'Libre Baskerville', Georgia, serif;
}

/* light mode removed */

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  overflow-x: hidden;
  min-height: 100vh;
  padding-top: 36px;
}

/* grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

/* ── Ticker ── */
.ticker-wrap {
  background: var(--gold);
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-right: 12px;
}

.ticker {
  display: flex;
  flex: 1 1 auto;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.ticker span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  padding: 0 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ticker span.sep {
  color: rgba(0, 0, 0, 0.3);
  padding: 0 4px;
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 0px 24px 60px;
  text-align: center;
  overflow: hidden;
}

/* animated grid lines */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* radial glow */
.glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 55, 42, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  animation: pulse 6s ease-in-out infinite;
  z-index: 0;
}

/* ensure hero children sit above pseudo-elements */
.hero > * {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: -500px;
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.05s both;
}

@media (max-width: 600px) {
  .ticker-wrap {
    height: 28px;
    padding-right: 8px;
  }


  .ticker span {
    font-size: 10px;
    padding: 0 12px;
  }

  .hero {
    padding: 8px 16px 40px;
  }

  .hero-eyebrow {
    margin-top: -500px;
    margin-bottom: 14px;
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .hero-title {
    font-size: clamp(32px, 9vw, 48px);
    margin-bottom: 6px;
  }

  .stat-strip {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 360px;
  }

  .stat-item {
    padding: 12px 8px;
  }

  .links {
    max-width: 360px;
  }

  .link-item {
    padding: 12px 0;
    gap: 12px;
  }

  .contact-section {
    padding: 28px 16px 48px;
  }

  .contact-card {
    padding: 18px;
    width: calc(100% - 32px);
    box-sizing: border-box;
  }

  .cp-link {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* theme toggle removed */
}

@media (max-width: 380px) {
  .hero-title {
    font-size: clamp(28px, 10vw, 40px);
  }

  .ticker span { padding: 0 8px; }
}

/* light theme tweaks for header when active */
/* light-mode header tweaks removed */

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 8px;
  animation: fadeUp 0.6s 0.15s both;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
  display: block;
  font-size: clamp(18px, 3.2vw, 34px);
  line-height: 1.05;
}

.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
  letter-spacing: 0.03em;
  max-width: 360px;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.25s both;
}

/* ── Ornament ── */
.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px auto;
  width: 220px;
  animation: fadeUp 0.6s 0.35s both;
}

.ornament-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.ornament-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Stat Strip ── */
.stat-strip {
  width: 100%;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid rgba(201,168,76,0.18);
  animation: fadeUp 0.6s 0.45s both;
  background: transparent;
}

.stat-item {
  padding: 16px 14px;
  text-align: center;
  border-right: 1px solid rgba(201,168,76,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.6vw, 34px);
  font-weight: 900;
  color: var(--gold2);
  display: block;
  line-height: 1;
}

.stat-lbl {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.9);
  margin-top: 2px;
  display: block;
}

/* ── Links ── */
.links {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeUp 0.6s 0.55s both;
  margin-top: 0;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: padding-left 0.3s ease;
  gap: 16px;
}

.link-item:first-child {
  border-top: 1px solid var(--line);
}

.link-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--gold);
  opacity: 0.08;
  transition: width 0.35s ease;
}

.link-item:hover::before {
  width: 100%;
}

.link-item:hover {
  padding-left: 12px;
}

.link-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.link-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.link-item:hover .link-label {
  color: var(--gold2);
}

.link-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  transition: stroke 0.3s, transform 0.3s;
}

.link-item:hover .link-arrow {
  border-color: var(--gold);
  background: var(--gold);
}

.link-item:hover .link-arrow svg {
  stroke: var(--ink);
  transform: translate(2px, -2px);
}

/* horizontal gold divider between link groups */
.section-div {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
  margin: 4px 0;
}

/* ── Contact ── */
.contact-section {
  padding: 60px 24px 80px;
  text-align: center;
  position: relative;
}

.contact-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 32px;
  line-height: 1.2;
}

.contact-card {
  max-width: 360px;
  margin: 0 auto;
  border: 1px solid var(--line);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.3s;
}

.contact-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
}

/* corner bracket accents */
.contact-card::before,
.contact-card::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold);
  border-style: solid;
}

.contact-card::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.contact-card::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.cp-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
  position: relative;
}

.cp-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--line);
  animation: rotateBorder 8s linear infinite;
}

.cp-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
}

.cp-role {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.cp-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 12px;
  color: var(--cream);
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.cp-link:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.4);
  color: var(--gold2);
}

.cp-link-icon {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  flex-shrink: 0;
  transition: stroke 0.25s;
}

.cp-link:hover .cp-link-icon {
  stroke: var(--gold2);
}

/* ── Gallery ── */
.gallery-section {
  padding: 60px 24px;
  text-align: center;
  position: relative;
}

.gallery-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
  animation: fadeUp 0.6s 0.1s both;
}

.gallery-heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
  line-height: 1.2;
  animation: fadeUp 0.6s 0.2s both;
}

.gallery-subheading {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  letter-spacing: 0.03em;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeUp 0.6s 0.3s both;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeUp 0.6s 0.4s both;
  align-items: stretch;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(13, 13, 13, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.gallery-item:hover {
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  padding: 12px;
}

.gallery-item:hover img {
  transform: scale(1.05);
}



/* ── Footer ── */
.footer {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
  opacity: 0.5;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ── Keyframes ── */
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes gridMove {
  0%   { background-position: 0 0; }
  100% { background-position: 0 60px; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -55%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -55%) scale(1.08); }
}

@keyframes rotateBorder {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .hero-title {
    font-size: clamp(34px, 10vw, 54px);
  }

  .hero-title em {
    font-size: clamp(16px, 4.6vw, 24px);
  }

  .contact-card {
    padding: 24px 18px;
  }

  .footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}