/* Siewa Group — presentation homepage */

:root {
  --ink: #1f2021;
  --grey: #c4c2c2;
  --grey-dark: #8a8888;
  --grey-light: #e8e7e7;
  --white: #ffffff;
  --surface: #fafafa;
  --media-accent: #3d4f5f;
  --network-accent: #4a5d4e;
  --foundation-accent: #5c4a42;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 4px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }

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

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

.skip-link:focus { left: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1rem; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-dark);
  margin-bottom: 1rem;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-header.row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-header p {
  color: #4a4a4a;
  margin: 0;
}

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

.section { padding: 5rem 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover { background: #333435; }

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

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

.text-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity var(--transition);
}

.text-link:hover { opacity: 0.65; }

.text-link-light {
  color: var(--white);
  border-color: var(--grey);
}

.center-link {
  display: block;
  text-align: center;
  margin-top: 2rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-light);
}

.site-header--hero {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

.site-header--hero.scrolled {
  position: fixed;
  background: rgba(31, 32, 33, 0.96);
  border-bottom: 1px solid rgba(196, 194, 194, 0.12);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.75rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  width: auto;
  height: auto;
}

.logo-img-header {
  height: 2.35rem;
  max-width: min(11rem, 42vw);
  object-fit: contain;
  object-position: left center;
}

.logo-img-light {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.logo-img-footer {
  height: 2.5rem;
  max-width: 12rem;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem 1rem;
  margin-left: auto;
}

.main-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3a3a3a;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.main-nav a:hover { border-color: var(--ink); }

.site-header--hero .main-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
}

.site-header--hero .main-nav a:hover {
  color: var(--white);
  border-color: var(--grey);
}

.header-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.menu-toggle-light span {
  background: var(--white);
}

/* Hero — brand guidelines mock */
.hero-brand {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 4rem;
  background: #1a1b1c;
  color: var(--white);
  overflow: hidden;
}

.hero-texture {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03), transparent 40%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-flow-arrow {
  position: absolute;
  left: 28%;
  top: 52%;
  width: min(42vw, 420px);
  height: 80px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.hero-brand-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr min(44vw, 480px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-brand-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.8vw, 3.65rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0;
  max-width: 11ch;
}

.hero-cta-wrap {
  position: relative;
  margin-top: 2.75rem;
  width: fit-content;
}

.hero-scribble {
  position: absolute;
  left: -1.25rem;
  top: -1.5rem;
  width: 220px;
  height: 100px;
  pointer-events: none;
}

.btn-learn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--grey);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  transition: background var(--transition), transform var(--transition);
}

.btn-learn:hover {
  background: var(--grey-light);
  transform: translateY(-1px);
}

.hero-mosaic {
  position: relative;
  width: min(44vw, 480px);
  aspect-ratio: 1;
  margin-left: auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.hero-mosaic-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  z-index: 4;
  pointer-events: none;
}

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

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

/* Three equal 120° wedges */
.hero-segment-1 {
  clip-path: polygon(50% 50%, 50% 0%, 93.3% 75%);
}

.hero-segment-2 {
  clip-path: polygon(50% 50%, 93.3% 75%, 6.7% 75%);
}

.hero-segment-3 {
  clip-path: polygon(50% 50%, 6.7% 75%, 50% 0%);
}

.hero-segment-1 img { transform: scale(1.15); }
.hero-segment-2 img { transform: scale(1.15) translateX(-8%); }
.hero-segment-3 img { transform: scale(1.15) translateY(-5%); }

/* Tags */
.card-tag, .work-entity, .partner-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.media-tag { background: #e8edf0; color: var(--media-accent); }
.network-tag { background: #e8ede9; color: var(--network-accent); }
.foundation-tag { background: #f0ebe8; color: var(--foundation-accent); }

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

/* Ecosystem cards */
.ecosystem-card {
  border: 1px solid var(--grey-light);
  background: var(--white);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.ecosystem-card:hover {
  border-color: var(--grey);
  box-shadow: 0 12px 40px rgba(31, 32, 33, 0.08);
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--grey-light);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ecosystem-card:hover .card-media img {
  transform: scale(1.04);
}

.card-content {
  padding: 1.75rem 1.75rem 2rem;
}

.card-audience {
  font-size: 0.875rem;
  color: #555;
}

/* Featured work */
.featured-work { background: var(--surface); }

.work-grid {
  grid-template-columns: repeat(2, 1fr);
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--grey-light);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(31, 32, 33, 0.1);
}

.work-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--grey-light);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.work-meta {
  font-size: 0.8rem;
  color: var(--grey-dark);
  margin-bottom: 0.5rem;
}

.work-body p:last-child {
  font-size: 0.925rem;
  color: #444;
  margin: 0;
}

/* Delivery */
.delivery {
  position: relative;
  padding: 0;
  color: var(--white);
  background: var(--ink);
}

.delivery-visual {
  position: relative;
  max-height: 420px;
  overflow: hidden;
}

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

.delivery-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(31, 32, 33, 0.2), rgba(31, 32, 33, 0.92));
}

.delivery-inner {
  position: relative;
  margin-top: -8rem;
  padding-bottom: 5rem;
  z-index: 1;
}

.delivery-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.delivery-steps li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(196, 194, 194, 0.35);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  font-weight: 500;
}

.delivery-steps span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--grey);
}

/* Capabilities */
.capabilities-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.capabilities-visual {
  margin: 0;
  border: 1px solid var(--grey-light);
  overflow: hidden;
}

