/* ─────────────────────────────────────────────────────────
   X.C.O MEDIA — PAGE-LEVEL STYLES
   Hero, Stats, News, Sust, Contact CTA
   All type uses variables + typography system exclusively.
   ───────────────────────────────────────────────────────── */

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

.hero-top-rule {
  width: 40px;
  height: 1px;
  background: var(--rule-dark);
  border: none;
  margin-bottom: 48px;
}

/* Main display headline — 4 lines with bold initial capitals (X-C-O) & italic Media */
.hero-headline {
  font-family: var(--font-serif);
  font-size: var(--type-display);
  font-weight: 300;
  font-style: normal;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 44px;
}

.hero-headline strong {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: normal;
  color: var(--ink);
}

.hero-headline .h1-media-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--ash);
}

/* Lead body under headline — DM Sans light */
.hero-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.70;
  color: var(--ash);
  max-width: 400px;
  margin-bottom: 14px;
}

/* Source / spec line */
.hero-specs {
  font-family: var(--font-mono);
  font-size: var(--type-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ghost);
  margin-bottom: 52px;
}

.hero-ctas {
  display: flex;
  gap: 36px;
  align-items: center;
}

.hero-divider {
  display: block;
  width: 1px;
  height: 18px;
  background: var(--rule-dark);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--ash), transparent);
  animation: scrollDrop 2s var(--ease-in-out) infinite;
  opacity: 0.35;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── INNER HERO (subpages) ──────────────────────────────── */
.inner-hero {
  min-height: 42vh;
  padding-top: 160px;
  padding-bottom: 64px;
}
.inner-hero .hero-headline {
  font-size: var(--type-hero-sub);
}

/* ── STATS ──────────────────────────────────────────────── */
.stats-section {
  padding: 64px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stats-row {
  display: flex;
  align-items: stretch;
}
.stat-block {
  flex: 1;
  padding: 0 48px;
  border-right: 1px solid var(--rule);
}
.stat-block:first-child { padding-left: 0; }
.stat-block:last-child  { border-right: none; }

/* Stat number — serif light, tabular */
.stat-block .t-number {
  display: block;
  margin-bottom: 6px;
}

/* Stat label — mono uppercase */
.stat-block .t-label {
  margin-top: 4px;
  display: block;
}

/* ── SECTION HEADINGS ───────────────────────────────────── */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

/* Section label (eyebrow) → in section-head */
.section-head .t-label,
.section-head .section-label {
  margin-bottom: 14px;
  display: block;
}

/* Section H1 → large serif */
.section-headline,
.section-head .t-h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: normal;
  font-size: var(--type-h1);
  line-height: 1.00;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.section-headline-i {
  font-style: italic;
  color: var(--ash);
}

/* ── ABOUT INTRO ────────────────────────────────────────── */
.about-intro { padding: var(--space-2xl) 0; }
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-section-label { margin-bottom: 24px; }
.about-right p + p { margin-top: 20px; }
.about-line-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  display: block;
  margin: 32px 0;
}

/* ── PRODUCTS SECTION ───────────────────────────────────── */
.products-section { padding: var(--space-2xl) 0; }

/* ── CAPABILITIES ───────────────────────────────────────── */
.capabilities-section {
  background: var(--ink);
  padding: var(--space-2xl) 0;
}
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: 64px;
  align-items: start;
}

/* Cap section heading — serif light on dark */
.cap-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: normal;
  font-size: var(--type-h1);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 32px;
}

/* Body text on dark */
.cap-text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--type-body);
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
}
.cap-text + .cap-text { margin-top: 16px; }

/* Cap list rows */
.cap-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cap-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--dark-rule);
}

/* Cap item label — sans light on dark */
.cap-item-name {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  letter-spacing: 0.01em;
}

