/* Design tokens from Figma */
:root {
  --color-text: #101828;
  --color-text-muted: #4a5565;
  --color-text-light: #6a7282;
  --color-text-inverse: #99a1af;
  --color-bg: #f9fafb;
  --color-bg-card: #f3f4f6;
  --color-border: #d1d5dc;
  --color-border-light: #e5e7eb;
  --color-dark: #101828;
  --color-dark-border: #1e2939;
  --color-dark-border-2: #364153;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-pill: 9999px;
  --font: 'Inter', -apple-system, sans-serif;
  --shadow-card: 0 1px 3px rgba(0,0,0,.06);
  --section-padding-y: 60px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--color-bg-card);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Khi nhảy tới section từ nav, để title cách nav ~60px (tránh dính sát header sticky) */
#work,
#experience,
#about {
  scroll-margin-top: 116px;
}

.logo {
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text);
  flex-shrink: 0;
}

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

.nav a {
  font-size: 16px;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-text);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

/* Alternating section backgrounds site-wide: 1st white, 2nd empty, 3rd white, ... */
.container > *:nth-child(odd),
.project-container > *:nth-child(odd) {
  position: relative;
}
.container > *:nth-child(odd)::before,
.project-container > *:nth-child(odd)::before {
  content: '';
  position: absolute;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  top: 0;
  bottom: 0;
  background: #ffffff;
  z-index: -1;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  padding: var(--section-padding-y) 0;
}
.hero-inner {
  max-width: 896px;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 27px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-text);
}
.hero h1 span {
  white-space: nowrap;
}

.hero-desc {
  margin: 0 0 24px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-text-muted);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 16px;
  line-height: 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background: var(--color-dark);
  color: white;
  border: none;
}

.btn-primary .btn-arrow {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* Section common — consistent padding site-wide */
.section {
  padding: var(--section-padding-y) 0;
  margin-bottom: 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-text);
}

.section-desc {
  margin: 0 0 48px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-text-muted);
}

/* Featured Work */
.featured-work {
  margin-bottom: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.work-card {
  display: block;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s;
  color: inherit;
  text-decoration: none;
}

.work-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.work-card-img {
  background: var(--color-bg-card);
  aspect-ratio: 4/3;
  overflow: hidden;
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.work-card:hover .work-card-img img {
  transform: scale(1.06);
}

.work-card-body {
  padding: 32px;
}

.work-card-body .work-category {
  display: block;
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.work-card-body h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text);
}

.work-card-body p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  padding: 4px 12px;
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 20px;
  border-radius: var(--radius-pill);
}

.work-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.work-card-wide .work-card-img {
  aspect-ratio: auto;
  min-height: 280px;
}

.work-card-wide .work-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-card-wide .work-card-body h3 {
  font-size: 30px;
}

/* Mobile: nav không dính logo, hero heading xuống dòng */
@media (max-width: 768px) {
  .header-inner {
    padding: 14px 16px;
    gap: 20px;
  }
  .logo {
    margin-right: 8px;
  }
  .nav {
    gap: 20px;
  }
  .hero h1 span {
    white-space: normal;
  }
  .hero-inner,
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-card-wide {
    grid-template-columns: 1fr;
  }
}

/* Experience — exact card style from reference */
.section.experience {
  position: relative;
  padding: var(--section-padding-y) 0;
}

.experience-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.exp-card {
  width: calc(50% - 12px);
  min-width: 280px;
  flex: 0 1 calc(50% - 12px);
  background: #f9fafb;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.exp-header {
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.exp-date {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
  margin-bottom: 4px;
}

.exp-header h3 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #1f2937;
}

.exp-role {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 400;
  color: #1f2937;
}

.exp-type {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
}

.exp-desc {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
}

.exp-scope {
  margin-bottom: 20px;
}

.exp-projects {
  margin-bottom: 0;
}

.scope-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

.exp-scope .scope-label,
.exp-projects .scope-label {
  margin-top: 4px;
}

.exp-projects .scope-label {
  margin-top: 0;
}

.scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scope-tags span {
  padding: 6px 14px;
  background: #e5e7eb;
  color: #374151;
  font-size: 14px;
  font-weight: 400;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
}

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

.exp-projects li {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
  color: #1f2937;
}

.exp-projects li strong {
  font-weight: 700;
  color: #1f2937;
}

.exp-projects li em {
  font-weight: 400;
  font-style: italic;
  color: #6b7280;
}