.capabilities-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.capabilities-visual figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: var(--grey-dark);
  background: var(--surface);
  border-top: 1px solid var(--grey-light);
}

.capability-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.capability-list li {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-left: 3px solid var(--ink);
  font-weight: 500;
  font-size: 0.925rem;
}

/* Network */
.network-section {
  background: var(--ink);
  color: var(--white);
}

.network-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: start;
}

.network-copy p { color: var(--grey); }

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

.check-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--grey-light);
}

.check-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--grey);
}

.network-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(196, 194, 194, 0.2);
  margin-bottom: 1rem;
}

.membership-tiers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tier {
  padding: 1.5rem;
  border: 1px solid rgba(196, 194, 194, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.tier-featured {
  border-color: var(--grey);
  background: rgba(255, 255, 255, 0.08);
}

.tier h3 {
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.tier p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--grey);
}

.network-section .btn-primary {
  background: var(--white);
  color: var(--ink);
}

.network-section .btn-primary:hover { background: var(--grey-light); }

/* Impact */
.impact { background: var(--surface); padding-top: 0; }

.impact-banner {
  margin: 0 0 3rem;
  position: relative;
  overflow: hidden;
}

.impact-banner img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.impact-banner-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--white);
  background: linear-gradient(transparent, rgba(31, 32, 33, 0.85));
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.metric {
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--grey-light);
  text-align: center;
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.metric p {
  font-size: 0.875rem;
  color: #555;
  margin: 0;
}

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

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

.partner-card:hover {
  box-shadow: 0 12px 36px rgba(31, 32, 33, 0.08);
}

.partner-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--grey-light);
}

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

.partner-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.partner-label {
  background: var(--surface);
  color: var(--ink);
}

.partner-meta {
  font-size: 0.8rem;
  color: var(--grey-dark);
  margin-bottom: 0.75rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Stories */
.story-card {
  border: 1px solid var(--grey-light);
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.story-card:hover {
  border-color: var(--grey);
  box-shadow: 0 10px 32px rgba(31, 32, 33, 0.07);
}

.story-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--grey-light);
}

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

.story-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.story-date {
  display: block;
  font-size: 0.75rem;
  color: var(--grey-dark);
  margin-bottom: 0.75rem;
}

.story-card h3 {
  font-size: 1.15rem;
  margin-top: 0.5rem;
}

/* Conversion */
.convert { background: var(--surface); }

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

.convert-card {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--grey-light);
  color: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}

.convert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(31, 32, 33, 0.15);
}

.convert-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.convert-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(to top, rgba(31, 32, 33, 0.92) 0%, rgba(31, 32, 33, 0.35) 70%, transparent 100%);
}

.convert-content h3 {
  color: var(--white);
}

.convert-content p {
  color: var(--grey-light);
  font-size: 0.925rem;
}

.convert-content .text-link {
  color: var(--white);
  border-color: var(--grey);
  display: inline-block;
  margin-top: 0.75rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(196, 194, 194, 0.15);
}

.footer-brand > p:first-of-type {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  margin: 1rem 0 0.5rem;
}

.footer-contact { font-size: 0.875rem; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-nav h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1rem;
}

.footer-nav a {
  display: block;
  font-size: 0.875rem;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding: 1.5rem 0;
  font-size: 0.8rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .card-grid.three,
  .partner-cards,
  .convert-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .network-split,
  .capabilities-split {
    grid-template-columns: 1fr;
  }

  .delivery-inner { margin-top: -4rem; }
}

@media (min-width: 1101px) {
  .menu-toggle,
  .menu-toggle-light {
    display: none;
  }

  .site-header--hero .main-nav {
    display: flex;
  }
}

@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }

  .menu-toggle,
  .menu-toggle-light {
    display: flex;
    margin-left: auto;
  }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 101;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--grey-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .main-nav.open a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--grey-light);
  }

  .main-nav.open a:last-child {
    border-bottom: none;
  }

  .site-header--hero .main-nav.open {
    background: rgba(31, 32, 33, 0.98);
    border-bottom-color: rgba(196, 194, 194, 0.15);
  }

  .site-header--hero .main-nav.open a {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(196, 194, 194, 0.12);
  }

  .site-header:not(.site-header--hero) .main-nav.open,
  .site-header--hero.scrolled .main-nav.open {
    background: rgba(31, 32, 33, 0.98);
  }

  .site-header:not(.site-header--hero) .main-nav.open a,
  .site-header--hero.scrolled .main-nav.open a {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(196, 194, 194, 0.12);
  }
}

@media (max-width: 900px) {
  .hero-brand-grid {
    grid-template-columns: 1fr;
  }

  .hero-mosaic {
    width: min(88vw, 400px);
    margin-inline: auto;
  }

  .hero-flow-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-cta { display: none; }

  .card-grid.three,
  .work-grid,
  .partner-cards,
  .convert-grid,
  .metrics-grid,
  .footer-grid,
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .section { padding: 3.5rem 0; }

  .hero-brand {
    min-height: auto;
    padding-top: 5.5rem;
  }

  .hero-brand-title {
    max-width: none;
  }

  .delivery-visual img { height: 280px; }
  .delivery-inner { margin-top: -2rem; padding-bottom: 3.5rem; }

  .convert-card { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-card:hover .card-media img,
  .work-card:hover,
  .convert-card:hover {
    transform: none;
  }
}