/* Cap item number — mono gold */
.cap-item-num {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--type-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── NEWS ───────────────────────────────────────────────── */
.news-section { padding: var(--space-2xl) 0; }

/* News card layout */
.news-card {
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Meta: source · date — mono micro */
.news-meta {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--type-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* News headline — serif italic, H3 size */
.news-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: var(--type-h3);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* News excerpt — sans light */
.news-excerpt {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--type-body);
  line-height: 1.70;
  color: var(--ash);
}

/* Read link — mono uppercase small */
.news-link {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--type-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.news-link:hover { border-color: var(--ink); }

/* ── NEWS FULL ARTICLES (news.html) ─────────────────────── */
.news-article {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
}
.news-article:first-child { border-top: 1px solid var(--rule); }
.news-article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.news-source {
  font-family: var(--font-mono);
  font-size: var(--type-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.news-date {
  font-family: var(--font-mono);
  font-size: var(--type-label);
  letter-spacing: 0.12em;
  color: var(--ghost);
}
.news-article-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.20;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
}
.news-article-body p {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-mid);
}
.news-article-body p + p { margin-top: 16px; }

/* ── SUSTAINABILITY ─────────────────────────────────────── */
.sust-section {
  padding: var(--space-2xl) 0;
  background: var(--paper-dark);
  text-align: center;
}
.sust-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  display: block;
  margin: 0 auto 40px;
}
.sust-headline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: var(--type-h1);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.sust-text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--type-body);
  color: var(--ash);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto 40px;
}
.sust-tags {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.sust-tag {
  font-family: var(--font-mono);
  font-size: var(--type-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px solid rgba(184,149,42,0.35);
}

/* ── CONTACT CTA ─────────────────────────────────────────── */
.contact-cta {
  background: var(--ink);
  padding: 120px 0;
  text-align: center;
}
.contact-cta-headline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: var(--type-display);
  line-height: 0.90;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 40px;
}
.contact-cta-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  color: rgba(255,255,255,0.40);
  margin-bottom: 44px;
  letter-spacing: 0.01em;
  line-height: 1.65;
}
.contact-ctas {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ── SUBSCRIBE SECTION (WHITE BACKGROUND) ───────────────── */
.subscribe-section {
  background: var(--white);
  padding: 80px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.subscribe-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 64px;
  align-items: center;
}
.subscribe-copy {
  min-width: 0;
}
.subscribe-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  font-style: normal;
  color: #000000 !important;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.subscribe-desc {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: #000000 !important;
  line-height: 1.65;
  max-width: 500px;
  margin: 0;
}
.subscribe-action {
  display: flex;
  flex-direction: column;
}
.subscribe-form {
  width: 100%;
}
.subscribe-input-wrap {
  display: flex;
  border: 1px solid var(--ink);
  background: var(--white);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.subscribe-input-wrap:focus-within {
  border-color: var(--gold);
}
.subscribe-input {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  padding: 16px 20px;
  border: none;
  background: transparent;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  outline: none;
}
.subscribe-input::placeholder {
  color: var(--ghost);
}
.subscribe-btn {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out);
}
.subscribe-btn:hover {
  background: var(--ink-mid);
}

@media (max-width: 960px) {
  .subscribe-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .subscribe-input-wrap {
    flex-direction: column;
    border: none;
    background: transparent;
    gap: 10px;
  }
  .subscribe-input {
    border: 1px solid var(--rule);
    background: var(--white);
    padding: 14px 16px;
    width: 100%;
  }
  .subscribe-btn { width: 100%; text-align: center; padding: 14px; }
}

