/* ============================================
   Sumaiya Salam Munira — Portfolio
   ============================================ */

:root {
  --maroon: #b03050;
  --maroon-dark: #8f2741;
  --maroon-soft: #c04562;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --paper: #ffffff;
  --mist: #f5f5f5;
  --mist-2: #f9f9f9;
  --charcoal: #1f1f1f;
  --radius: 2px;
  --max: 1140px;
  --header-h: 78px;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --shadow-soft: 0 18px 50px rgba(26, 26, 26, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

.eyebrow,
.section-label,
.pillar-label {
  margin: 0 0 0.85rem;
  color: var(--maroon);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-label {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-label-lg {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  letter-spacing: 0.22em;
  font-weight: 700;
  margin-bottom: 3rem;
}

h1,
h2,
.exp-card h3,
.pillar h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--maroon);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.btn-primary {
  background: var(--maroon);
  color: #fff;
}

.btn-primary:hover {
  background: var(--maroon-dark);
}

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

.btn-outline:hover {
  background: var(--maroon);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--maroon);
}

.btn-light:hover {
  background: #f3e6ea;
}

.header-cta {
  justify-self: end;
}

.text-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--maroon);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.text-link:hover {
  color: var(--maroon-soft);
}

/* ---------- 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 rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.25rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.logo-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.15rem 1.05rem;
}

.nav-link {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 4.4vw, 3.55rem);
  max-width: 14ch;
}

.hero-bio {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

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

.hero-visual {
  justify-self: end;
  width: min(100%, 480px);
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  background: #f4f1f2;
}

/* ---------- Stats ---------- */

.stats {
  background: var(--mist);
  padding: 2.75rem 0 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.stat-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.stat-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--maroon);
}

.stat-icon svg,
.feature-icon svg,
.pillar-icon svg,
.contact-icon svg,
.exp-logo svg {
  width: 100%;
  height: 100%;
}

.stat-item h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stat-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.stats-note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
}

/* ---------- About ---------- */

.about {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: start;
}

.about-copy h2 {
  margin: 0 0 1.35rem;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  max-width: 16ch;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.about-copy .btn {
  margin-top: 1.25rem;
}

.about-features {
  display: grid;
  gap: 1.75rem;
  padding-top: 1.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.feature-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--maroon);
}

.feature-row h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
}

.feature-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Experience ---------- */

.experience {
  background: var(--charcoal);
  color: #fff;
  padding: 5.5rem 0;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

.exp-divider {
  width: 1px;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.15);
  align-self: stretch;
}

.exp-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  font-weight: 800;
  font-size: 1.35rem;
}

.exp-logo.brand-logo {
  background: transparent;
  border: 0;
  padding: 0;
}

.exp-logo.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.exp-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.85rem;
  color: #fff;
}

.exp-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34rem;
  font-size: 0.98rem;
}

.exp-card .text-link {
  color: var(--maroon-soft);
}

/* ---------- Pillars ---------- */

.pillars {
  background: var(--mist-2);
  padding: 5.5rem 0;
}

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

.pillar {
  padding: 0.5rem 0.25rem;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--maroon);
}

.pillar h3 {
  margin: 0 0 0.85rem;
  font-size: 1.65rem;
  max-width: 14ch;
}

.pillar p:not(.pillar-label) {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 28rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
  align-items: stretch;
}

.footer-cta {
  background: var(--maroon);
  color: #fff;
  padding: 3rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  min-height: 220px;
}

.footer-cta h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  max-width: 12ch;
  color: #fff;
}

.footer-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

.contact-rows {
  display: grid;
  gap: 1rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--maroon);
}

