@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap');

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

:root {
  --text: #141414;
  --bg: #f5f5f5;
  --border: #dcdcdc;
  --white: #fafafa;
  --content-width: 1080px;
  --header-height: 80px;
  --transition: 0.2s ease;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Neue Montreal', 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--text); }
a { text-decoration: none; color: inherit; }
img { display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* DOT GRID HELPER — apply to any section that needs it */
.dot-bg {
  background-color: var(--bg);
  background-image: url('dot-grid.svg');
  background-repeat: repeat;
  background-size: 1200px 600px;
}

/* CONTENT WRAPPER — 1080px centered with side borders */
.content-box {
  max-width: var(--content-width);
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { width: 40px; height: 40px; object-fit: contain; }

.site-nav { display: flex; align-items: center; gap: 0; }

.nav-item {
  position: relative;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  padding: 0 24px;
  height: 40px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  overflow: hidden;
}

/* underline grows from center */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--text);
  transition: width var(--transition);
}
.nav-item:hover::after, .nav-item.active::after { width: calc(100% - 48px); }

/* ===== SHARED SECTION LABEL ===== */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

/* The small L-shaped corner mark */
.section-label-mark {
  position: relative;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.section-label-mark::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--text);
}
.section-label-mark::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 4px; height: 4px;
  background: var(--text);
}

.section-label-text {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  z-index: -1;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('dot-grid.svg');
  background-repeat: repeat;
  background-size: 1200px 600px;
  opacity: 0.8;
}

.hero h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.0;
  color: var(--text);
}

.hero-text { display: flex; flex-direction: column; gap: 8px; }

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.03em;
  line-height: 2;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  letter-spacing: 0.03em;
  line-height: 2;
}

.hero-buttons {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* Primary button: black bg, white text, square */
.btn-primary {
  background: var(--text);
  color: var(--white);
  height: 40px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  border-radius: 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary img { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }

/* Secondary button: white bg, black border, black text, square */
.btn-secondary {
  background: var(--white);
  color: var(--text);
  height: 40px;
  padding: 0 16px 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  border-radius: 0;
  border: 1px solid var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-secondary:hover { background: #f0f0f0; }
.btn-secondary img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }

/* Down / Up scroll button — square, white bg, border */
.scroll-btn {
  position: absolute;
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  overflow: hidden;
}
.scroll-btn:hover { background: #ececec; transform: translateY(-2px); }
.scroll-btn img { width: 24px; height: 24px; object-fit: contain; }

.hero .scroll-btn { bottom: 32px; left: 50%; transform: translateX(-50%); }
.hero .scroll-btn:hover { transform: translateX(-50%) translateY(-3px); }

/* ===== MY WORK ===== */
.work-section {
  background: var(--bg);
}

.work-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.work-inner h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  max-width: 712px;
}

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

/* Project card */
.project-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

/* Card image area */
.card-img-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card 1 (Autonomous Reflections) — green bg */
.card-img-green {
  background-color: #42653c;
  height: 342px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-green img {
  width: 448px;
  height: 323px;
  max-width: 100%;
  object-fit: contain;
}

/* Card 2 (Cloud Onboarding) — blue/purple bg */
.card-img-purple {
  background-color: #757db8;
  height: 342px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.card-img-purple img {
  width: 422px;
  height: 264px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 67px rgba(150,150,150,0.1);
}

.card-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-body h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.card-body p {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(20,20,20,0.8);
  line-height: 1.5;
}

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

.card-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(20,20,20,0.7);
}
.card-tag::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--text);
  flex-shrink: 0;
}

/* View Project button on card */
.card-btn {
  background: var(--text);
  color: var(--white);
  height: 40px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  border-radius: 0;
  align-self: flex-start;
  transition: opacity var(--transition);
}
.card-btn img { width: 16px; height: 16px; object-fit: contain; }
.project-card:hover .card-btn { opacity: 0.85; }

/* ===== EXPERIENCE ===== */
.exp-section {
  background: var(--bg);
}

.exp-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  border: 1px solid var(--border);
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.exp-inner h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}

.exp-list { display: flex; flex-direction: column; }

.exp-row {
  display: flex;
  gap: 80px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  min-height: 132px;
  align-items: flex-start;
}

.exp-date {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(20,20,20,0.6);
  width: 150px;
  flex-shrink: 0;
  padding-top: 2px;
}

.exp-role-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 200px;
  flex-shrink: 0;
}

.exp-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