/* ── COMPACT HISTORY GRID ───────────────────────────────── */
.history-compact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.history-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.history-year {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.history-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.2;
}
.history-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.5;
}
@media (max-width: 1024px) {
  .history-compact-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 20px; }
}
@media (max-width: 600px) {
  .history-compact-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── COMPACT STORY HERO ─────────────────────────────────── */
.inner-hero-section {
  padding-top: 140px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.story-compact-wrap {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 64px;
  align-items: start;
}
.story-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.story-subtitle {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.story-lead {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.70;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 960px) {
  .story-compact-wrap { grid-template-columns: 1fr; gap: 24px; }
  .story-lead { padding-top: 0; border-top: none; }
}

/* ── COMPACT GEOGRAPHIC FOOTPRINT ───────────────────────── */
.geo-compact-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}
.geo-compact-box {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px 24px;
}
.geo-compact-hdr {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.geo-tags-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.geo-dest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
.geo-tag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.geo-country {
  font-weight: 500;
  color: var(--ink);
}
.geo-incoterm {
  font-size: 11px;
  color: var(--ghost);
  letter-spacing: 0.04em;
}
@media (max-width: 840px) {
  .geo-compact-wrap { grid-template-columns: 1fr; gap: 24px; }
  .geo-dest-grid { grid-template-columns: 1fr; }
}

/* ── LIVE EXCHANGE FEEDS ───────────────────────────────── */
.exchange-section {
  padding: 64px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-dark);
}
.exchange-header {
  margin-bottom: 32px;
}
.exchange-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.exchange-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 24px;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  position: relative;
}
.exchange-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.exchange-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.exchange-badge {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(184, 149, 42, 0.1);
  padding: 4px 10px;
  border: 1px solid rgba(184, 149, 42, 0.25);
}
.exchange-symbol {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--ghost);
  letter-spacing: 0.06em;
}
.exchange-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 14px;
}
.exchange-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.exchange-price {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.4s ease, background 0.4s ease;
  padding: 2px 6px;
  margin-left: -6px;
  border-radius: 3px;
}
.exchange-price.flash-up {
  background: rgba(52, 211, 153, 0.25);
  color: #047857;
}
.exchange-price.flash-dn {
  background: rgba(251, 113, 133, 0.25);
  color: #BE123C;
}
.exchange-unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--ash);
  margin-left: 2px;
}
.exchange-change {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 3px;
}
.exchange-change.up { color: #059669; background: rgba(16, 185, 129, 0.10); }
.exchange-change.dn { color: #E11D48; background: rgba(225, 29, 72, 0.10); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .about-intro-grid     { grid-template-columns: 1fr; gap: 48px; }
  .capabilities-grid    { grid-template-columns: 1fr; gap: 48px; }
  .capabilities-grid .vr-gold { display: none; }
  .stats-row            { flex-wrap: wrap; }
  .stat-block {
    flex: 0 0 50%;
    border-right: none;
    padding: 24px 0;
    border-bottom: 1px solid var(--rule);
    text-align: left;
  }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .subscribe-content { grid-template-columns: 1fr; gap: 32px; }
  .subscribe-card { padding: 40px 28px; }
  .exchange-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero-headline  { font-size: clamp(52px, 14vw, 80px); }
  .hero-ctas      { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-scroll    { display: none; }
  .contact-ctas   { flex-direction: column; align-items: center; }
  .subscribe-input-wrap {
    flex-direction: column;
    border: none;
    background: transparent;
    gap: 10px;
  }
  .subscribe-input {
    border: 1px solid var(--rule);
    background: var(--white);
    padding: 14px 16px;
    width: 100%;
  }
  .subscribe-btn { width: 100%; text-align: center; padding: 14px; }
  .exchange-grid { grid-template-columns: 1fr; }
  .exchange-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}


/* Hero ambient grid background & radar pulse */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(14, 14, 14, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 14, 14, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 35% 45%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 35% 45%, black 25%, transparent 80%);
  z-index: 0;
  opacity: 0.85;
}

.hero-radar-pulse {
  position: absolute;
  top: 40%;
  left: 30%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 14, 14, 0.045) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0.8);
  animation: radarPulse 7s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes radarPulse {
  0% { transform: translate(-50%, -50%) scale(0.75); opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.85; }
}

.hero-container {
  position: relative;
  z-index: 1;
}
