/* ============================================================
   Rachel Rosenson — Portfolio
   Recreated from the original Framer design.
   Design tokens extracted from the live site.
   ============================================================ */

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #6b6b6b;
  --muted-light: #aeaeae;
  --accent: #e2f505;          /* yellow-green pill buttons */
  --accent-hover: #d3e600;
  --border: #e6e6e6;
  --card-border: #ececec;

  --container: 1280px;
  --pad-x: clamp(20px, 5vw, 114px);

  --radius-pill: 1000px;
  --radius-card: 30px;

  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.4;
}

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

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

/* ---------- Layout helpers ---------- */
main { display: block; }

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) var(--pad-x) clamp(60px, 9vw, 140px);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav__name {
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 17px;
  font-weight: 500;
}

.nav__links a { transition: opacity .2s ease; }
.nav__links a:hover { opacity: .55; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--fg);
  transition: transform .25s ease, opacity .25s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--pad-x) 24px;
  font-size: 22px;
  font-weight: 500;
}
.mobile-menu a { padding: 10px 0; }
.mobile-menu[hidden] { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  padding: 18px 32px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s ease, transform .15s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn__arrow { font-size: 1em; line-height: 1; }

.btn--primary {
  background: var(--accent);
  color: var(--fg);
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--outline {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--fg); }

.btn--sm {
  font-size: 16px;
  padding: 14px 26px;
}

/* ---------- Social circle buttons ---------- */
.social { display: flex; gap: 14px; }
.social__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: background .2s ease, border-color .2s ease;
}
.social__btn:hover { background: #f5f5f5; border-color: #d8d8d8; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 60px) var(--pad-x) clamp(24px, 3vw, 40px);
}

.hero__title {
  margin: 0;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero__intro {
  margin: clamp(28px, 4vw, 48px) 0 clamp(32px, 4vw, 48px);
  max-width: 1000px;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.4;
  font-weight: 400;
}
.hero__intro strong { font-weight: 700; }

.hero__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section__title {
  margin: 0 0 clamp(36px, 5vw, 64px);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.section__num {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-light);
  line-height: 1;
  padding-top: 2px;
}

/* ============================================================
   LOGO CAROUSEL
   ============================================================ */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-carousel {
  overflow: hidden;
  padding: 10px 0;
  margin-bottom: 20px;
}

.logo-carousel__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.logo-carousel__track img {
  height: 72px;
}

/* ============================================================
   CONTENT CARDS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(28px, 3vw, 44px);
}

.cards--content {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 24px 24px 32px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
  transform: translateY(-3px);
}

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: #1a1a1a;
  background-size: cover;
  background-position: center;
}

.card__overlay {
  display: none;
}
.card__overlay-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}
.card__overlay-sub {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  opacity: .92;
  max-width: 60%;
}

.card__title {
  margin: 26px 0 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
}
.card__sub {
  margin: 12px 0 24px;
  font-size: 18px;
  color: var(--muted);
}
.card .btn { align-self: flex-start; margin-top: auto; }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp { display: flex; flex-direction: column; }

.exp__item {
  padding: clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--border);
}
.exp__item:first-child { padding-top: 0; }

.exp__role {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.6;
}
.exp__date {
  margin: 0 0 24px;
  font-size: 18px;
  color: var(--fg);
}
.exp__list {
  margin: 0 0 32px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.exp__list li {
  font-size: 18px;
  line-height: 1.6;
}
.exp__list li::marker { color: var(--fg); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.contact__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  margin-top: 4px;
}
.contact__title {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--pad-x) 60px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 16px;
  font-weight: 500;
}
.footer__links a { transition: opacity .2s ease; }
.footer__links a:hover { opacity: .55; }
.footer__copy {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* ============================================================
   CASE STUDY PAGES
   ============================================================ */
.cs {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 56px) var(--pad-x) clamp(60px, 9vw, 120px);
}

/* ---------- Back link ---------- */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: clamp(28px, 4vw, 44px);
  transition: color .2s ease;
}
.cs-back:hover { color: var(--fg); }

/* ---------- Hero ---------- */
.cs-hero { margin-bottom: clamp(40px, 6vw, 72px); }

.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.cs-eyebrow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--fg);
  font-size: 13px;
  letter-spacing: 0;
}

