/* ==========================================================================
   Ruthyana Vita — Portfolio
   Shared tokens + components
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');



:root {
  --bg: #14100C;
  --bg-nav: #1B1613;
  --panel: #1C150F;
  --card: #EFE6D8;
  --card-muted: #EAE3D7;
  --text: #EFE6D8;
  --text-muted: #9B9288;
  --accent: #A8703F;
  --status-dot: #0F6E56;

  --font: 'Poppins', sans-serif;

  --nav-h: 64px;
  --gutter: 64px;
  --max-w: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@view-transition {
  navigation: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
}

/* -------------------- Nav -------------------- */

.nav {
  background: var(--bg-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--text);
}

.nav__toggle {
  display: none;
  position: relative;
  width: 22px;
  height: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 101;
}

.nav__toggle-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}

.nav__toggle-bar:nth-child(1) { top: 0; }
.nav__toggle-bar:nth-child(2) { top: 7px; }
.nav__toggle-bar:nth-child(3) { top: 100%; transform: translateY(-2px); }

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

@media (max-width: 640px) {
  .nav__toggle { display: block; }

  .nav__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 4px var(--gutter) 20px;
    background: var(--bg-nav);
    border-top: 1px solid rgba(239, 230, 216, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }

  .nav__links.is-open {
    max-height: 280px;
    opacity: 1;
  }

  .nav__links li {
    border-top: 1px solid rgba(239, 230, 216, 0.06);
  }
  .nav__links li:first-child { border-top: none; }

  .nav__links a {
    display: block;
    padding: 14px 0;
  }
}

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

.footer {
  border-top: 1px solid rgba(239, 230, 216, 0.08);
  padding: 28px 0;
  margin-top: 96px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

@media (max-width: 500px) {
  .footer__inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* -------------------- Eyebrow / labels -------------------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* -------------------- Buttons / interactive rows -------------------- */

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.mini-btn__box {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.mini-btn:hover .mini-btn__box {
  transform: translateX(3px);
}

/* -------------------- Placeholder blocks (for missing imagery) -------------------- */

.cover-placeholder {
  background: var(--panel);
  border: 1px dashed rgba(239, 230, 216, 0.15);
  border-radius: 20px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Case study pages — shared by every case-study-*.html
   ========================================================================== */

.cs-head { padding: 40px 0 32px; }
.cs-head h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 600;
  margin: 14px 0 12px;
}
.cs-head p.subtitle {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 640px;
  margin: 0 0 40px;
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 40px;
}
.cs-meta__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 6px;
}
.cs-meta__value {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}
.cs-meta__value a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.15s ease;
}
.cs-meta__value a:hover { opacity: 0.75; }
@media (max-width: 700px) {
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
}

.cs-cover {
  background: var(--card);
  border-radius: 24px;
  aspect-ratio: 2604 / 760;
  margin-bottom: 56px;
  overflow: hidden;
}
.cs-cover img { width: 100%; height: 100%; object-fit: cover; }

.cs-decision-list {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14.5px;
}
.cs-decision-list li { margin-bottom: 8px; }
.cs-decision-list strong { color: var(--text); font-weight: 600; }

.cs-type {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0 16px;
  max-width: 640px;
}
.cs-type__card {
  background: var(--card);
  border-radius: 14px;
  padding: 18px 20px;
  color: #14100C;
}
.cs-type__name { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.cs-type__weights { font-size: 12px; color: #6b6357; }

.cs-swatches {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 0 0 8px;
}
.cs-swatch {
  flex: 1;
  height: 76px;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 40px 0 0;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--text); }

/* ---- Scrollytelling story section (Context / Problem / Research / Decision / Outcome / ...) ---- */
.cs-story {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--panel);
}
.cs-story__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: 56px;
  align-items: flex-start;
}
.cs-story__nav {
  position: sticky;
  top: calc(var(--nav-h) + 46px);
  flex: 0 0 300px;
}
.cs-story__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cs-story__nav-list a {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.45;
  transform: scale(1);
  transform-origin: left center;
  white-space: nowrap;
  transition: opacity 0.25s ease, transform 0.25s ease, font-size 0.25s ease;
  cursor: pointer;
}
.cs-story__nav-list a:hover { opacity: 0.75; }
.cs-story__nav-list a.is-active {
  opacity: 1;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  transform: scale(1);
}
.cs-story__content { flex: 1; min-width: 0; }
.cs-story__section {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 56px 0 32px;
  scroll-margin-top: var(--nav-h);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.cs-story__section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cs-story__section p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 0 14px;
  text-align: left;
}
.cs-story__media {
  margin-top: 24px;
  min-height: 200px;
}
.cs-story__img {
  width: 100%;
  border-radius: 16px;
  display: block;
}
.cs-story__mobile-title {
  display: none;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
@media (max-width: 860px) {
  .cs-story__inner { flex-direction: column; gap: 0; }
  .cs-story__nav { display: none; }
  .cs-story__section {
    min-height: calc(100vh - var(--nav-h));
    padding: 28px 0;
  }
  .cs-story__mobile-title { display: block; }
}
