/* ============================================================
   WORK SECTION — PHYSICAL FOLDER FAN-OUT & DOTTED CANVAS
   ============================================================ */

/* ── Work Section Main Container (100vh Viewport) ────────── */
.work-section {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  background-color: #f7f7f5;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Dotted Canvas Background (Fills 100vh) ───────────────── */
.work-dotted-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Work Content Inner Wrap ─────────────────────────────── */
.work-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
  padding-top: 32px;
  padding-bottom: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Work Section Header ─────────────────────────────────── */
.work-header {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 68px;
}

.work-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888888;
}

.work-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #161515;
  line-height: 1.1;
}

/* ── Category Navigation Tabs (z-index: 10) ───────────────── */
.work-category-nav {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.04);
  padding: 5px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 4px;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #666666;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

.cat-tab:hover {
  color: #161515;
  background: rgba(255, 255, 255, 0.6);
}

.cat-tab.active {
  background: #161515;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 21, 21, 0.18);
}

.cat-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.cat-tab.active .cat-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* ── Centered Folder Project Grid (z-index: 20, overflow: visible) ── */
.work-grid {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  width: 100%;
  max-width: 1100px;
  overflow: visible;
}

/* Hidden state for category filtering */
.project-folder.hidden {
  display: none !important;
}

/* ── PHYSICAL PROJECT FOLDER OBJECT (z-index: 20 base, 100 active) ─ */
.project-folder {
  width: 330px;
  max-width: 360px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  text-decoration: none;
  color: #161515;
  cursor: pointer;
  user-select: none;
  position: relative;
  z-index: 20;
  transition: z-index 0s linear;
}

/* Hover/Open state elevates z-index to 100 to pass over category selector */
.project-folder:hover,
.project-folder.open {
  z-index: 100;
}

/* Outer stack container for cursor parallax target */
.folder-stack-container {
  position: relative;
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease-out;
  will-change: transform;
  overflow: visible;
}

