@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-card: #FAFAFA;
  --ink: #18181B;
  --ink-soft: #52525B;
  --ink-faint: #71717A;
  --pink: #DB2777;
  --pink-tint: #FCE7F3;
  --line: #E4E4E7;

  --sans: 'Inter', Helvetica, Arial, sans-serif;

  --max: 900px;
  --gutter: 24px;
}

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

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

a { color: inherit; }
::selection { background: var(--pink); color: #fff; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.mark {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mark .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); display: inline-block; }
.mark-group { display: flex; align-items: baseline; gap: 12px; }
.mark-role {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
}
@media (max-width: 700px) {
  .mark-role { display: none; }
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover { color: var(--pink); border-color: var(--pink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 20px; height: 1.5px; background: var(--ink); }

@media (max-width: 700px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 10px var(--gutter) 22px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
}

/* ===== LAYOUT ===== */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 56px 0; position: relative; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== PLACEHOLDER IMAGES ===== */
.placeholder-image {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  padding: 20px;
}
.hero-image { height: 300px; margin-top: 44px; }
.research-figure { margin: 30px 0; }
.research-image {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.research-caption {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-faint);
  text-align: right;
  margin-top: 10px;
}
.research-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.research-compare-item { display: flex; flex-direction: column; gap: 8px; }
.research-compare-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@media (max-width: 700px) {
  .research-compare { grid-template-columns: 1fr; }
}
.inline-image { height: 240px; margin: 30px 0; }
.about-image { height: 300px; }
.placeholder-label { max-width: 32ch; }

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  height: 420px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  box-sizing: border-box;
}
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-prev:hover, .carousel-next:hover { color: var(--pink); border-color: var(--pink); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}
.carousel-dot.active { background: var(--pink); border-color: var(--pink); }
@media (max-width: 700px) {
  .carousel { height: 280px; }
}

/* ===== TESTIMONIALS ===== */
.quote-carousel {
  height: 260px;
  background: var(--ink);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border: none;
  border-radius: 0;
}
.quote-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 40px max(70px, calc((100vw - var(--max)) / 2 + 70px));
  box-sizing: border-box;
}
.quote-text {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  color: #fff;
  margin: 0;
}
.quote-cite {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #D4D4D8;
  margin: 0;
}
@media (max-width: 700px) {
  .quote-carousel { height: 380px; }
  .quote-slide { padding: 40px 46px 40px 56px; }
  .quote-text { font-size: 16px; }
}

/* ===== LANDING HERO (text-only) ===== */
.hero {
  padding-top: 100px;
  padding-bottom: 56px;
  position: relative;
}
.hero-content {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: #fff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 48px max(44px, calc((100vw - var(--max)) / 2 + 44px));
}
.hero-eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #F472B6;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.hero-title {
  font-family: var(--sans);
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  max-width: 16ch;
  color: #fff;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: #D4D4D8;
  max-width: 50ch;
  margin: 0;
}
@media (max-width: 700px) {
  .hero-content { padding: 32px 24px; }
}

/* ===== WORK GRID (visual) ===== */
.work-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.work-label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.work-count { font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--ink-faint); }

.work-grid {
  display: flex;
  flex-direction: column;
}

.work-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.work-card:first-child { border-top: 1px solid var(--ink); }
.work-card-visual {
  width: 140px;
  height: 90px;
  position: relative;
  background-size: cover;
  background-position: center;
  filter: contrast(1.08) saturate(1.1);
}
.work-card-tag {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--pink);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.work-card-body { padding-top: 2px; }
.work-card-title {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.work-card-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 700px) {
  .work-card { grid-template-columns: 100px 1fr; gap: 16px; }
  .work-card-visual { width: 100px; height: 66px; }
}

/* ===== ABOUT ===== */
.section-header { margin-bottom: 26px; }
.about-grid { max-width: 60ch; }
.about-copy p { margin: 0 0 16px; color: var(--ink); font-size: 16px; }

