/* =========================================================
   Lilian Yang — Portfolio
   Design source: Figma "portfolio-content" (node 130:112)
   Breakpoints: Mobile <768px · Tablet 768–1023px · Desktop ≥1024px
   ========================================================= */

:root {
  --ink: #1a1a1a;
  --ink-90: rgba(26, 26, 26, 0.9);
  --ink-75: rgba(26, 26, 26, 0.75);
  --ink-60: rgba(26, 26, 26, 0.6);
  --ink-55: rgba(26, 26, 26, 0.55);
  --ink-15: rgba(26, 26, 26, 0.15);
  --ink-10: rgba(26, 26, 26, 0.1);
  --ink-05: rgba(26, 26, 26, 0.05);
  --cream: #f7f1e8;
  --white: #ffffff;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

/* =====================================================
   Site header / nav
   ===================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--ink-15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 25px;
}

.site-header__name {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.08px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px 32px;
  flex: 1;
  min-width: 0;
}

.site-nav a {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.08px;
  color: var(--ink);
  white-space: nowrap;
}

.site-header--back {
  justify-content: flex-start;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.08px;
}

.back-link__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* =====================================================
   Buttons
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.08px;
  white-space: nowrap;
}

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

.btn--secondary {
  border: 2px solid var(--ink-15);
  color: var(--ink);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.09px;
}

/* =====================================================
   Typography helpers
   ===================================================== */

.eyebrow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  color: var(--ink);
}

.eyebrow-meta .dot {
  font-weight: 700;
}

.body-text {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.09px;
  color: var(--ink-55);
}

.body-text p + p {
  margin-top: 1.45em;
}

.body-text ul {
  list-style: disc;
  padding-left: 1.4em;
  margin: 0.5em 0;
}

.body-text li + li {
  margin-top: 0.4em;
}

.body-text em {
  font-style: italic;
  font-weight: 700;
  color: var(--ink-55);
}

.divider {
  border: none;
  border-top: 1px solid var(--ink-15);
  width: 100%;
  margin: 0;
}

/* =====================================================
   Stat cards
   ===================================================== */

.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.stat-card {
  background: var(--ink-05);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

.stat-card__value {
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.6px;
  line-height: 1.45;
  color: var(--ink);
}

.stat-card__label {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.09px;
  line-height: 1.4;
  color: var(--ink-55);
}

/* =====================================================
   Case study card (Featured work / Read more)
   ===================================================== */

.case-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: 12px;
  padding: 16px 16px 32px;
  width: 100%;
  text-align: left;
}

.case-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-05);
}

.case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 0 16px;
  width: 100%;
}

.case-card__title {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.96px;
  color: var(--ink);
}

.case-card__desc {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.09px;
  color: var(--ink-55);
}

/* .case-card--row becomes a side-by-side grid only at desktop (see
   min-width:1024px block below); on mobile/tablet it renders as a
   plain stacked .case-card, matching the design. */

/* =====================================================
   Placeholder media (stand-in for exported Figma images —
   see README notes on swapping in real exports)
   ===================================================== */

.media {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.08), rgba(26, 26, 26, 0.03));
  border: 1px solid var(--ink-15);
}

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

.media--hero {
  border-radius: 12px;
  aspect-ratio: 16 / 9;
}

.media--wide {
  aspect-ratio: 16 / 9;
}

.media--tall {
  aspect-ratio: 880 / 476;
}

.media--photo {
  border-radius: 16px;
  aspect-ratio: 424 / 387;
}

/* =====================================================
   Contact section
   ===================================================== */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 64px 128px;
  background: var(--white);
  width: 100%;
}

.contact__text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact__heading {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.contact__sub {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.1px;
  color: var(--ink-55);
}

.contact__buttons {
  display: grid;
  gap: 16px;
}

/* =====================================================
   Footer
   ===================================================== */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 64px;
  border-top: 1px solid var(--ink-10);
  width: 100%;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav button,
.footer-nav a {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.08px;
  color: var(--ink-55);
}

.footer-social {
  display: flex;
  align-items: center;
}

.footer-social svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* =====================================================
   HOME PAGE
   ===================================================== */

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 120px 24px 80px;
  text-align: left;
}

.home-hero__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1024px;
}

.home-hero .stat-cards {
  max-width: 1024px;
}

.home-hero__title {
  font-weight: 700;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -1.6px;
}

.home-hero__lead {
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.72px;
}

.clients {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 0;
  background: var(--ink-05);
}

.clients__label {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.09px;
  color: var(--ink-55);
  text-align: center;
}

.clients__marquee {
  width: 100%;
  overflow: hidden;
}

.clients__logos {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: max-content;
  gap: 32px;
  animation: clients-marquee var(--marquee-duration, 40s) linear infinite;
}

.clients__logo-set {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.clients__logos img {
  height: 84px;
  width: auto;
}

@keyframes clients-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients__logos {
    animation: none;
  }
}

.section {
  padding: 80px 24px;
}

.section--alt {
  background: var(--ink-05);
}

.section__heading {
  font-weight: 700;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -1.6px;
  text-align: center;
  margin-bottom: 64px;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1152px;
  margin: 0 auto;
}

.work-grid .case-card {
  border: 1px solid var(--ink-15);
  transition: box-shadow 0.2s ease;
}

.work-grid .case-card:hover {
  box-shadow: 0 4px 8px 0 var(--ink-15);
}

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 1024px;
  margin: 0 auto;
}

.about__heading {
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.88px;
  text-align: center;
  width: 100%;
}

.about__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  width: 100%;
}

.about__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about__header svg {
  width: 24px;
  height: 24px;
}