/* Individual Screenshot Layer Base */
.folder-layer {
  position: absolute;
  width: 280px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.45s cubic-bezier(0.34, 1.35, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  will-change: transform;
}

/* Background image card graphics */
.layer-screen-articul8-1 { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
.layer-screen-articul8-2 { background: linear-gradient(135deg, #334155 0%, #1e293b 100%); }
.layer-screen-articul8-3 { background: linear-gradient(135deg, #475569 0%, #0f172a 100%); }
.layer-screen-articul8-4 { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }
.layer-screen-articul8-main { background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%); }

.layer-screen-intel-1 { background: linear-gradient(135deg, #003c71 0%, #001e38 100%); }
.layer-screen-intel-2 { background: linear-gradient(135deg, #0068b5 0%, #003c71 100%); }
.layer-screen-intel-3 { background: linear-gradient(135deg, #0284c7 0%, #003c71 100%); }
.layer-screen-intel-4 { background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%); }
.layer-screen-intel-main { background: linear-gradient(135deg, #0068b5 0%, #0284c7 100%); }

.layer-screen-stripe-1 { background: linear-gradient(135deg, #4338ca 0%, #312e81 100%); }
.layer-screen-stripe-2 { background: linear-gradient(135deg, #635bff 0%, #4338ca 100%); }
.layer-screen-stripe-3 { background: linear-gradient(135deg, #818cf8 0%, #4338ca 100%); }
.layer-screen-stripe-4 { background: linear-gradient(135deg, #a5b4fc 0%, #635bff 100%); }
.layer-screen-stripe-main { background: linear-gradient(135deg, #635bff 0%, #312e81 100%); }

.layer-screen-healthcare-1 { background: linear-gradient(135deg, #042f2e 0%, #0d9488 100%); }
.layer-screen-healthcare-2 { background: linear-gradient(135deg, #0f766e 0%, #042f2e 100%); }
.layer-screen-healthcare-3 { background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%); }
.layer-screen-healthcare-4 { background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 100%); }
.layer-screen-healthcare-main { background: linear-gradient(135deg, #0d9488 0%, #042f2e 100%); }

.layer-screen-typography-1 { background: linear-gradient(135deg, #881337 0%, #f43f5e 100%); }
.layer-screen-typography-2 { background: linear-gradient(135deg, #be123c 0%, #881337 100%); }
.layer-screen-typography-3 { background: linear-gradient(135deg, #fb7185 0%, #be123c 100%); }
.layer-screen-typography-4 { background: linear-gradient(135deg, #fda4af 0%, #f43f5e 100%); }
.layer-screen-typography-main { background: linear-gradient(135deg, #f43f5e 0%, #881337 100%); }

.layer-screen-bobbounce-1 { background: linear-gradient(135deg, #78350f 0%, #f59e0b 100%); }
.layer-screen-bobbounce-2 { background: linear-gradient(135deg, #b45309 0%, #78350f 100%); }
.layer-screen-bobbounce-3 { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }
.layer-screen-bobbounce-4 { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); }
.layer-screen-bobbounce-main { background: linear-gradient(135deg, #f59e0b 0%, #78350f 100%); }

/* Screen Inner Content Layout */
.case-study-screen {
  width: 100%;
  height: 100%;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  position: relative;
}

.screen-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.screen-dots {
  display: flex;
  gap: 4px;
}

.s-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.screen-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.screen-body-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  margin: auto 0;
}

.screen-emoji {
  font-size: 26px;
}

.screen-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  opacity: 0.95;
}

.screen-mockup-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.s-line {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
}
.s-line.w-80 { width: 80%; }
.s-line.w-60 { width: 60%; }
.s-line.w-40 { width: 40%; }

/* ── DEFAULT CLOSED STACK TRANSFORMS (EXACT USER SPECIFICATION) ─ */
.folder-layer.layer-1 {
  transform: translate3d(0px, 0px, 0) rotate(0deg);
  z-index: 1;
}

.folder-layer.layer-2 {
  transform: translate3d(3px, -3px, 0) rotate(-1deg);
  z-index: 2;
}

.folder-layer.layer-3 {
  transform: translate3d(-3px, -4px, 0) rotate(1deg);
  z-index: 3;
}

.folder-layer.layer-4 {
  transform: translate3d(4px, -6px, 0) rotate(-2deg);
  z-index: 4;
}

.folder-layer.layer-main {
  transform: translate3d(-4px, -7px, 0) rotate(2deg);
  z-index: 5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

/* ── OPENED FAN-OUT UPWARD SPREAD TRANSFORMS (CROSSES SELECTOR) ─ */
.project-folder.open .folder-layer.layer-1,
.project-folder:hover .folder-layer.layer-1 {
  transform: translate3d(-35px, -35px, 0) rotate(-7deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.project-folder.open .folder-layer.layer-2,
.project-folder:hover .folder-layer.layer-2 {
  transform: translate3d(-18px, -65px, 0) rotate(-4deg);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2);
}

.project-folder.open .folder-layer.layer-3,
.project-folder:hover .folder-layer.layer-3 {
  transform: translate3d(15px, -75px, 0) rotate(3deg);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

.project-folder.open .folder-layer.layer-4,
.project-folder:hover .folder-layer.layer-4 {
  transform: translate3d(40px, -45px, 0) rotate(7deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.project-folder.open .folder-layer.layer-main,
.project-folder:hover .folder-layer.layer-main {
  transform: translate3d(0px, -5px, 0) rotate(0deg) scale(1.01);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.26);
  border-color: rgba(0, 0, 0, 0.18);
}

/* ── Project Metadata & Smooth Description Reveal ───────── */
.folder-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.folder-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #161515;
  letter-spacing: -0.015em;
  transition: color 0.2s ease;
}

.project-folder.open .folder-title,
.project-folder:hover .folder-title {
  color: #0151fe;
}

.folder-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #888888;
}

.folder-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #555555;
  line-height: 1.45;
  max-width: 290px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: max-height 0.4s ease, opacity 0.35s ease, transform 0.35s ease;
  margin-top: 2px;
}

.project-folder.open .folder-desc,
.project-folder:hover .folder-desc {
  max-height: 80px;
  opacity: 1;
  transform: translateY(0);
}

/* ── ABOUT SECTION (FULL-WIDTH HOMEPAGE SECTION) ──────────────── */
.about-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-light, #f7f7f5);
  color: #161515;
  display: flex;
  align-items: center;
  padding-block: 120px 100px;
  box-sizing: border-box;
}

.about-section-container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding-inline: 6vw;
  box-sizing: border-box;
}

.about-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888888;
  display: block;
  margin-bottom: 24px;
}

/* Editorial Two-Column Grid Layout */
.about-editorial-wrapper {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 72px;
  align-items: flex-start;
}

/* Left Column: Headline Statement, Stats & Actions */
.about-editorial-left {
  display: flex;
  flex-direction: column;
}

.about-statement-headline {
  font-family: 'DM Sans', sans-serif;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0 0 28px 0;
}

.about-statement-headline .st-muted {
  color: #888888;
  font-weight: 400;
}

.about-statement-headline .st-highlight {
  color: #161515;
  font-weight: 700;
}

.about-editorial-subtext {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #777777;
  letter-spacing: 0.01em;
  margin-bottom: 56px;
}

/* Action Links */
.about-action-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}

.about-action-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #161515;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
  width: fit-content;
}

.about-action-link .action-arrow {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.about-action-link:hover {
  color: #0151fe;
}

.about-action-link:hover .action-arrow {
  transform: translate(3px, -3px);
}

/* Right Column: Career Timeline Rows */
.about-editorial-right {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.career-timeline-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.career-row {
  display: grid;
  grid-template-columns: 40% 35% 25%;
  align-items: center;
  padding-block: 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.22s ease;
}

.career-row:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.career-row:hover {
  transform: translateY(-2px);
}

.career-company {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #161515;
  padding-right: 12px;
  transition: color 0.2s ease;
}

.career-row:hover .career-company {
  color: #0151fe;
}

.career-role {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #555555;
  padding-right: 12px;
}

.career-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #888888;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .about-statement-headline {
    font-size: 42px;
  }
  .about-editorial-wrapper {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 640px) {
  .about-section {
    padding-block: 80px 60px;
  }
  .about-statement-headline {
    font-size: 32px;
  }
  .career-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-block: 16px;
  }
  .career-date {
    text-align: left;
    margin-top: 2px;
  }
}

/* ── Responsive Behavior ─────────────────────────────────── */
@media (max-width: 800px) {
  .work-grid {
    flex-direction: column;
    gap: 36px;
  }

  .folder-layer {
    width: 260px;
    height: 160px;
  }
}

/* ── FOOTER / CONTACT SECTION (CLOSING SECTION) ─────────────── */
.footer-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #111111;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 100px 40px;
  box-sizing: border-box;
}

.footer-section-container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding-inline: 6vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

/* Top Heading Row */
.footer-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 60px;
}

.footer-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 130px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0;
}

.footer-heading .fh-muted {
  color: #666666;
  font-weight: 400;
}

.footer-heading .fh-bright {
  color: #ffffff;
  font-weight: 700;
}

/* Description & Contact Wrap */
.footer-content-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.footer-description {
  font-family: 'DM Sans', sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.35;
  color: #888888;
  letter-spacing: -0.01em;
  margin: 0 0 48px 0;
  max-width: 780px;
}

/* Three Equal-Width Contact Blocks */
.footer-contact-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin-bottom: 48px;
}

.contact-block {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 48px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 500;
  color: #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-block.block-1 {
  background-color: #1e1e1e;
}

.contact-block.block-2 {
  background-color: #272727;
}

.contact-block.block-3 {
  background-color: #323232;
}

.contact-block:hover {
  background-color: #404040;
  color: #ffffff;
}

/* Bottom Bar */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 0;
  position: relative;
}

.footer-copyright {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #666666;
  letter-spacing: 0.02em;
}

.footer-back-to-top {
  position: absolute;
  right: 40px;
  bottom: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
  z-index: 10;
}

.footer-back-to-top:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-icon-link {
  color: #8A8A8A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  transition: color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.social-svg-linkedin {
  width: 18px;
  height: 18px;
  display: block;
}

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

.social-icon-link:hover {
  color: #ffffff;
  transform: translateY(-3px);
}

/* Footer Responsive Breakpoints */
@media (max-width: 1024px) {
  .footer-heading {
    font-size: 88px;
  }
  .footer-description {
    font-size: 26px;
  }
  .contact-block {
    font-size: 22px;
    padding-block: 36px;
  }
}

@media (max-width: 768px) {
  .footer-section {
    padding-block: 70px 30px;
  }
  .footer-heading {
    font-size: 60px;
    margin-bottom: 40px;
  }
  .footer-description {
    font-size: 22px;
    margin-bottom: 32px;
  }
  .footer-contact-blocks {
    grid-template-columns: 1fr;
  }
  .contact-block {
    padding-block: 28px;
  }
}
