/* Siewa Group — Royal Editorial (brand: #1F2021 · #C4C2C2) */

:root {
  --ink: #1f2021;
  --grey: #c4c2c2;
  --grey-mid: #9a9898;
  --grey-light: #e8e7e7;
  --paper: #f3f2f0;
  --white: #ffffff;
  --display: "Cormorant Garamond", Georgia, serif;
  --ui: "Syne", "Avenir Next", system-ui, sans-serif;
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 9999;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 1rem;
}
.skip-link:focus { left: 1rem; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h2 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }

p { margin: 0 0 1rem; }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--white); }

.section-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  margin-bottom: 3rem;
  max-width: 720px;
}

.section-intro.row {
  max-width: none;
  grid-template-columns: 1fr auto;
  align-items: end;
}

.section-intro.light h2,
.section-intro.light p { color: var(--white); }
.section-intro.light p { opacity: 0.75; }

.section-index {
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--grey-mid);
  padding-top: 0.35rem;
}

.section-intro.light .section-index { color: var(--grey); }

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.25rem;
}

.lede {
  font-size: 1.05rem;
  color: #4a4a4a;
  max-width: 36ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover { transform: translateY(-2px); }

.btn-solid {
  background: var(--ink);
  color: var(--white);
}
.btn-solid:hover { background: #2d2e2f; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(196, 194, 194, 0.5);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--grey);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-cta {
  padding: 0.65rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.68rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  transition: background 0.35s var(--ease), box-shadow 0.35s;
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand-mark-img {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.35s;
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--grey-light);
}

.site-header.is-solid .brand-mark-img {
  filter: none;
}

.nav-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 1.1rem;
  margin-left: auto;
}

.nav-primary a {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-primary a:hover {
  color: var(--white);
  border-color: var(--grey);
}

.site-header.is-solid .nav-primary a {
  color: rgba(31, 32, 33, 0.75);
}
.site-header.is-solid .nav-primary a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.site-header.is-solid .btn-cta {
  background: var(--ink);
  color: var(--white);
}

.site-header:not(.is-solid) .btn-cta {
  background: var(--white);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-left: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: background 0.35s;
}

.site-header.is-solid .nav-toggle span { background: var(--ink); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(31, 32, 33, 0.94) 0%, rgba(31, 32, 33, 0.72) 42%, rgba(31, 32, 33, 0.35) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(196, 194, 194, 0.12), transparent 50%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: end;
  padding: 7rem 0 5rem;
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  line-height: 0.92;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
  animation: rise 0.9s var(--ease) backwards;
}
.hero-title .line:nth-child(2) { animation-delay: 0.08s; }
.hero-title .line:nth-child(3) { animation-delay: 0.16s; }

.hero-title .accent {
  color: var(--grey);
  font-style: italic;
  font-weight: 500;
}

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

.hero-deck {
  max-width: 42ch;
  font-size: 1.05rem;
  color: rgba(232, 231, 231, 0.9);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-pathways {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.path-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(196, 194, 194, 0.22);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  transition: background 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}

.path-card:hover {
  transform: translateX(-6px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(196, 194, 194, 0.45);
}

.path-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--grey);
}

.path-card strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}

.path-card > span:last-child {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0.7;
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  margin: 0.5rem auto 0;
  background: linear-gradient(var(--grey), transparent);
}

/* Chips */
.chip {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  margin-bottom: 0.75rem;
}

.chip-media { background: rgba(61, 79, 95, 0.12); color: #3d4f5f; }
.chip-network { background: rgba(74, 93, 78, 0.12); color: #4a5d4e; }
.chip-foundation { background: rgba(92, 74, 66, 0.12); color: #5c4a42; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  margin-top: 1rem;
}
.arrow-link::after { content: "→"; transition: transform 0.2s; }
.arrow-link:hover::after { transform: translateX(4px); }

/* Ecosystem */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.eco-panel {
  background: var(--white);
  border: 1px solid var(--grey-light);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.eco-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(31, 32, 33, 0.1);
}

.eco-panel-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.eco-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.eco-panel:hover .eco-panel-media img { transform: scale(1.05); }

.eco-panel-body { padding: 1.5rem 1.5rem 1.75rem; }

/* Bento work */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1rem;
}

.bento-item {
  position: relative;
  grid-column: span 4;
  border-radius: 2px;
  overflow: hidden;
  min-height: 220px;
}

.bento-feature {
  grid-column: span 8;
  grid-row: span 2;
  min-height: 460px;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: inherit;
}

.bento-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(31, 32, 33, 0.88), transparent 55%);
  color: var(--white);
}