.exp-company {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
}
.exp-promo {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary, #888);
  margin-top: 2px;
}

.exp-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(20,20,20,0.8);
  line-height: 1.5;
  flex: 1;
}

/* Data Analyst Callout */
.analyst-box {
  position: relative;
  overflow: hidden;
  min-height: 199px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 210px;
}

.analyst-box-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://www.figma.com/api/mcp/asset/82c4e679-4862-4dd7-8bf2-2ce0026e2c74');
  background-size: cover;
  background-position: center;
}

.analyst-box-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.analyst-box-content h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  white-space: pre-line;
}

.analyst-box-content p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text);
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg);
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  position: relative;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-heading-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* Social icons row — slightly rotated like paper collage */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 16px;
}

.social-btn {
  width: 48px;
  height: 48px;
  background: var(--white);
  border: 1px solid var(--text);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition);
}
.social-btn:nth-child(1) { transform: rotate(-12.27deg); }
.social-btn:nth-child(2) { transform: rotate(10.52deg); }
.social-btn:nth-child(3) { transform: rotate(-11.02deg); }
.social-btn:hover { background: #f0f0f0; transform: rotate(0) scale(1.05) !important; }
.social-btn img { width: 24px; height: 24px; object-fit: contain; }

.footer-cta-row { display: flex; }

/* Get in Touch footer button */
.footer-cta {
  background: var(--white);
  color: var(--text);
  height: 40px;
  padding: 0 16px 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  border-radius: 0;
  border: 1px solid var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition);
}
.footer-cta:hover { background: #f0f0f0; }
.footer-cta img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 33px;
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #99a1af;
  letter-spacing: -0.01em;
}

/* Footer scroll-up button */
.scroll-up-btn {
  position: absolute;
  right: 40px;
  bottom: 80px;
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.scroll-up-btn:hover { background: #ececec; transform: translateY(-2px); }
.scroll-up-btn img { width: 24px; height: 24px; object-fit: contain; transform: rotate(180deg); }

/* ===== CASE STUDY PAGES ===== */
.case-hero {
  background-color: var(--bg);
  min-height: 560px;
  display: flex;
  align-items: flex-end;
}

.case-hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
  padding: 80px 40px 60px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
}
.case-hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  pointer-events: none;
  z-index: 0;
}
.case-hero-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('dot-grid.svg');
  background-repeat: repeat;
  background-size: 1200px 600px;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}
.case-hero-inner > * {
  position: relative;
  z-index: 1;
}

.case-meta-label {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(20,20,20,0.5);
  margin-bottom: 24px;
}

.case-hero-title {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 16px;
}

.case-hero-subtitle {
  font-family: var(--font-body);
  font-size: 24px;
  color: rgba(20,20,20,0.7);
  margin-bottom: 32px;
  line-height: 1.5;
}

.case-hero-body {
  border-top: 1px solid rgba(20,20,20,0.1);
  padding-top: 32px;
  margin-bottom: 32px;
}

.case-hero-body p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: rgba(20,20,20,0.75);
}

.case-meta-row {
  border-top: 1px solid rgba(20,20,20,0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.case-meta-details {
  display: flex;
  gap: 0;
  width: 100%;
}

.case-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.case-meta-role {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.case-meta-key {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(20,20,20,0.5);
  font-weight: 500;
}

.case-meta-val {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

/* Case layout: sidebar + content */
.case-layout {
  max-width: var(--content-width);
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  padding: 100px 60px 120px 40px;
  gap: 0;
  position: relative;
}

.case-toc {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + 40px);
  align-self: flex-start;
  padding: 120px 24px 0;
}

.toc-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(20,20,20,0.5);
  font-weight: 500;
  margin-bottom: 20px;
}

.toc-nav { display: flex; flex-direction: column; gap: 2px; }

.toc-item {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(20,20,20,0.5);
  padding: 10px 16px;
  border-left: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  cursor: pointer;
}
.toc-item:hover { color: var(--text); }
.toc-item.active { color: var(--text); border-left-color: var(--text); }

.case-content { flex: 1; min-width: 0; }

.case-section { margin-bottom: 128px; scroll-margin-top: calc(var(--header-height) + 24px); }
.case-section:last-child { margin-bottom: 0; }

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  color: rgba(20,20,20,0.5);
  margin-bottom: 8px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 32px;
}

.section-body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: rgba(20,20,20,0.75);
  margin-bottom: 28px;
}
.section-body p { margin-bottom: 16px; }
.section-body p:last-child { margin-bottom: 0; }
.section-body ul { padding-left: 24px; margin: 12px 0; }
.section-body li { margin-bottom: 6px; }