.socials {
  display: flex;
  gap: 0.85rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.socials a svg {
  width: 16px;
  height: 16px;
}

.socials a:hover {
  color: var(--maroon);
  border-color: var(--maroon);
  background: #faf0f3;
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.built-with span {
  color: var(--maroon);
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.hero-content,
.hero-visual {
  animation: rise 0.9s ease both;
}

.hero-visual {
  animation-delay: 0.12s;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: grid;
  }

  .header-cta {
    min-height: 40px;
    padding: 0.55rem 1rem;
    font-size: 0.66rem;
  }

  .hero-grid,
  .about-grid,
  .pillars-grid,
  .footer-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: center;
    order: -1;
    width: min(100%, 380px);
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .exp-divider {
    width: 100%;
    height: 1px;
    min-height: 0;
  }

  .footer-cta {
    min-height: 180px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .about,
  .experience,
  .pillars {
    padding: 4rem 0;
  }

  .hero-content h1 {
    max-width: none;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .socials {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================
   Case Study Pages
   ============================================ */

.cs-hero {
  padding: 3.5rem 0 2.5rem;
}

.cs-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.cs-hero-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
}

.cs-brand {
  width: 48px;
  height: 48px;
  margin: 0 0 0.85rem;
  border-radius: 10px;
  overflow: hidden;
}

.cs-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-hero-copy .lede {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  max-width: 28ch;
}

.cs-hero-copy .lede em {
  font-style: italic;
  color: var(--maroon);
}

.cs-hero-copy .body {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.cs-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.cs-metric {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.cs-metric-icon {
  width: 22px;
  height: 22px;
  color: var(--maroon);
}

.cs-metric-icon svg {
  width: 100%;
  height: 100%;
}

.cs-metric strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cs-section {
  padding: 3.5rem 0;
}

.cs-section-title {
  margin: 0 0 2rem;
  color: var(--maroon);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cs-section-title-lg {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  letter-spacing: 0.22em;
  margin-bottom: 2.5rem;
}

.cs-contrib-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.cs-contrib-item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cs-contrib-item .icon {
  width: 28px;
  height: 28px;
  color: var(--maroon);
}

.cs-contrib-item .icon svg {
  width: 100%;
  height: 100%;
}

.cs-contrib-item h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.cs-contrib-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.cs-panel {
  background: #0f1724;
  color: #fff;
  padding: 3.25rem 0;
}

.cs-panel-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr auto;
  gap: 2.5rem;
  align-items: center;
}

.cs-panel-grid-2 {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.cs-panel h2,
.cs-panel .cs-section-title {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.85rem;
}

.cs-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  font-size: 0.95rem;
}

.cs-media-list {
  display: grid;
  gap: 0.75rem;
}

.cs-media-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cs-media-item:hover {
  border-color: rgba(176, 48, 80, 0.65);
  background: rgba(176, 48, 80, 0.12);
}

.cs-media-item .icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--maroon-soft);
}

.cs-media-item .icon svg {
  width: 18px;
  height: 18px;
}

.cs-media-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.cs-media-item small {
  display: block;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
}

.cs-evidence-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
}

.cs-evidence-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 600;
}

.cs-evidence-item .icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--maroon-soft);
}

.cs-evidence-item .icon svg {
  width: 18px;
  height: 18px;
}

.btn-ghost {
  background: transparent;
  border-color: var(--maroon-soft);
  color: #fff;
  white-space: nowrap;
}

.btn-ghost:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.cs-initiatives {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.cs-impact {
  background: var(--mist);
}

.cs-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cs-impact-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
}

.cs-impact-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.cs-disclaimer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: left;
  max-width: 52rem;
  margin-inline: auto;
}

.cs-disclaimer .icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  color: var(--maroon);
}

.cs-disclaimer .icon svg {
  width: 100%;
  height: 100%;
}