.about__header h3 {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.27px;
  margin-bottom: 8px;
}

/* =====================================================
   CASE STUDY PAGES (SMBC Connect / Microsoft)
   ===================================================== */

.case-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 120px 40px 96px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.case-header__title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.case-header__title {
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1.44px;
}

.case-header__subtitle {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.1px;
  color: var(--ink-60);
}

.case-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.case-stats {
  background: var(--ink-05);
  display: flex;
  justify-content: center;
  padding: 96px 40px;
  width: 100%;
}

.case-stats .stat-cards {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
}

.case-stats .stat-card {
  align-items: center;
}

.case-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 96px 24px 128px;
  max-width: 560px;
  margin: 0 auto;
}

.case-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.case-block__heading {
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1.44px;
}

.case-steps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 80px;
  width: 100%;
}

.case-steps--tight {
  gap: 40px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}

.step--tight {
  gap: 16px;
}

.step__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.step__title {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.96px;
}

.step__subtitle {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.72px;
  color: var(--ink-75);
}

.case-readmore {
  display: flex;
  justify-content: center;
  background: var(--ink-05);
  padding: 40px 24px;
  width: 100%;
}

.case-readmore .case-card {
  max-width: 880px;
}

.impact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

/* =====================================================
   Tablet — 768–1023px (case study pages)
   ===================================================== */

@media (min-width: 768px) {
  .site-header,
  .site-footer {
    padding-left: 64px;
    padding-right: 64px;
  }

  .case-header {
    max-width: 920px;
    padding-left: 120px;
    padding-right: 120px;
  }

  .case-header__title {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -1.6px;
  }

  .case-header__subtitle {
    font-size: 24px;
    letter-spacing: -0.12px;
  }

  .case-stats {
    padding-left: 120px;
    padding-right: 120px;
  }

  .case-main {
    max-width: 920px;
    padding-left: 64px;
    padding-right: 64px;
  }

  .case-readmore {
    padding-left: 64px;
    padding-right: 64px;
  }

  .contact {
    padding: 80px 128px;
  }

  .contact__heading {
    font-size: 44px;
    letter-spacing: -0.88px;
  }

  .contact__sub {
    font-size: 18px;
    letter-spacing: -0.09px;
  }
}

/* =====================================================
   Desktop — 1024px and up
   ===================================================== */

@media (min-width: 1024px) {
  .site-header {
    padding: 24px 128px 25px;
  }

  .site-nav {
    gap: 16px 64px;
    flex: none;
    width: 675px;
  }

  .btn {
    padding: 12px 16px;
    font-size: 18px;
    letter-spacing: -0.09px;
  }

  .home-hero {
    padding: 96px;
    text-align: left;
  }

  .home-hero__content {
    gap: 40px;
    text-align: left;
  }

  .home-hero__lead {
    max-width: 960px;
  }

  .stat-cards {
    gap: 16px;
  }

  .clients {
    padding: 80px 0;
  }

  .clients__logos,
  .clients__logo-set {
    gap: 48px;
  }

  .section {
    padding: 96px 64px;
  }

  .work-grid {
    flex-direction: row;
    align-items: stretch;
  }

  .about {
    flex-direction: row;
    align-items: center;
    gap: 48px;
    text-align: left;
  }

  .about__heading {
    text-align: center;
  }

  .about__photo {
    flex: 1 0 0;
    align-self: stretch;
  }

  .about__card {
    width: 552px;
    flex-shrink: 0;
    border-radius: 16px;
  }

  .about__header h3 {
    font-size: 24px;
    letter-spacing: -0.36px;
  }

  .section--about-wrap {
    padding: 96px 128px;
  }

  .section--about-wrap .section__heading {
    /* margin-bottom: 64px; */
  }

  .contact {
    flex-wrap: nowrap;
    justify-content: center;
    padding: 64px 96px;
    max-width: 1280px;
    margin: 0 auto;
  }

  .contact__text {
    white-space: nowrap;
  }

  .contact__heading {
    font-size: 40px;
    letter-spacing: -0.8px;
  }

  .contact__sub {
    font-size: 20px;
    letter-spacing: -0.1px;
  }

  .case-header {
    max-width: 1280px;
    padding: 120px 200px 96px;
  }

  .case-stats {
    padding: 96px 200px;
  }

  .case-stats .stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1280px;
  }

  .case-main {
    max-width: 1280px;
    padding: 96px 200px 128px;
  }

  .case-readmore {
    padding: 40px 24px;
  }

  .case-card--row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    padding: 24px;
    max-width: 880px;
    border: 1px solid var(--ink-15);
    transition: box-shadow 0.2s ease;
  }

  .case-card--row:hover {
    box-shadow: 0 4px 8px 0 var(--ink-15);
  }

  .case-card--row .case-card__image {
    aspect-ratio: auto;
    height: 100%;
  }

  .case-card--row .case-card__body {
    padding: 0;
  }

  .step {
    gap: 32px;
  }

  .step__content {
    max-width: 960px;
  }
}

/* =====================================================
   Mobile-only tweaks (<768px)
   ===================================================== */

@media (max-width: 767px) {
  .site-header {
    padding: 24px 24px 25px;
  }

  .site-nav {
    gap: 16px 32px;
  }

  .btn {
    width: 100%;
  }

  .contact__buttons {
    width: 100%;
  }

  .contact__text {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .home .site-footer {
    gap: 56px;
  }

  .home .footer-nav {
    flex-wrap: wrap;
    flex-direction: row;
    row-gap: 32px;
  }

  .about__card {
    border-radius: 16px;
    background: transparent;
  }
}