@media (max-width: 700px) {
  .exp-card {
    width: 100%;
    flex: 0 1 100%;
  }
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.skills {
  margin-top: 32px;
}

.skills h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  padding: 8px 16px;
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  font-size: 16px;
  border-radius: var(--radius-sm);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.stat-num {
  display: block;
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 16px;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: white;
}

.footer-cta {
  padding: 80px 24px;
  text-align: center;
  max-width: 672px;
  margin: 0 auto;
}

.footer-cta h2 {
  margin: 0 0 24px;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: white;
}

.footer-cta > p {
  margin: 0 0 40px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-text-inverse);
}

.footer-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: white;
  color: var(--color-text);
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: opacity 0.2s;
}

.email-btn:hover {
  opacity: 0.9;
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid white;
  color: white;
  background: transparent;
  transition: opacity 0.2s, background 0.2s;
}

.cv-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.email-icon {
  width: 20px;
  height: 20px;
}

.social {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #000;
  border-radius: 50%;
  transition: background 0.2s, opacity 0.2s;
}

.social-link:hover {
  opacity: 0.85;
}

.social-link img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.footer-bottom {
  border-top: 1px solid var(--color-dark-border);
  padding: 33px 24px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 16px;
  color: var(--color-text-inverse);
}

/* ========== Project detail page (EPOS etc.) ========== */
.back-to-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.back-to-home:hover {
  color: var(--color-text);
}
.back-arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: currentColor;
  mask: url('Home/images/arrow.svg') no-repeat center;
  mask-size: contain;
  -webkit-mask: url('Home/images/arrow.svg') no-repeat center;
  -webkit-mask-size: contain;
  transform: rotate(180deg);
}

.project-main {
  padding: 0 0 120px;
}
.project-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.project-intro {
  position: relative;
  padding: var(--section-padding-y) 0;
  margin-bottom: 0;
}
.project-intro .badge {
  display: inline-block;
  margin-bottom: 24px;
}
.project-title {
  margin: 0 0 24px;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-text);
}
.project-subtitle {
  margin: 0 0 48px;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.35;
  color: var(--color-text-muted);
}
.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.project-meta-label {
  display: block;
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 4px;
}
.project-meta-value {
  font-size: 16px;
  color: var(--color-text);
}
.project-hero-img {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.project-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-section {
  padding: var(--section-padding-y) 0;
  margin-bottom: 0;
}
.project-section h2 {
  margin: 0 0 48px;
  font-size: 30px;
  font-weight: 500;
  color: var(--color-text);
}
.project-lead {
  margin: 0 0 48px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 896px;
}
/* Project pages: text same width as container (intro + hero image), matching Home content area width */
.project-container .project-section h2,
.project-container .project-lead,
.project-container .project-block p,
.project-container .project-block-content p,
.project-container .project-block-content ul,
.project-container .project-block-content ol {
  max-width: none;
}
/* Khi có hai đoạn lead liền nhau: chỉ cách nhau 1 dòng, đoạn cuối mới có spacing xuống section dưới */
.project-section .project-lead:has(+ .project-lead) {
  margin-bottom: 1em;
}
.project-section .project-lead + .project-lead {
  margin-top: 0;
}
.project-block {
  margin-bottom: 48px;
}
.project-block h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
}
.project-block p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 896px;
}
.project-block-content p {
  margin-bottom: 16px;
}
.project-block-content p:last-child {
  margin-bottom: 0;
}
.project-block-content ul,
.project-block-content ol {
  margin: 8px 0 20px;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 896px;
}
.project-block-content ul { list-style-type: disc; }
.project-block-content ol.approach-list {
  list-style-type: decimal;
  margin-bottom: 0;
}
.project-block-content ol.approach-list li {
  margin-bottom: 16px;
}
.project-block-content ol.approach-list li:last-child {
  margin-bottom: 0;
}
.project-block-content ol.approach-list li ul {
  margin: 8px 0 12px;
  padding-left: 20px;
}

/* Case study — The Problem: stacked pastel cards */
.problem-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.problem-point {
  background: #f4f4f5;
  border-radius: 8px;
  padding: 24px 28px;
  border: 1px solid #e6e6e8;
}

.problem-point h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  font-family: "Rubik", "Inter", var(--font), sans-serif;
}

.problem-point p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-muted);
  font-family: "Merriweather", Georgia, serif;
  max-width: none;
}

/* Case study — Outcome cards */
.outcome-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.outcome-points li {
  margin: 0;
  background: #f4f4f5;
  border-radius: 8px;
  padding: 24px 28px;
  border: 1px solid #e6e6e8;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  display: block;
}

.outcome-intro {
  margin: 0 0 20px;
}

.outcome-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.outcome-column-card {
  background: #ffffff;
  border: 1px solid #e6e6e8;
  border-radius: 8px;
  padding: 24px 28px;
}