.sub-heading {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 80px;
}

.case-image-block { margin: 32px 0; }
.case-image-block img { width: 100%; display: block; border-radius: 0; }
.shadow-img img { filter: drop-shadow(0 8px 32px rgba(0,0,0,0.12)); }
.rounded-img { border-radius: 8px; }
.rounded-img img { border-radius: 8px; }
.img-caption { font-family: var(--font-body); font-size: 14px; color: rgba(20,20,20,0.6); text-align: center; margin-top: 40px; }

.result-callouts { display: flex; flex-direction: column; gap: 24px; margin: 28px 0; }
.result-callout { border-left: 4px solid rgba(20,20,20,0.3); padding: 4px 20px; }
.result-callout h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.result-callout p { font-family: var(--font-body); font-size: 17px; color: rgba(20,20,20,0.75); line-height: 1.7; }

.blockquote-box { background: rgba(20,20,20,0.02); border-left: 3px solid var(--text); padding: 48px 43px; margin: 28px 0; }
.blockquote-box p { font-family: var(--font-heading); font-size: 21px; font-weight: 700; line-height: 1.5; color: var(--text); }

.takeaway-box { background: rgba(20,20,20,0.02); border-left: 3px solid var(--text); padding: 48px 40px; margin: 32px 0; display: flex; flex-direction: column; gap: 24px; }
.takeaway-box h4 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.takeaway-box p { font-family: var(--font-body); font-size: 16px; color: rgba(20,20,20,0.75); line-height: 1.7; }

.two-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 24px 0; }
.mode-card h4 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.mode-card p { font-family: var(--font-body); font-size: 17px; color: rgba(20,20,20,0.75); line-height: 1.7; }

.comparison-table { margin: 32px 0; overflow-x: auto; }
.comparison-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.comparison-table thead th { border-bottom: 1px solid rgba(20,20,20,0.1); padding: 12px 16px; text-align: center; font-family: var(--font-body); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; }
.comparison-table thead th:first-child { text-align: left; }
.comparison-table thead th.dim { color: rgba(20,20,20,0.5); }
.comparison-table tbody tr:nth-child(odd) { background: rgba(20,20,20,0.02); }
.comparison-table tbody td { border-bottom: 1px solid rgba(20,20,20,0.06); padding: 14px 16px; vertical-align: middle; font-family: var(--font-body); color: rgba(20,20,20,0.75); font-size: 15px; }
.comparison-table tbody td:not(:first-child) { text-align: center; }
.table-icon { width: 22px; height: 22px; display: inline-block; object-fit: contain; }
.dim-icon { opacity: 0.4; }
.x-icon { transform: rotate(-45deg); opacity: 0.5; }

/* ===== ABOUT PAGE ===== */
.about-hero {
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.about-hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
}
.about-hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('dot-grid.svg');
  background-repeat: repeat;
  background-size: 1200px 600px;
  pointer-events: none;
}
.about-hero-photo { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; z-index: 1; }
.about-hero-photo img { width: 355px; height: 473px; object-fit: cover; border-radius: 8px; }
.about-hero-text { flex: 1; display: flex; flex-direction: column; gap: 40px; position: relative; z-index: 1; }
.about-hero-text h1 { font-size: 40px; font-weight: 700; color: var(--text); }
.about-hero-text p { font-family: var(--font-body); font-size: 18px; color: var(--text); line-height: 1.7; }

.about-content {
  max-width: var(--content-width);
  margin: 0 auto;
  border: 1px solid var(--border);
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.about-row {
  display: flex;
  gap: 40px;
  align-items: center;
}
.about-row.reverse { flex-direction: row-reverse; }
.about-row-text { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.about-row-text h2 { font-size: 32px; font-weight: 700; color: var(--text); text-align: center; }
.about-row-text p { font-family: var(--font-body); font-size: 17px; color: var(--text); line-height: 1.7; }
.about-row-image { flex: 1; display: flex; justify-content: center; }
.about-row-image img { border-radius: 8px; object-fit: cover; max-height: 350px; }

/* ===== ANALYST NOTEBOOKS ILLUSTRATION ===== */
img.analyst-notebooks {
  position: absolute;
  left: 46px;
  top: 32px;
  width: 142px;
  height: 140px;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  display: block;
}

/* ===== NEXT PROJECT ===== */
.next-project-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.next-project-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.next-project-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(20,20,20,0.5);
}
.next-project-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: opacity var(--transition);
}
.next-project-link:hover { opacity: 0.7; }
.next-project-link h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.next-project-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ===== ILLUSTRATIONS PAGE ===== */