/* Device mockups */
.device-stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.device-stage.ringid::before {
  content: "";
  position: absolute;
  inset: 8% 4% 12%;
  background:
    radial-gradient(circle at 20% 30%, rgba(176, 48, 80, 0.06), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(47, 111, 237, 0.06), transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%23d9d9d9'/%3E%3C/svg%3E");
  opacity: 0.9;
  border-radius: 50%;
  z-index: 0;
}

.phone {
  position: relative;
  width: 168px;
  height: 340px;
  padding: 10px;
  background: #111;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
  z-index: 1;
}

.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 54px;
  height: 8px;
  transform: translateX(-50%);
  background: #222;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.phone.back {
  transform: translate(-42px, 18px) rotate(-8deg);
  z-index: 1;
}

.phone.front {
  position: absolute;
  transform: translate(48px, -8px) rotate(6deg);
  z-index: 2;
}

.ring-login {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(180deg, #3d7dff 0%, #2a5fd4 100%);
  color: #fff;
  padding: 1rem;
  text-align: center;
}

.ring-login .mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
  font-size: 1.25rem;
}

.ring-login .mark-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.ring-login .title {
  font-weight: 700;
  font-size: 0.95rem;
}

.ring-login .field {
  width: 100%;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
}

.ring-login .btn-fake {
  width: 100%;
  height: 30px;
  border-radius: 6px;
  background: #fff;
  color: #2a5fd4;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
}

.ring-feed {
  height: 100%;
  background: #151515;
  color: #fff;
  padding: 1.4rem 0.65rem 0.65rem;
}

.ring-feed .stories {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.ring-feed .story {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--maroon-soft);
  background: linear-gradient(135deg, #444, #222);
}

.ring-feed .card {
  background: #222;
  border-radius: 10px;
  padding: 0.55rem;
  margin-bottom: 0.45rem;
}

.ring-feed .card .thumb {
  height: 70px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3a3a3a, #1f1f1f);
  margin-bottom: 0.4rem;
}

.ring-feed .card .line {
  height: 6px;
  border-radius: 999px;
  background: #3a3a3a;
  margin-bottom: 0.25rem;
}

.ring-feed .card .line.short {
  width: 55%;
}

.device-stage.tipaload {
  min-height: 440px;
}

.laptop {
  position: relative;
  width: min(100%, 360px);
  z-index: 1;
}

.laptop-screen {
  background: #1b1f27;
  border: 8px solid #2a2f38;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.laptop-base {
  height: 12px;
  background: linear-gradient(180deg, #d7d7d7, #bdbdbd);
  border-radius: 0 0 8px 8px;
  position: relative;
}

.laptop-base::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 56px;
  height: 4px;
  transform: translateX(-50%);
  background: #9e9e9e;
  border-radius: 999px;
}

.dash {
  height: 100%;
  padding: 0.7rem;
  background: #f4f6f8;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.55rem;
}

.dash-top {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}

.dash-pill {
  flex: 1;
  height: 28px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e4e7eb;
}

.dash-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.45rem;
}

.dash-chart,
.dash-side {
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
}

.dash-chart {
  background:
    linear-gradient(180deg, transparent 60%, rgba(176, 48, 80, 0.12)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgba(0, 0, 0, 0.03) 18px,
      rgba(0, 0, 0, 0.03) 19px
    ),
    #fff;
  position: relative;
}

.dash-chart::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 8%;
  bottom: 18%;
  height: 45%;
  border-top: 2px solid var(--maroon);
  border-radius: 40% 60% 0 0 / 100% 100% 0 0;
}

.phone.tip-voice {
  position: absolute;
  width: 118px;
  height: 240px;
  right: 8%;
  top: 6%;
  transform: rotate(8deg);
  z-index: 3;
}

.phone.tip-book {
  position: absolute;
  width: 118px;
  height: 240px;
  right: 2%;
  bottom: 4%;
  transform: rotate(-4deg);
  z-index: 2;
}

.voice-ui {
  height: 100%;
  background: #101820;
  color: #fff;
  padding: 1.3rem 0.55rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.voice-ui .label {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.voice-ui .wave {
  height: 54px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--maroon-soft) 0 3px,
      transparent 3px 7px
    );
  opacity: 0.85;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.voice-ui .bubble {
  margin-top: auto;
  background: #1c2733;
  border-radius: 10px;
  padding: 0.45rem;
  font-size: 0.55rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.8);
}