/* ===== CONTACT ===== */
.contact {
  padding: 70px 40px 90px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.contact-title {
  font-family: var(--sans);
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 24ch;
}
.contact-row { display: flex; gap: 30px; flex-wrap: wrap; }
.contact-link {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.contact-link:hover { color: var(--pink); border-color: var(--pink); }

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 30px var(--gutter) 46px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}

/* ===== CASE STUDY PAGE ===== */
.case-hero { padding-top: 52px; padding-bottom: 8px; }
.case-hero-content { max-width: 70ch; }
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.case-meta .tag {
  color: var(--ink);
  background: var(--pink-tint);
  padding: 4px 9px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.case-title {
  font-family: var(--sans);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.case-subtitle {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 8px;
}
.case-byline {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 22px 0 0;
  line-height: 1.7;
}

.headline-stat {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--pink);
  border-radius: 0 8px 8px 0;
  padding: 26px 28px;
  margin: 36px 0 8px;
}
.headline-stat .stat-value {
  font-family: var(--sans);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pink);
  white-space: nowrap;
}
.headline-stat .stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  max-width: 34ch;
}

.case-body h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin: 40px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.case-body p { margin: 0 0 16px; color: var(--ink); }
.case-body ul:not(.stat-list) { margin: 0 0 16px; padding-left: 20px; color: var(--ink); }
.case-body ul:not(.stat-list) li { margin-bottom: 6px; }
.p-lede { font-family: var(--sans); font-size: 20px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.case-body em { color: var(--pink); font-weight: 500; font-style: normal; }
.case-body strong { font-weight: 600; }

.diff-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 14px 0 8px;
  font-size: 14.5px;
}
.diff-row { display: flex; gap: 10px; padding: 7px 0; align-items: baseline; }
.diff-row.remove { color: var(--ink-faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.diff-row.add { color: var(--pink); font-weight: 500; }
.diff-marker { font-family: var(--sans); font-weight: 500; flex-shrink: 0; }
.diff-caption { font-size: 13px; color: var(--ink-faint); margin-bottom: 18px !important; }

.stat-list {
  list-style: none;
  margin: 6px 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--pink);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
}
.stat { font-family: var(--sans); font-weight: 800; font-size: clamp(24px, 3.2vw, 30px); letter-spacing: -0.01em; color: var(--pink); white-space: nowrap; }
.stat-label { color: var(--ink); font-size: 15px; }

.callout {
  background: var(--pink-tint);
  border-left: 3px solid var(--pink);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  margin: 28px 0 4px;
  font-size: 15.5px;
}
.callout-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

/* ===== CASE NAV RAIL ===== */
.case-rail {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.rail-nav { display: flex; justify-content: space-between; gap: 20px; }
.rail-link {
  flex: 1;
  text-decoration: none;
  color: var(--ink);
  padding: 18px 0;
}
.rail-link.next { text-align: right; }
.rail-link-label {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.rail-link-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  transition: color 0.15s ease;
}
.rail-link:hover .rail-link-title { color: var(--pink); }

@media (max-width: 700px) {
  .hero-image, .inline-image { height: 210px; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

/* ===== LIGHTBOX ===== */
.zoomable-wrap { position: relative; cursor: zoom-in; display: block; }
.carousel-track > .zoomable-wrap { flex: 0 0 100%; width: 100%; height: 100%; }
.zoom-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(24, 24, 27, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.zoom-icon svg { width: 15px; height: 15px; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}
.lightbox-close:hover { color: var(--pink); }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-prev:hover, .lightbox-next:hover { color: var(--pink); border-color: var(--pink); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ===== RESUME MODAL ===== */
.resume-modal {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}
.resume-modal.open { display: flex; }
.resume-modal-backdrop { position: absolute; inset: 0; }
.resume-modal-panel {
  position: relative;
  width: min(820px, 100%);
  height: 100%;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.resume-modal-frame { width: 100%; height: 100%; border: 0; display: block; }
.resume-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.resume-modal-close:hover { color: var(--pink); border-color: var(--pink); }
@media (max-width: 700px) {
  .resume-modal { padding: 0; }
  .resume-modal-panel { border-radius: 0; }
}