.cs-title {
  margin: 0;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.cs-meta {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 17px;
  color: var(--muted);
}
.cs-meta span { position: relative; }
.cs-meta span + span::before {
  content: "·";
  margin-right: 18px;
  color: var(--muted-light);
}

.cs-summary {
  margin: clamp(28px, 4vw, 40px) 0 0;
  max-width: 900px;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.4;
  font-weight: 400;
}
.cs-summary strong { font-weight: 700; }

/* ---------- Section blocks ---------- */
.cs-block {
  padding: clamp(32px, 5vw, 56px) 0;
  border-top: 1px solid var(--border);
}
.cs-block__label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.cs-block__title {
  margin: 0 0 24px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.2;
}
.cs-block__text {
  margin: 0;
  max-width: 820px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--fg);
}
.cs-block__text + .cs-block__text { margin-top: 18px; }

/* ---------- Two-column (text + media) ---------- */
.cs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.cs-split--reverse .cs-split__media { order: -1; }

/* ---------- Approach moves ---------- */
.cs-moves {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 28px);
}
.cs-move {
  display: flex;
  gap: 18px;
}
.cs-move__num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  margin-top: 2px;
}
.cs-move__body { flex: 1; }
.cs-move__title {
  margin: 0 0 6px;
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 500;
  line-height: 1.4;
}
.cs-move__text {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Stats ---------- */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.cs-stat__num {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.cs-stat__label {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- Tag chips ---------- */
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-tags li {
  font-size: 16px;
  font-weight: 500;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

/* ---------- Pull-quote (learning) ---------- */
.cs-quote {
  margin: 0;
  padding: clamp(36px, 5vw, 64px) 0 0;
  border-top: 1px solid var(--border);
}
.cs-quote__label {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.cs-quote blockquote {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 1000px;
}

/* ---------- Image placeholder blocks ---------- */
.cs-ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  border: 1.5px dashed #d6d6d6;
  border-radius: 20px;
  background:
    repeating-linear-gradient(
      -45deg,
      #fafafa,
      #fafafa 12px,
      #f4f4f4 12px,
      #f4f4f4 24px
    );
  color: var(--muted-light);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.cs-ph--wide { aspect-ratio: 16 / 9; }
.cs-ph--square { aspect-ratio: 1 / 1; }
.cs-ph--portrait { aspect-ratio: 3 / 4; }
.cs-ph { aspect-ratio: 4 / 3; }
.cs-ph__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 80%;
}
.cs-ph__icon {
  width: 36px;
  height: 36px;
  opacity: .5;
}

/* ---------- Gallery of placeholders ---------- */
.cs-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

/* ---------- Password gate ---------- */
#cs-gate {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 80px);
}

.cs-gate__box {
  width: 100%;
  max-width: 480px;
}

.cs-gate__label {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cs-gate__title {
  margin: 0 0 32px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.2;
}

.cs-gate__form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cs-gate__input {
  flex: 1;
  min-width: 0;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: border-color .2s ease;
}
.cs-gate__input:focus { border-color: var(--fg); }

.cs-gate__btn { white-space: nowrap; }

.cs-gate__error {
  margin: 16px 0 0;
  font-size: 15px;
  color: #c0392b;
}

/* ---------- Case study CTA ---------- */
.cs-cta {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(40px, 5vw, 64px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  text-align: center;
}
.cs-cta__title {
  margin: 0 0 28px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.2;
}
.cs-cta .hero__actions { justify-content: center; }

/* ---------- Next case study ---------- */
.cs-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(28px, 4vw, 40px) 0 0;
  border-top: 1px solid var(--border);
  transition: opacity .2s ease;
}
.cs-next:hover { opacity: .6; }
.cs-next__meta { display: flex; flex-direction: column; gap: 6px; }
.cs-next__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.cs-next__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.2;
}
.cs-next__arrow {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  flex: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .card__overlay-sub { max-width: 80%; }
  .cs-split { grid-template-columns: 1fr; }
  .cs-split--reverse .cs-split__media { order: 0; }
}

@media (max-width: 520px) {
  .hero__actions { gap: 16px; }
  .btn { font-size: 16px; padding: 16px 26px; }
}