.illus-hero {
  border-bottom: 1px solid var(--border);
}
.illus-hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 80px 80px 64px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.illus-hero-inner h1 {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 16px;
}
.illus-hero-inner p {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(20,20,20,0.55);
  margin: 0;
  max-width: 520px;
  line-height: 1.6;
}

/* ===== BENTO GALLERY ===== */
.bento-section {
  background: #141414;
  border-top: 1px solid #252525;
  border-bottom: 1px solid #252525;
  padding: 64px 40px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1160px;
  margin: 0 auto;
}

.bento-item {
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.bento-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bento-item:hover img { transform: scale(1.04); }

/* Layout spans & heights */
.bento-item:nth-child(1) { height: 300px; }
.bento-item:nth-child(2) { height: 300px; }
.bento-item:nth-child(3) { height: 300px; }
.bento-item:nth-child(4) { grid-column: span 2; height: 260px; }
.bento-item:nth-child(5) { height: 260px; }
.bento-item:nth-child(6) { grid-column: span 2; height: 260px; }
.bento-item:nth-child(7) { height: 260px; }
.bento-item:nth-child(8) { height: 240px; }
.bento-item:nth-child(9) { grid-column: span 2; height: 240px; }

/* ===== HAMBURGER BUTTON (hidden on desktop) ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.lightbox.open .lightbox-img-wrap img { transform: scale(1); }
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 1001;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 1001;
  line-height: 1;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.22); }
.lb-arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  flex-shrink: 0;
}
.lb-arrow-left  { transform: rotate(-135deg) translate(-1px, 1px); }
.lb-arrow-right { transform: rotate(45deg)   translate(-1px, 1px); }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

  /* --- Header --- */
  .header-inner {
    padding: 0 20px;
    border-left: none;
    border-right: none;
  }
  .nav-hamburger { display: flex; }
  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 0 16px;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .site-nav.open { display: flex; }
  .nav-item {
    padding: 14px 24px;
    height: auto;
    font-size: 17px;
  }
  .nav-item::after { display: none; }

  /* --- Hero (index) --- */
  .hero { height: auto; min-height: unset; }
  .hero-inner {
    padding: 56px 20px 72px;
    gap: 20px;
    border-left: none;
    border-right: none;
  }
  .hero h1 { font-size: 38px; }
  .hero-subtitle { font-size: 16px; line-height: 1.7; }
  .hero-desc { font-size: 15px; }
  .hero-buttons { flex-wrap: wrap; gap: 12px; }
  .hero .scroll-btn { display: none; }

  /* --- Work section --- */
  .work-inner {
    padding: 48px 20px;
    gap: 36px;
    border-left: none;
    border-right: none;
  }
  .work-inner h2 { font-size: 24px; }
  .projects-grid { flex-direction: column; }
  .card-body { padding: 24px 20px; gap: 16px; }
  .card-body h3 { font-size: 20px; }
  .card-body p { font-size: 16px; }
  .card-img-green,
  .card-img-purple { height: 220px; }
  .card-img-green img  { width: auto; max-width: 100%; height: 180px; }
  .card-img-purple img { width: auto; max-width: 100%; height: 160px; }

  /* --- Experience --- */
  .exp-inner {
    padding: 48px 20px;
    gap: 36px;
    border-left: none;
    border-right: none;
  }
  .exp-inner h2 { font-size: 24px; }
  .exp-row {
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
    min-height: unset;
  }
  .exp-date { width: auto; font-size: 13px; padding-top: 0; }
  .exp-role-col { width: auto; }
  .exp-title { font-size: 16px; }
  .exp-company { font-size: 14px; }
  .exp-desc { font-size: 14px; }

  /* Analyst callout */
  .analyst-box { padding: 40px 20px; min-height: unset; }
  img.analyst-notebooks { display: none; }
  .analyst-box-content { padding: 0; max-width: 100%; }
  .analyst-box-content h3 { font-size: 22px; white-space: normal; }
  .analyst-box-content p { font-size: 15px; }

  /* --- Footer --- */
  .footer-inner {
    padding: 48px 20px 40px;
    gap: 40px;
    border-left: none;
    border-right: none;
  }
  .footer-heading-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-heading { font-size: 22px; white-space: normal; }
  .footer-socials { margin-left: 0; }
  .scroll-up-btn { right: 20px; bottom: 40px; }

  /* --- Section labels --- */
  .section-label-text { font-size: 14px; }

  /* --- Illustrations page --- */
  .illus-hero-inner {
    padding: 48px 20px 40px;
    border-left: none;
    border-right: none;
  }
  .illus-hero-inner h1 { font-size: 38px; }
  .illus-hero-inner p { font-size: 16px; }

  /* Bento mobile — 2 columns, no spans, equal height */
  .bento-section { padding: 40px 16px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .bento-item:nth-child(1),
  .bento-item:nth-child(2),
  .bento-item:nth-child(3),
  .bento-item:nth-child(4),
  .bento-item:nth-child(5),
  .bento-item:nth-child(6),
  .bento-item:nth-child(7),
  .bento-item:nth-child(8),
  .bento-item:nth-child(9) { grid-column: span 1; height: 160px; border-radius: 10px; }
  /* Wide/panoramic images look better spanning full width on mobile */
  .bento-item:nth-child(5),
  .bento-item:nth-child(6) { grid-column: span 2; height: 140px; }

  /* --- About page --- */
  .about-hero { height: auto; }
  .about-hero-inner {
    flex-direction: column;
    padding: 48px 20px 40px;
    gap: 28px;
    border-left: none;
    border-right: none;
  }
  .about-hero-photo img { width: 180px; height: 240px; }
  .about-hero-text h1 { font-size: 28px; }
  .about-hero-text p { font-size: 16px; }
  .about-hero-text { gap: 16px; }
  .about-content {
    padding: 40px 20px;
    gap: 40px;
    border-left: none;
    border-right: none;
  }
  .about-row { flex-direction: column; gap: 20px; }
  .about-row.reverse { flex-direction: column; }
  .about-row-text h2 { font-size: 22px; text-align: left; }
  .about-row-text p { font-size: 15px; }
  .about-row-image img {
    max-height: 240px;
    width: auto !important;
    height: auto !important;
  }

  /* --- Case study hero --- */
  .case-hero { min-height: unset; }
  .case-hero-inner {
    padding: 48px 20px 40px;
    border-left: none;
    border-right: none;
  }
  .case-hero-title { font-size: 36px; }
  .case-hero-subtitle { font-size: 18px; }
  .case-meta-details { flex-wrap: wrap; gap: 20px; }
  .case-meta-item { flex: none; width: 45%; }

  /* --- Case study layout: hide sidebar TOC, full-width content --- */
  .case-layout {
    flex-direction: column;
    padding: 40px 20px 60px;
    border-left: none;
    border-right: none;
  }
  .case-toc { display: none; }
  .section-heading { font-size: 26px; }
  .section-body { font-size: 15px; }
  .sub-heading { font-size: 20px; margin-top: 48px; }
  .two-modes { grid-template-columns: 1fr; gap: 24px; }
  .blockquote-box { padding: 28px 20px; }
  .blockquote-box p { font-size: 17px; }
  .takeaway-box { padding: 28px 20px; }

  /* --- Next project bar --- */
  .next-project-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 40px 20px;
    border-left: none;
    border-right: none;
  }
  .next-project-link h3 { font-size: 20px; }
}

/* ===== PASSWORD GATE ===== */
.pw-gate {
  padding: 80px 40px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.pw-gate-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--white);
}
.pw-gate-icon svg { width: 22px; height: 22px; }

.pw-gate h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  max-width: 360px;
}

.pw-gate p {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(20,20,20,0.5);
}

.pw-form {
  display: flex;
  align-items: stretch;
  margin-top: 8px;
}

.pw-input {
  height: 40px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--text);
  border-right: none;
  background: var(--white);
  color: var(--text);
  outline: none;
  width: 220px;
  border-radius: 0;
}
.pw-input:focus { border-color: var(--text); }

.pw-submit {
  height: 40px;
  padding: 0 20px;
  background: var(--text);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  border-radius: 0;
  white-space: nowrap;
}
.pw-submit:hover { opacity: 0.8; }

.pw-error {
  font-family: var(--font-body);
  font-size: 13px;
  color: #c0392b;
  display: none;
}
.pw-error.visible { display: block; }

/* Locked content — hidden until unlocked */
.locked-content { display: none; }
.locked-content.unlocked { display: block; }

@media (max-width: 768px) {
  .pw-gate { padding: 60px 20px 80px; }
  .pw-input { width: 160px; }
}