.bento-overlay h3 { color: var(--white); margin-top: 0.35rem; }
.bento-overlay p { margin: 0; font-size: 0.85rem; opacity: 0.8; }

/* Pipeline */
.pipeline { padding-top: 5rem; padding-bottom: 5rem; }

.pipeline-track {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  counter-reset: step;
}

.pipeline-track li {
  position: relative;
  padding: 1.25rem 1rem;
  border: 1px solid rgba(196, 194, 194, 0.2);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pipeline-track li span {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--grey);
}

.pipeline-track li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.5rem;
  width: 0.75rem;
  height: 1px;
  background: rgba(196, 194, 194, 0.35);
  z-index: 1;
}

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-figure {
  margin: 0;
  position: relative;
}

.split-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--grey-light);
}

.stack-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.stack-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--grey-light);
  font-weight: 500;
  font-size: 0.92rem;
}

.stack-list li:first-child { border-top: 1px solid var(--grey-light); }

/* Network */
.tier-stack {
  position: absolute;
  bottom: -1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tier-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--grey-light);
  font-size: 0.85rem;
}

.tier-pill--active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.tier-pill span { opacity: 0.7; font-size: 0.75rem; }

.tick-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.tick-list li {
  padding: 0.45rem 0 0.45rem 1.25rem;
  position: relative;
  color: #444;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.network-block .split-figure { margin-bottom: 2rem; }

/* Impact */
.impact-block {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding-top: 0;
}

.impact-visual {
  max-height: 320px;
  overflow: hidden;
  opacity: 0.55;
}

.impact-visual img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.impact-intro { margin-top: -2rem; position: relative; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  padding: 2rem 1.25rem;
  border: 1px solid rgba(196, 194, 194, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.stat-val {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat p {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* Partners */
.partner-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.partner-tile {
  background: var(--white);
  border: 1px solid var(--grey-light);
  overflow: hidden;
}

.partner-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.partner-tile div { padding: 1.25rem 1.5rem 1.5rem; }

.meta-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

/* Stories */
.stories-block { background: var(--white); }

.story-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.story-tile {
  border: 1px solid var(--grey-light);
  padding-bottom: 1.5rem;
  transition: border-color 0.25s;
}

.story-tile:hover { border-color: var(--grey); }

.story-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1.25rem;
}

.story-tile h3 {
  font-size: 1.15rem;
  padding: 0 1.25rem;
  margin-bottom: 0.5rem;
}

.story-tile time {
  display: block;
  padding: 0 1.25rem;
  font-size: 0.75rem;
  color: var(--grey-mid);
}

.story-tile .chip { margin-left: 1.25rem; }

/* CTA */
.section-cta { padding: 0 0 5rem; }

.cta-panel {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 2rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 2px;
}

.cta-panel h2 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 0.75rem;
}

.cta-panel p {
  max-width: 40ch;
  margin-inline: auto;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  background: #141516;
  color: var(--grey);
  padding: 4rem 0 2rem;
}

.footer-top { text-align: center; }

.footer-logo {
  height: 2.25rem;
  width: auto;
  margin-inline: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-tagline {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--white);
  margin: 1rem 0 0.35rem;
}

.footer-meta { font-size: 0.85rem; margin-bottom: 2rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
}

.footer-links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.78rem;
  opacity: 0.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 1100px) {
  .nav-primary { display: none; }
  .nav-toggle { display: flex; }

  .nav-primary.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0 1.25rem;
    background: rgba(31, 32, 33, 0.98);
    border-bottom: 1px solid rgba(196, 194, 194, 0.15);
  }

  .nav-primary.open a {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(196, 194, 194, 0.1);
  }

  .site-header.is-solid .nav-primary.open {
    background: var(--white);
  }
  .site-header.is-solid .nav-primary.open a {
    color: var(--ink);
    border-color: var(--grey-light);
  }

  .btn-cta { display: none; }

  .hero-layout { grid-template-columns: 1fr; }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .pipeline-track { grid-template-columns: repeat(2, 1fr); }
  .pipeline-track li:not(:last-child)::after { display: none; }
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .partner-row, .story-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .bento { grid-template-columns: 1fr; }
  .bento-item, .bento-feature {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 240px;
  }
  .bento-feature { min-height: 280px; }
  .stat-row { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.75rem, 12vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .line { animation: none; }
  .btn:hover, .path-card:hover, .eco-panel:hover { transform: none; }
}