.outcome-column-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
}

.outcome-column-card .outcome-points {
  margin: 0;
  gap: 8px;
  list-style: disc;
  padding-left: 24px;
}

.outcome-column-card .outcome-points li {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  display: list-item;
}

.outcome-impact-text {
  margin: 0;
}

@media (max-width: 900px) {
  .outcome-columns {
    grid-template-columns: 1fr;
  }
}

/* Overview tabs (Problem / My Approach) */
.overview-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
}
.overview-tab {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.overview-tab:hover {
  color: var(--color-text);
}
.overview-tab.active {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}
.overview-panels {
  position: relative;
}
.overview-panel {
  display: none;
}
.overview-panel.active {
  display: block;
}
.overview-panel-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.overview-panel-content {
  margin-bottom: 0;
  min-width: 0;
}
.overview-panel-img {
  min-width: 0;
}
.overview-panel-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}
@media (max-width: 900px) {
  .overview-panel-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .overview-panel-img {
    max-width: 100%;
    order: -1;
  }
}

.project-day-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.project-day-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.project-day-img {
  background: var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.project-day-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-solution-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.case-solution-img {
  background: var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 280px;
}

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

.project-section-alt {
  margin-left: -24px;
  margin-right: -24px;
  padding: var(--section-padding-y) 24px;
}
/* Even sections only: grey strip; odd sections use the white ::before from .project-container > *:nth-child(odd)::before */
.project-container > *.project-section-alt:nth-child(even) {
  background: var(--color-bg);
}

.showcase-block {
  margin-bottom: 80px;
}
.showcase-block:last-child {
  margin-bottom: 0;
}
.showcase-block h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text);
}
.showcase-desc {
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--color-text-muted);
}
.showcase-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.showcase-grid img {
  background: var(--color-border-light);
  border-radius: var(--radius-sm);
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  cursor: pointer;
}
.showcase-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.upsell-card-img {
  cursor: pointer;
}

.outcomes-intro {
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.outcome-card {
  background: var(--color-bg);
  padding: 32px;
  border-radius: var(--radius-md);
}
.outcome-value {
  display: block;
  font-size: 36px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 12px;
}
.outcome-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.learnings-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.learnings-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.learnings-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark);
  color: white;
  font-size: 16px;
  border-radius: var(--radius-pill);
}

/* Kiosk page: upsell feature cards + dark impact block */
.upsell-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.upsell-card {
  background: var(--color-bg);
  padding: 24px;
  border-radius: var(--radius-md);
}
.upsell-card-img {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 9/16; /* 1080x1920 portrait – no crop */
  margin-bottom: 16px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.upsell-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}
.upsell-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
}
.upsell-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.impact-dark {
  background: linear-gradient(170deg, #101828 0%, #1e2939 100%);
  padding: 32px;
  border-radius: var(--radius-md);
}
.impact-dark h3 {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 500;
  color: white;
}
.impact-dark-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.impact-dark-value {
  display: block;
  font-size: 36px;
  font-weight: 500;
  color: white;
  margin-bottom: 8px;
}
.impact-dark-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #d1d5dc;
}

@media (max-width: 900px) {
  .project-meta { grid-template-columns: repeat(2, 1fr); }
  .project-day-grid { grid-template-columns: 1fr; }
  .case-solution-layout { grid-template-columns: 1fr; }
  .case-solution-img { min-height: 220px; }
  .showcase-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .outcomes-grid { grid-template-columns: 1fr; }
  .upsell-grid { grid-template-columns: 1fr; }
  .impact-dark-grid { grid-template-columns: 1fr; }
}

/* ========== Lightbox (Design Showcase / gallery) ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 48px 80px;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}
.lightbox.is-open {
  display: flex;
}
.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  user-select: none;
  -webkit-user-select: none;
}
.lightbox-inner img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  pointer-events: none;
}
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: white;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  opacity: 0.9;
}
.lightbox-close:hover {
  opacity: 1;
}
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  background: transparent;
  color: white;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.lightbox-prev:hover:not(.disabled),
.lightbox-next:hover:not(.disabled) {
  opacity: 1;
}
.lightbox-prev.disabled,
.lightbox-next.disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}
.lightbox-prev {
  left: 24px;
}
.lightbox-next {
  right: 24px;
}
.lightbox-prev svg,
.lightbox-next svg {
  width: 32px;
  height: 32px;
}
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: transform 0.5s ease, opacity 0.5s ease;
  will-change: transform, opacity;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ========== Square-inspired visual system ========== */