.book-ui {
  height: 100%;
  background: #fff;
  padding: 1.3rem 0.55rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.book-ui .title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink);
}

.book-ui .field {
  height: 18px;
  border-radius: 4px;
  background: #f0f2f5;
  border: 1px solid #e5e7eb;
}

.book-ui .btn-fake {
  margin-top: auto;
  height: 24px;
  border-radius: 4px;
  background: var(--maroon);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .cs-contrib-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .cs-panel-grid {
    grid-template-columns: 1fr;
  }
}

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

  .cs-contrib-grid,
  .cs-initiatives {
    grid-template-columns: 1fr 1fr;
  }

  .device-stage {
    min-height: 360px;
    order: -1;
  }

  .phone.tip-voice,
  .phone.tip-book {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
  }

  .device-stage.tipaload {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .cs-contrib-grid,
  .cs-initiatives,
  .cs-evidence-list {
    grid-template-columns: 1fr;
  }

  .phone.back,
  .phone.front {
    position: relative;
    transform: none;
  }

  .device-stage.ringid {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }
}

/* ============================================
   Research / Education Page
   ============================================ */

.edu-hero {
  padding: 3.75rem 0 1.5rem;
}

.edu-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 4vw, 3.3rem);
  max-width: 16ch;
}

.edu-intro {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.edu-list {
  padding: 2rem 0 4rem;
}

.edu-section-title {
  margin: 0 0 0.5rem;
  color: var(--maroon);
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.edu-section-title-spaced {
  margin-top: 2.75rem;
}

.edu-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
  align-items: stretch;
}

.edu-card-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 220px;
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--mist-2);
}

.edu-card-panel .edu-card-top {
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  min-height: 5.5rem;
}

.edu-card-panel .edu-meta {
  text-align: left;
  white-space: normal;
}

.edu-card-panel ul {
  margin-top: auto;
}

.edu-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.edu-list > .container > .edu-section-title + .edu-card,
.edu-list > .container > .edu-card:first-of-type {
  border-top: 1px solid var(--line);
}

.edu-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.edu-card h2,
.edu-card h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  max-width: 28ch;
  font-family: var(--font-serif);
  font-weight: 600;
}

.edu-org {
  margin: 0;
  color: var(--maroon);
  font-size: 0.92rem;
  font-weight: 600;
}

.edu-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

.edu-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  max-width: 52rem;
}

.edu-card li {
  margin-bottom: 0.55rem;
}

.edu-card li:last-child {
  margin-bottom: 0;
}

.edu-cta {
  background: var(--mist);
  padding: 3.25rem 0;
  border-top: 1px solid var(--line);
}

.edu-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.edu-cta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  max-width: 18ch;
}

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

@media (max-width: 800px) {
  .edu-card-top {
    flex-direction: column;
    gap: 0.5rem;
  }

  .edu-meta {
    text-align: left;
    white-space: normal;
  }

  .edu-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .edu-pair-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Articles Page
   ============================================ */

.articles-list {
  padding: 1.5rem 0 4.5rem;
}

.article-card {
  display: grid;
  grid-template-columns: 1fr min(34%, 320px);
  gap: 1.75rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.2s ease;
}

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

.article-card:hover {
  transform: translateX(4px);
}

.article-meta {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 0.55rem;
  color: var(--maroon);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-card h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  max-width: 28ch;
}

.article-card p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  max-width: 46rem;
  font-size: 0.96rem;
}

.article-link {
  color: var(--maroon);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-thumb {
  border-radius: 6px;
  overflow: hidden;
  background: var(--mist);
  box-shadow: var(--shadow-soft);
}

.article-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 800px) {
  .article-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .article-thumb {
    order: -1;
    max-width: 100%;
  }
}