:root {
  --steph-link-highlight: #eaf6ff;
}

@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&family=Rubik:wght@300;500;700&display=swap");

:root {
  --color-text: #111111;
  --color-text-muted: #2f2f2f;
  --color-text-light: #666666;
  --color-text-inverse: #c9c9c9;
  /* Stripe behind alternating sections (odd = white via ::before, even = this) */
  --color-bg: #f5f5f7;
  --color-bg-card: #ffffff;
  --color-border: #ececec;
  --color-border-light: #f2f2f2;
  --color-dark: #111111;
  --color-dark-border: #2a2a2a;
  --color-dark-border-2: #3a3a3a;
  --radius-sm: 8px;
  --radius-md: 10px;
  --shadow-card: none;
  --font: "Merriweather", Georgia, serif;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
}

.header {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.header-inner {
  max-width: 1080px;
}

.logo {
  font-family: "Rubik", var(--font), sans-serif;
  font-weight: 500;
  color: #111111;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav a {
  color: rgba(17, 17, 17, 0.72);
  font-family: "Rubik", var(--font), sans-serif;
  font-weight: 300;
}

.nav a:hover {
  color: #111111;
}

.back-to-home {
  color: rgba(17, 17, 17, 0.72);
}

.back-to-home:hover {
  color: #111111;
}

.container,
.project-container {
  max-width: 1080px;
}

.hero {
  background: transparent;
  border-radius: 0;
  padding: 54px 0;
}

.hero h1 {
  font-family: "Rubik", var(--font), sans-serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.hero-heading-compact {
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.1;
}

.hero-desc {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 300;
  max-width: 860px;
  color: #232323;
}

.badge {
  background: #ffffff;
  border: 1px solid #ececec;
  color: #444444;
  font-family: "Rubik", var(--font), sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}

.btn {
  border-radius: 8px;
  font-weight: 500;
  font-family: "Rubik", var(--font), sans-serif;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: #111111;
  color: #ffffff;
}

.btn-primary:hover {
  background: #222222;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid #d6d6d6;
  color: #111111;
}

.section {
  padding: 72px 0;
}

.section h2 {
  font-family: "Rubik", var(--font), sans-serif;
  font-size: clamp(34px, 4.8vw, 54px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 22px;
  line-height: 1.45;
  color: #3f3f3f;
  max-width: 900px;
}

.work-grid {
  gap: 24px;
}

.work-card,
.exp-card,
.stat-card,
.outcome-card,
.upsell-card {
  border: 1px solid #f1f1f1;
  box-shadow: none;
  border-radius: 8px;
}

.work-card:hover,
.exp-card:hover,
.stat-card:hover,
.upsell-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.work-card-body h3,
.exp-header h3,
.project-section h2,
.showcase-block h3 {
  font-family: "Rubik", var(--font), sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tags span,
.skill-tags span,
.scope-tags span {
  background: #ffffff;
  border: 1px solid #ededed;
  color: #404040;
  border-radius: 999px;
}

.stat-num {
  font-family: "Rubik", var(--font), sans-serif;
  font-weight: 500;
}

a {
  color: #111111;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

a:visited {
  color: #111111;
}

a:hover {
  color: inherit;
  background-color: transparent;
}

p a,
li a {
  background-color: var(--steph-link-highlight);
  padding: 0 2px;
}

p a:hover,
li a:hover {
  background-color: transparent;
}

.footer {
  background: #111111;
}

.footer-cta h2 {
  font-family: "Rubik", var(--font), sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.email-btn {
  border: 1px solid #e9e9e9;
}

.email-btn:hover {
  color: var(--color-text);
  background: #ffffff;
  opacity: 0.92;
}

.cv-btn:hover {
  color: #ffffff;
}

.social-link {
  background: #1d1d1d;
}

@media (max-width: 900px) {
  .hero {
    padding: 34px 0;
    border-radius: 0;
  }

  .hero-desc {
    font-size: 22px;
  }

  .section {
    padding: 56px 0;
  }
}

/* Case Study 2 */
.cs2-gallery {
  display: grid;
  gap: 20px;
}

.cs2-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cs2-row-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cs2-phone,
.cs2-ui-block {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #f8f8f8 0 34%, transparent 34%),
    repeating-linear-gradient(
      180deg,
      #ffffff 0,
      #ffffff 14px,
      #f3f3f3 14px,
      #f3f3f3 20px
    );
}

.cs2-phone {
  aspect-ratio: 9 / 18;
}

.cs2-ui-block {
  aspect-ratio: 4 / 3;
}

@media (max-width: 900px) {
  .cs2-row,
  .cs2-row-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
