/* Define custom properties for overlay colors */
:root {
  --overlay-color-1: #FBC2EB;
  --overlay-color-2: #A6C1EE;
  --overlay-color-2-1: #A1D4FE;
  --overlay-color-2-2: #C2F0FC;
  --overlay-color-3-1: #FFEDD3;
  --overlay-color-3-2: #FCC2A0;
  --overlay-color-4-1: #E8D5FF;
  --overlay-color-4-2: #C5B3FF;
  --anim-duration: 2s;
}


/* Reset and basic styling styles remain the same */
* {
  margin: 0;
  padding: 0;
}

/* Navbar styles */
.navbar {
    background-color: rgba(255, 251, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    padding: 24px 60px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .navbar.scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  }

  .logo img {
    max-height: 40px;
  }

  .nav-links {
    list-style: none;
    display: flex;
    margin-left:auto
  }

  .nav-links li:last-child {
    margin-right: 0;
  }

  .nav-links a {
    text-decoration: none;
    color: #333333;
    font-family: Avenir;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 20px;
    padding-bottom: 2px;
    position: relative;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease-in-out;
  }


/* Hover effect */
.nav-links a:hover {
  border-bottom: 2px solid #000;
}


/* Initially hide the menu button */
.menu-toggle {
  display: none;
  cursor: pointer;
}

/* Media query to show the menu button on small screens */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
    border: none;
    background-color: transparent;
  }

  .nav-links {
    display: none;
    position: absolute;
    right: 20px;
    top: 100%;
    background-color: rgba(255, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    z-index: 100;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links .last-item {
    margin-right: 0;
  }
}

/* Logo styles */
.logo {
  display: block;
  width: 30px;
  height: 30px;
  background-color: #B9A1FD;
  transform-origin: center;
  animation: rotateColor 4s ease-in-out infinite;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
}



@keyframes rotateColor {
  0% {
    transform: rotate(0deg);
    background-color: #B9A1FD;
  }
  12.5% {
    transform: rotate(90deg);
    background-color: #A1C4FD;
  }
  25% {
    transform: rotate(90deg);
    background-color: #A1C4FD;
  }
  37.5% {
    transform: rotate(180deg);
    background-color: #FCB69F;
  }
  50% {
    transform: rotate(180deg);
    background-color: #FCB69F;
  }
  62.5% {
    transform: rotate(270deg);
    background-color: #A1C4FD;
  }
  75% {
    transform: rotate(270deg);
    background-color: #A1C4FD;
  }
  87.5% {
    transform: rotate(360deg);
    background-color: #B9A1FD;
  }
  100% {
    transform: rotate(360deg);
    background-color: #B9A1FD;
  }
}



/* ======================= */
/* Hero section            */
/* ======================= */
.hero-section {
  background-color: #FFFBF7;
  padding: 100px 80px 120px;
}

.hero-content {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 88px;
}

/* Photo with rotating pastel glow */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-photo-glow {
  position: absolute;
  top: -14px;
  left: -14px;
  right: -14px;
  bottom: -14px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #FBC2EB 0%,
    #A6C1EE 33%,
    #C2F0FC 66%,
    #FBC2EB 100%
  );
  opacity: 0.4;
  filter: blur(18px);
  animation: glowRotate 8s linear infinite;
  z-index: 0;
}

@keyframes glowRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Text */
.hero-text {
  max-width: 580px;
}

.hero-greeting {
  color: #333;
  font-family: Kaisei Tokumin;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-description {
  color: #555;
  font-family: Avenir;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 14px;
}

.hero-tagline {
  color: #333;
  font-family: Kaisei Tokumin;
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
}

/* Keyword highlights — underline marks using the pastel palette */
.highlight-art {
  background: linear-gradient(180deg, transparent 62%, #D1E7DD 62%);
  padding: 0 2px;
}
.highlight-music {
  background: linear-gradient(180deg, transparent 62%, #DDD6FE 62%);
  padding: 0 2px;
}
.highlight-history {
  background: linear-gradient(180deg, transparent 62%, #FFEDD3 62%);
  padding: 0 2px;
}

/* CTA — soft blue pulled from the ocean in the photo */
.hero-cta {
  display: inline-block;
  margin-top: 32px;
  padding: 13px 32px;
  border-radius: 100px;
  background: #A1C4FD;
  color: #1a1a1a;
  font-family: Avenir;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-cta:hover {
  background-color: #82B1F5;
  transform: translateY(-1px);
}

@media screen and (max-width: 768px) {
  .hero-section {
    padding: 80px 32px 100px;
  }
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .hero-photo {
    width: 200px;
    height: 200px;
  }
  .hero-greeting {
    font-size: 32px;
  }
  .hero-description {
    font-size: 17px;
  }
}


/* ======================= */
/* Selected Work section   */
/* ======================= */

.work-section {
  background-color: white;
  padding: 120px 60px 60px;
}

.work-section-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.section-label {
  font-family: Avenir;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #aaa;
  margin-bottom: 12px;
}

.section-title {
  font-size: 30px;
  margin-bottom: 60px;
  color: #000;
  font-family: Kaisei Tokumin;
  font-weight: 400;
  line-height: normal;
}

.work-cards {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* --- Card base --- */
.work-card {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 30px;
  padding: 96px 72px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.work-card:hover {
  transform: scale(1.012);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.work-card:hover::after {
  animation: gradientFlow var(--anim-duration) ease-in-out infinite alternate;
  opacity: 1;
}

@keyframes gradientFlow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* Card color variants */
.card-1 {
  background: linear-gradient(45deg, var(--overlay-color-1) 0%, var(--overlay-color-2) 100%);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.4s ease-in-out;
}
.card-1::after {
  background: linear-gradient(225deg, var(--overlay-color-1) 0%, var(--overlay-color-2) 100%);
}
.card-1:hover {
  background: linear-gradient(45deg, var(--overlay-color-2-1) 0%, var(--overlay-color-2-2) 100%);
}

.card-2 {
  background: linear-gradient(45deg, var(--overlay-color-2-1) 0%, var(--overlay-color-2-2) 100%);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.4s ease-in-out;
}
.card-2::after {
  background: linear-gradient(225deg, var(--overlay-color-2-1) 0%, var(--overlay-color-2-2) 100%);
}
.card-2:hover {
  background: linear-gradient(45deg, var(--overlay-color-1) 0%, var(--overlay-color-2) 100%);
}

.card-3 {
  background: linear-gradient(45deg, var(--overlay-color-3-1) 0%, var(--overlay-color-3-2) 100%);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.4s ease-in-out;
}
.card-3::after {
  background: linear-gradient(225deg, var(--overlay-color-3-1) 0%, var(--overlay-color-3-2) 100%);
}
.card-3:hover {
  background: linear-gradient(45deg, var(--overlay-color-1) 0%, var(--overlay-color-2) 100%);
}

/* SAP cards — coral/blush + lavender/mauve */
.card-sap-1 {
  background: linear-gradient(135deg, #FDDCD5 0%, #F5C2B8 100%);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.4s ease-in-out;
}
.card-sap-1::after {
  background: linear-gradient(315deg, #FDDCD5 0%, #F5C2B8 100%);
}
.card-sap-1:hover {
  background: linear-gradient(135deg, #EAD8ED 0%, #D8C0DC 100%);
}

.card-sap-2 {
  background: linear-gradient(135deg, #EAD8ED 0%, #D8C0DC 100%);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.4s ease-in-out;
}
.card-sap-2::after {
  background: linear-gradient(315deg, #EAD8ED 0%, #D8C0DC 100%);
}
.card-sap-2:hover {
  background: linear-gradient(135deg, #FDDCD5 0%, #F5C2B8 100%);
}

.card-sap-3 {
  background: linear-gradient(135deg, #D5EDE8 0%, #B8DCD4 100%);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.4s ease-in-out;
}
.card-sap-3::after {
  background: linear-gradient(315deg, #D5EDE8 0%, #B8DCD4 100%);
}
.card-sap-3:hover {
  background: linear-gradient(135deg, #EAD8ED 0%, #D8C0DC 100%);
}

/* SAP section — subtle background shift */
.sap-section {
  background-color: #FFFBF7;
}

/* Reverse layout (image left, text right) */
.card-reverse {
  flex-direction: row-reverse;
}

/* --- Card text --- */
.work-card-text {
  flex: 1;
  min-width: 0;
  z-index: 2;
  padding-right: 48px;
}

.card-reverse .work-card-text {
  padding-right: 0;
  padding-left: 48px;
}

.work-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.work-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  font-family: Avenir;
  font-size: 12px;
  font-weight: 500;
  color: #444;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.work-card-title {
  font-family: Avenir;
  font-size: 28px;
  font-weight: 800;
  color: #222;
  line-height: 1.25;
  margin-bottom: 16px;
}

.work-card-desc {
  font-family: Avenir;
  font-size: 17px;
  font-weight: 400;
  color: #444;
  line-height: 1.65;
}

.work-card-cta {
  display: inline-block;
  margin-top: 24px;
  font-family: Avenir;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-card:hover .work-card-cta {
  opacity: 1;
  transform: translateY(0);
}

/* --- Card visual (screenshots) --- */
.work-card-visual {
  flex-shrink: 0;
  width: 380px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.work-card-screenshot {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.work-card:hover .work-card-screenshot {
  transform: translateY(-4px);
}

.mock {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease;
}

.work-card:hover .mock {
  transform: translateY(-4px);
}

.mock-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
}

.mock-body {
  padding: 24px;
}

.mock-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.08);
  margin-bottom: 8px;
}
.mock-line.w40 { width: 40%; }
.mock-line.w60 { width: 60%; }
.mock-line.w70 { width: 70%; }
.mock-line.w80 { width: 80%; }
.mock-line.w90 { width: 90%; }

/* Onboarding mockup — learning path */
.mock-steps {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.mock-step {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease;
}
.mock-step.done {
  background: #A6C1EE;
}
.mock-step.current {
  background: #FBC2EB;
}

.mock-progress {
  height: 5px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  margin-bottom: 20px;
}
.mock-progress-fill {
  width: 60%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #A6C1EE, #FBC2EB);
}

.mock-card-inner {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  padding: 20px;
}

.mock-btn {
  width: 48%;
  height: 24px;
  border-radius: 6px;
  background: #A1C4FD;
  margin-top: 12px;
}

/* Hubs mockup — sidebar + grid */
.mock-grid-layout {
  display: flex;
  gap: 12px;
  padding: 16px;
}

.mock-sidebar {
  width: 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-nav-item {
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.07);
}
.mock-nav-item.active {
  background: #A1D4FE;
}

.mock-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mock-tile {
  height: 52px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Copilot mockup — chat sidebar */
.mock-chat-layout {
  display: flex;
  gap: 12px;
  padding: 16px;
  min-height: 220px;
}

.mock-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.mock-chat-sidebar {
  width: 120px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-end;
}

.mock-chat-bubble {
  border-radius: 8px;
  padding: 8px;
}
.mock-chat-bubble.bot {
  background: rgba(0, 0, 0, 0.06);
}
.mock-chat-bubble.user {
  background: #A1C4FD;
  align-self: flex-end;
}
.mock-chat-bubble .mock-line {
  margin-bottom: 0;
  height: 4px;
}
.mock-chat-bubble.user .mock-line {
  background: rgba(255, 255, 255, 0.5);
}

.mock-chat-input {
  height: 20px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  margin-top: auto;
}

/* imPolls mockup — poll bars */
.mock-poll-q {
  margin-bottom: 16px;
}

.mock-poll-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.mock-poll-bar {
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, #F5C2B8, #EDA99D);
  opacity: 0.6;
}

.mock-poll-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-poll-count {
  width: 40px;
  height: 10px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.08);
}

.mock-btn-sap {
  width: 56px;
  height: 24px;
  border-radius: 6px;
  background: #F5C2B8;
}

/* Enterprise Chat mockup — main + docked panel */
.mock-enterprise-layout {
  display: flex;
  gap: 12px;
  padding: 16px;
  min-height: 220px;
}

.mock-ent-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-ent-cards {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.mock-ent-card {
  flex: 1;
  height: 60px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.mock-ent-panel {
  width: 120px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 2px solid rgba(0, 0, 0, 0.06);
}

.mock-ent-panel-header {
  height: 10px;
  width: 60%;
  border-radius: 3px;
  background: #D4B896;
  margin-bottom: 4px;
}

/* CUX design system mockup — component library */
.mock-cux-layout {
  display: flex;
  gap: 12px;
  padding: 16px;
  min-height: 220px;
}

.mock-cux-sidebar {
  width: 70px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.mock-cux-nav {
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
}

.mock-cux-nav.active {
  background: #6BA89A;
  width: 80%;
}

.mock-cux-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-cux-components {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mock-cux-comp {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-cux-comp-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #B8DCD4;
}

.mock-cux-comp .mock-line {
  height: 3px;
}

/* Responsive */
@media screen and (max-width: 1024px) {
  .work-section {
    padding: 80px 32px 40px;
  }
  .work-card {
    flex-direction: column !important;
    padding: 48px 36px;
  }
  .work-card-text {
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-bottom: 32px;
  }
  .work-card-visual {
    width: 100%;
    max-width: 380px;
    height: 240px;
  }
  .work-card-cta {
    opacity: 1;
    transform: none;
  }
}

@media screen and (max-width: 768px) {
  .work-section {
    padding: 60px 24px 30px;
  }

}

@media screen and (max-width: 1200px) {
  .selected-work-section {
    padding: 80px 60px;
  }
}


/* ======================= */
/* AI Side Projects Section */
/* ======================= */

.ai-projects-section {
  background-color: white;
  padding: 120px 60px 120px;
}

.ai-projects-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.ai-projects-section .section-title {
  margin-bottom: 8px;
}

.ai-section-subtitle {
  font-family: Avenir;
  font-size: 18px;
  font-weight: 350;
  color: #888;
  line-height: 1.5;
  margin-bottom: 50px;
}

.ai-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.ai-project-card {
  border-radius: 30px;
  padding: 48px 36px 40px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.ai-project-card:hover {
  transform: scale(1.02);
  box-shadow: 0px 12px 32px rgba(0, 0, 0, 0.08);
}

.ai-project-card::after {
  content: '';
  display: block;
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.ai-project-card:hover::after {
  animation: OpacityAnim var(--anim-duration) ease-in-out infinite alternate;
  opacity: 1;
}

.ai-card-icon {
  position: relative;
  z-index: 1;
  font-size: 36px;
  margin-bottom: 24px;
  line-height: 1;
}

/* Literature — warm rose / blush */
.ai-card-literature {
  background: linear-gradient(135deg, #F9E4D4 0%, #F0C6C6 100%);
}
.ai-card-literature::after {
  background: linear-gradient(315deg, #F5D5C0 0%, #EBB5B5 100%);
}

/* Music — soft lavender / periwinkle */
.ai-card-music {
  background: linear-gradient(135deg, #DDD6FE 0%, #C4B5FD 100%);
}
.ai-card-music::after {
  background: linear-gradient(315deg, #D0C7FC 0%, #B9A1FD 100%);
}

/* Art — sage / celadon */
.ai-card-art {
  background: linear-gradient(135deg, #D1E7DD 0%, #A8D8B9 100%);
}
.ai-card-art::after {
  background: linear-gradient(315deg, #C3DFD1 0%, #96CEAB 100%);
}

.ai-project-label {
  position: relative;
  z-index: 1;
  font-family: Avenir;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(51, 51, 51, 0.5);
  margin-bottom: 12px;
}

.ai-project-title2 {
  position: relative;
  z-index: 1;
  font-family: Kaisei Tokumin;
  font-size: 26px;
  font-weight: 400;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.3;
}

.ai-project-desc {
  position: relative;
  z-index: 1;
  font-family: Avenir;
  font-size: 15px;
  font-weight: 350;
  color: #555;
  line-height: 1.7;
  flex-grow: 1;
}

.ai-card-cta {
  position: relative;
  z-index: 1;
  font-family: Avenir;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-top: 28px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ai-project-card:hover .ai-card-cta {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 1024px) {
  .ai-projects-section {
    padding: 80px 60px;
  }
  .ai-projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}



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

.footer {
  color: #fff;
  text-align: center;
  padding-bottom: 30px;
}

.footer-line1 {
  font-size: 18px;
  color: #000;
  font-family: Avenir;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* New footer contact section */
/* ======================= */
/* Footer                  */
/* ======================= */
.footer-section {
  background: linear-gradient(180deg, #FFFBF7 0%, #F4F0EB 100%);
  text-align: center;
}

.footer-inner {
  position: relative;
  padding: 120px 60px 80px;
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
}

/* Decorative glow — echoes the hero photo glow */
.footer-glow {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: conic-gradient(
    from 120deg,
    #FBC2EB 0%,
    #A6C1EE 33%,
    #C2F0FC 66%,
    #FBC2EB 100%
  );
  opacity: 0.15;
  filter: blur(60px);
  animation: glowRotate 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.footer-kicker {
  position: relative;
  z-index: 1;
  font-family: Avenir;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #aaa;
  margin-bottom: 16px;
}

.footer-heading {
  position: relative;
  z-index: 1;
  font-family: Kaisei Tokumin;
  font-size: 48px;
  font-weight: 400;
  color: #333;
  margin-bottom: 24px;
  line-height: 1.2;
}

.footer-subtext {
  position: relative;
  z-index: 1;
  font-family: Avenir;
  font-size: 17px;
  font-weight: 350;
  color: #888;
  line-height: 1.7;
  margin-bottom: 40px;
}

.footer-subtext strong {
  color: #555;
  font-weight: 500;
}

/* Email as the hero element — large, warm, clickable */
.footer-email {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: Kaisei Tokumin;
  font-size: 24px;
  font-weight: 400;
  color: #333;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 100px;
  background: #A1C4FD;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.footer-email:hover {
  background-color: #82B1F5;
  transform: translateY(-2px);
}

/* Secondary links */
.footer-links {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
}

.footer-link {
  font-family: Avenir;
  font-size: 15px;
  font-weight: 400;
  color: #999;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-link:hover {
  color: #555;
  border-bottom-color: #555;
}

/* Bottom credit */
.footer-bottom {
  padding: 24px 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-bottom span {
  font-family: Avenir;
  font-size: 13px;
  font-weight: 400;
  color: #bbb;
  letter-spacing: 0.5px;
}

@media screen and (max-width: 768px) {
  .footer-inner {
    padding: 80px 32px 60px;
  }
  .footer-heading {
    font-size: 34px;
  }
  .footer-email {
    font-size: 18px;
    padding: 14px 28px;
  }
  .footer-links {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}


/* ======================= */
/* About page              */
/* ======================= */

.about-page .navbar {
  background-color: #EAF2FF;
}

/* ======================= */
/* About page              */
/* ======================= */
.about-hero {
  background-color: #EAF2FF;
  padding: 100px 60px 120px;
}

.about-hero-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 88px;
}

.about-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.about-photo {
  position: relative;
  z-index: 1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.about-bio {
  max-width: 600px;
}

.about-bio-text {
  color: #555;
  font-family: Avenir;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-bio-text strong {
  color: #333;
  font-weight: 600;
}

.about-hobbies {
  background-color: white;
  padding: 120px 60px 100px;
}

.about-hobbies-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.hobby-block {
  margin-bottom: 80px;
}

.hobby-block:last-child {
  margin-bottom: 0;
}

.hobby-header {
  margin-bottom: 32px;
}

.hobby-title {
  font-family: Kaisei Tokumin;
  font-size: 24px;
  font-weight: 400;
  color: #333;
  margin-bottom: 8px;
}

.hobby-desc {
  font-family: Avenir;
  font-size: 16px;
  font-weight: 400;
  color: #888;
  line-height: 1.6;
}

.hobby-gallery {
  display: grid;
  gap: 16px;
}

.hobby-gallery-5 {
  grid-template-columns: repeat(5, 1fr);
}

.hobby-gallery-4 {
  grid-template-columns: repeat(4, 1fr);
}

.hobby-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}

.hobby-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hobby-img:hover img {
  transform: scale(1.05);
}

@media screen and (max-width: 1024px) {
  .hobby-gallery-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .hobby-gallery-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .about-hero-inner {
    flex-direction: column;
    gap: 40px;
  }
  .about-photo {
    width: 200px;
    height: 200px;
  }
  .about-hobbies {
    padding: 80px 30px 60px;
  }
  .hobby-gallery-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hobby-gallery-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}


.introduction-list {
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333;
  font-family: Avenir;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.introduction-list li {
  margin-bottom: 16px;
}


.about-page .about-me-link{
  border-bottom: 2px solid;
}


.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
}


.onboarding-page .navbar {
  background-color: white;
}



/* ======================= */
/* Case study pages        */
/* ======================= */

.project-banner {
  margin: 0 auto;
  margin-top: 40px;
  display: flex;
  width: 50vw;
  height: auto;
  padding: 100px 120px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 10px;
}

.onboarding-banner {
  background: linear-gradient(90deg, #FBC2EB 0%, #A6C1EE 100%);
}

.core-experience-banner{
  background: linear-gradient(90deg, #FFECD2 0%, #FCB69F 100%);
}

.intelligent-banner{
  background: linear-gradient(90deg, #A1C4FD 0%, #C2E9FB 100%);
}

.global-search-banner {
  background: linear-gradient(90deg, #E8D5FF 0%, #C5B3FF 100%);
}

.project-banner img {
  max-width: 60%;
  height: auto;
}

.project-intro {
  color: #333;
  font-family: Avenir;
  font-size: 16px;
  font-style: normal;
  font-weight: 350;
  line-height: 1.6;
  width: 60vw;
  max-width: 680px;
  margin-top: 80px;
  margin-bottom:100px;
  margin-left: auto;
  margin-right: auto;
}


.project-intro p {
  margin-bottom: 20px;
}


.project-name {
  font-size: 32px;
  color: #000;
  font-family: Kaisei Tokumin;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  margin-bottom:40px;
}


.project-walkthrough {
    color: #333;
    font-family: Avenir;
    font-size: 16px;
    font-style: normal;
    font-weight: 350;
    line-height: 1.6;
    width: 60vw;
    max-width:700px;
    margin-top: 120px;
    margin-bottom:100px;
    margin-left: auto;
    margin-right: auto;
}

.project-walkthrough p {
  margin-bottom: 20px;
}
.project-walkthrough .no-bottom{
  margin-bottom: 0px;
}

.project-walkthrough h3 {
  text-align: center;
  color: #333;
  font-family: Avenir;
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  margin-top: 80px;
  margin-bottom:20px;
}

.project-walkthrough ol{
  padding-left: 20px;
}
.project-walkthrough ul{
  padding-left: 20px;
}
.project-walkthrough ul .with-gap{
  padding-left: 8px;
  margin-bottom: 10px;
  margin-top: 10px;
}

.project-images-container{
  margin: 0 auto;
  margin-top: -70px;
  width: 80vw;
  display: flex;
  height: auto;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background:#F3F5F8;
  flex-wrap: wrap;
  padding: 30px 60px;
}

.image-column {
  text-align: center;
  margin: 30px;
}
.image-column-core-experience {
  text-align: center;
  margin: 60px;
}

.image-column-core-experience img {
  width:100%;
  max-width: 560px;
  height: auto;
}

.project-images-container2 img {
  width:100%;
  max-width: 560px;
  height: auto;
}

.image-column .image-text{
  color: #0078D4;
  font-family: Avenir;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 20px
}

.image-column img {
  width: 400px;
}

.project-images-container2{
  margin: 0 auto;
  display: flex;
  height: auto;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background:#F3F5F8;
  flex-wrap: wrap;
  padding: 60px 30px;
  margin-bottom: 200px;
}



.add-border img {
  width: 100%;
  display: block;
  margin: 0 auto;
  margin-bottom: 0;
  border: 1.5px solid #f2f2f2;
}

.image-column2 {
  text-align: left;
  margin: 40px;
}

.image-column2 img {
  width: 100%;
}

.image-column2 .image-text{
  color: #0078D4;
  font-family: Avenir;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 10px
}

.project-walkthrough h4{
  color: #333;
  font-family: Avenir;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin-bottom:10px;
  margin-top: 48px;
}

.project-images-container3 {
  margin: 0 auto;
  height: auto;
  background: transparent;
  padding: 0px;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.project-images-container3 .image-text{
  color: #0078D4;
  font-family: Avenir;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 20px;
}


.project-images-container3 img {
  width: 100%;
  display: block;
  margin: 0 auto;
  margin-bottom: 0;
}


.project-images-container3 .add-border {
 border: 1.5px solid #f2f2f2;
}



.project-walkthrough .add-bottom-margin{
  margin-bottom: 20px;
}



.project-images-container4 {
  margin: 0 auto;
  height: auto;
  border-radius: 10px;
  background:#F3F5F8;
  padding: 20px;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.project-images-container4 img {
  width: 90%;
  display: block;
  margin: 0 auto;
  margin-bottom: 40px;
}

.project-images-container4 .image-text{
  color: #0078D4;
  font-family: Avenir;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 20px;
  margin-top: 40px;
}



.project-images-container5 {
  margin: 0 auto;
  height: auto;
  border-radius: 10px;
  background:#F3F5F8;
  padding: 60px 20px;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.project-images-container5 img {
  width: 90%;
  display: block;
  margin: 0 auto;
}


.add-top-margin{
  margin-top: 200px;
}

/* ======================= */
/* Project prev/next nav   */
/* ======================= */
.project-nav {
  max-width: 760px;
  margin: 80px auto 100px;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-nav-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.project-nav-link:hover {
  opacity: 0.6;
}

.project-nav-prev {
  align-items: flex-start;
}

.project-nav-next {
  align-items: flex-end;
  text-align: right;
}

.project-nav-direction {
  font-family: Avenir;
  font-size: 13px;
  font-weight: 400;
  color: #aaa;
  letter-spacing: 0.5px;
}

.project-nav-name {
  font-family: Kaisei Tokumin;
  font-size: 20px;
  font-weight: 400;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-nav-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.project-nav-all {
  font-family: Avenir;
  font-size: 14px;
  font-weight: 400;
  color: #bbb;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid #e0e0e0;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.project-nav-all:hover {
  color: #666;
  border-color: #999;
}

@media screen and (max-width: 768px) {
  .project-nav {
    padding: 0 24px;
    margin: 60px auto 80px;
  }
  .project-nav-name {
    font-size: 16px;
  }
  .project-nav-all {
    display: none;
  }
}

.add-top-margin2{
  margin-top: 20px;
}


.project-walkthrough .add-bottom-margin{
  margin-bottom: 100px;
}

.project-walkthrough .add-bottom-margin2{
  margin-bottom: 20px;
}

.project-walkthrough .add-bottom-margin3{
  margin-bottom: 150px;
}

.add-border .subtitle {
  padding: 10px 0;
  font-size: 16px;
  color: grey;
  text-align: center;
}

.add-top-margin2 {
  margin-top: 40px;
}


/* ======================= */
/* Coming Soon placeholder */
/* ======================= */

.coming-soon-container {
  text-align: center;
  padding: 80px 60px;
  max-width: 700px;
  margin: 0 auto;
}

.coming-soon-title {
  font-family: Kaisei Tokumin;
  font-size: 32px;
  font-weight: 400;
  color: #333;
  margin-bottom: 40px;
}

.coming-soon-text {
  font-family: Avenir;
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.takeaway-cards {
  display: flex;
  gap: 30px;
  margin-top: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

.takeaway-card {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  background: #F3F5F8;
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
}

.takeaway-card h4 {
  font-family: Avenir;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.takeaway-card p {
  font-family: Avenir;
  font-size: 14px;
  font-weight: 350;
  color: #666;
  line-height: 1.5;
}


/* ======================= */
/* 2025 Case Study Styles  */
/* ======================= */

/* Hero section */
.case-hero {
  padding: 100px 60px 80px 60px;
  max-width: 760px;
  margin: 0 auto;
}

/* Split hero — text left, abstract mockup right */
.case-hero.case-hero-with-mock {
  max-width: 1060px;
  display: flex;
  align-items: center;
  gap: 60px;
}

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

.case-hero-mock {
  flex-shrink: 0;
  width: 280px;
  opacity: 0.35;
  transform: rotate(-3deg);
  transition: opacity 0.4s ease;
}

.case-hero:hover .case-hero-mock {
  opacity: 0.5;
}

.case-hero-mock .mock {
  box-shadow: none;
  background: rgba(0, 0, 0, 0.03);
}

.case-hero-mock .mock-chat-layout {
  min-height: auto;
}

.case-hero-mock .mock-enterprise-layout {
  min-height: auto;
}

@media screen and (max-width: 1024px) {
  .case-hero.case-hero-with-mock {
    flex-direction: column;
    gap: 40px;
  }
  .case-hero-mock {
    width: 240px;
    align-self: center;
  }
}

@media screen and (max-width: 768px) {
  .case-hero-mock {
    display: none;
  }
}

/* Dark hero with mock variant */
.case-hero-dark.case-hero-dark-with-mock .case-hero-inner {
  max-width: 1060px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.case-hero-dark .case-hero-mock {
  flex-shrink: 0;
  width: 280px;
  opacity: 0.7;
  transform: rotate(-3deg);
}

.case-hero-dark .case-hero-mock .mock {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.case-hero-dark .case-hero-mock .mock-header {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.case-hero-dark .case-hero-mock .mock-dots span {
  background: rgba(255, 255, 255, 0.35);
}

.case-hero-dark .case-hero-mock .mock-line {
  background: rgba(255, 255, 255, 0.25);
}

.case-hero-dark .case-hero-mock .mock-chat-bubble.bot {
  background: rgba(255, 255, 255, 0.15);
}

.case-hero-dark .case-hero-mock .mock-chat-bubble.user {
  background: rgba(161, 196, 253, 0.5);
}

.case-hero-dark .case-hero-mock .mock-chat-bubble.user .mock-line {
  background: rgba(255, 255, 255, 0.45);
}

.case-hero-dark .case-hero-mock .mock-chat-input {
  background: rgba(255, 255, 255, 0.15);
}

@media screen and (max-width: 1024px) {
  .case-hero-dark.case-hero-dark-with-mock .case-hero-inner {
    flex-direction: column;
    gap: 40px;
  }
}

@media screen and (max-width: 768px) {
  .case-hero-dark .case-hero-mock {
    display: none;
  }
}

/* Featured hero — text above, large image below */
.case-hero-featured {
  max-width: 960px;
  margin: 0 auto;
  padding: 100px 60px 0;
}

.case-hero-featured-text {
  max-width: 760px;
  margin-bottom: 48px;
}

.case-hero-featured-text h1 {
  font-family: Kaisei Tokumin;
  font-size: 42px;
  font-weight: 400;
  color: #333;
  line-height: 1.2;
  margin-bottom: 24px;
}

.case-hero-featured-text .case-summary {
  font-family: Avenir;
  font-size: 18px;
  font-weight: 350;
  color: #666;
  line-height: 1.7;
}

.case-hero-featured-image {
  border-radius: 24px;
  overflow: hidden;
  padding: 48px 48px 0;
  display: flex;
  justify-content: center;
}

.case-hero-featured-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sap-hero-coral {
  background: linear-gradient(135deg, #FDDCD5 0%, #F5C2B8 100%);
}

.sap-hero-lavender {
  background: linear-gradient(135deg, #EAD8ED 0%, #D8C0DC 100%);
}

@media screen and (max-width: 768px) {
  .case-hero-featured {
    padding: 60px 24px 0;
  }
  .case-hero-featured-text h1 {
    font-size: 32px;
  }
  .case-hero-featured-image {
    padding: 32px 32px 0;
  }
}

.case-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.case-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 100px;
  font-family: Avenir;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-tag-yellow {
  background-color: #FDE68A;
  color: #333;
}

.case-tag-blue {
  background-color: #EAF2FF;
  color: #333;
}

.case-tag-coral {
  background-color: #FDDCD5;
  color: #333;
}

.case-tag-lavender {
  background-color: #EAD8ED;
  color: #333;
}

.case-tag-teal {
  background-color: #D5EDE8;
  color: #333;
}

.case-hero h1 {
  font-family: Kaisei Tokumin;
  font-size: 42px;
  font-weight: 400;
  color: #333;
  line-height: 1.2;
  margin-bottom: 24px;
}

.case-hero .case-summary {
  font-family: Avenir;
  font-size: 18px;
  font-weight: 350;
  color: #666;
  line-height: 1.7;
}

/* Dark hero variant (for intelligent page) */
.case-hero-dark {
  background-color: #1a1a2e;
  padding: 100px 60px 80px 60px;
}

.case-hero-dark .case-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.case-hero-dark h1 {
  font-family: Kaisei Tokumin;
  font-size: 42px;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 24px;
}

.case-hero-dark .case-summary {
  font-family: Avenir;
  font-size: 18px;
  font-weight: 350;
  color: #c0c0d0;
  line-height: 1.7;
}

/* Overview info cards */
.case-overview {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 60px 40px 60px;
}

.case-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.case-overview-card {
  background: #F8F8FA;
  border: 1px solid #E8E8EE;
  border-radius: 16px;
  padding: 24px;
}

.case-overview-card.full-width {
  grid-column: 1 / -1;
}

.case-overview-card h3 {
  font-family: Avenir;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 8px;
}

.case-overview-card p {
  font-family: Avenir;
  font-size: 16px;
  font-weight: 350;
  color: #555;
  line-height: 1.6;
}

.case-overview-card .sub-text {
  font-size: 14px;
  color: #888;
  margin-top: 8px;
}

/* Project label + Stage label */
.case-project-label {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 100px;
  font-family: Avenir;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background-color: #0078D4;
  margin-bottom: 16px;
}

.case-project-label-teal {
  background-color: #0E7C6B;
}

.case-project-label-purple {
  background-color: #7C5CFC;
}

.case-stage-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-family: Avenir;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.case-stage-label-blue {
  background-color: #EAF2FF;
  color: #0078D4;
}

.case-stage-label-green {
  background-color: #E6F7F0;
  color: #0E7C6B;
}

/* Section container */
.case-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 60px;
}

.case-section-alt {
  background-color: #F8F8FA;
}

.case-section h2 {
  font-family: Kaisei Tokumin;
  font-size: 32px;
  font-weight: 400;
  color: #333;
  margin-bottom: 16px;
}

.case-section h3 {
  font-family: Avenir;
  font-size: 22px;
  font-weight: 800;
  color: #333;
  margin-bottom: 12px;
  margin-top: 60px;
}

.case-section h3:first-child {
  margin-top: 0;
}

.case-section h4 {
  font-family: Avenir;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  margin-top: 48px;
}

.case-section p {
  font-family: Avenir;
  font-size: 16px;
  font-weight: 350;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.case-section .project-subtitle {
  font-family: Avenir;
  font-size: 17px;
  font-weight: 350;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Problem / Need cards (3-column grid) */
.case-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 40px;
}

.case-cards-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.case-card {
  background: #fff;
  border: 1px solid #E8E8EE;
  border-radius: 16px;
  padding: 28px 24px;
}

.case-card-icon {
  font-size: 24px;
  margin-bottom: 14px;
}

.case-card h4 {
  font-family: Avenir;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  margin-top: 0;
}

.case-card p {
  font-family: Avenir;
  font-size: 14px;
  font-weight: 350;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Flat image — no border/shadow, for diagrams and timelines */
.case-image-flat {
  margin-top: 16px;
  margin-bottom: 8px;
}

.case-image-flat img {
  width: 100%;
  display: block;
}

/* Side-by-side image pair — desktop + mobile */
.case-image-pair {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 16px;
  margin-bottom: 8px;
}

.case-image-pair-large {
  flex: 2;
}

.case-image-pair-small {
  flex: 0 0 200px;
}

@media screen and (max-width: 768px) {
  .case-image-pair {
    flex-direction: column;
  }
  .case-image-pair-small {
    flex: none;
    max-width: 240px;
  }
}

/* Case study image with soft shadow */
.case-image-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  margin-top: 16px;
  margin-bottom: 8px;
}

.case-image-container img {
  width: 100%;
  display: block;
}

.case-image-narrow {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Component showcase grid */
.component-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 40px;
}

.component-cell {
  background: #fff;
  border: 1px solid #E8E8EE;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.component-cell:hover {
  transform: translateY(-2px);
}

.component-gif {
  background: #F4F4F6;
  overflow: hidden;
}

.component-gif img {
  width: 100%;
  display: block;
}

.component-cell h5 {
  font-family: Avenir;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin: 14px 16px 4px;
}

.component-cell p {
  font-family: Avenir;
  font-size: 12px;
  font-weight: 400;
  color: #888;
  line-height: 1.4;
  margin: 0 16px 14px;
}

@media screen and (max-width: 768px) {
  .component-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .component-showcase {
    grid-template-columns: 1fr;
  }
}

.case-image-caption {
  font-family: Avenir;
  font-size: 14px;
  font-weight: 350;
  color: #aaa;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 32px;
}

/* Design highlight block */
.case-highlight-block {
  margin-top: 40px;
  margin-bottom: 40px;
}

.case-highlight-block h4 {
  margin-top: 0;
}

.case-highlight-block p {
  margin-bottom: 16px;
}

/* Validation comparison grid */
.validation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  margin-bottom: 40px;
}

.validation-card {
  background: #F8F8FA;
  border: 1px solid #E8E8EE;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.validation-card-winner {
  background: #F3EEFF;
  border-color: #C5B3FF;
}

.validation-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #8B6FCF;
  color: white;
  font-family: Avenir;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 100px;
}

.validation-rank {
  font-family: Kaisei Tokumin;
  font-size: 16px;
  font-weight: 400;
  color: #888;
  margin-bottom: 16px;
}

.validation-card-winner .validation-rank {
  color: #6B4FA0;
}

.validation-diagram {
  margin-bottom: 20px;
}

.val-window {
  width: 120px;
  height: 80px;
  margin: 0 auto;
  border: 2px solid #ccc;
  border-radius: 6px;
  position: relative;
  background: white;
}

.validation-card-winner .val-window {
  border-color: #8B6FCF;
}

.val-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #D8D0E8;
  font-family: Avenir;
  font-size: 8px;
  font-weight: 600;
  color: #555;
}

.validation-card-winner .val-icon,
.validation-card-winner .val-icon-top,
.validation-card-winner .val-icon-bottom {
  background: #8B6FCF;
  color: white;
}

.val-icons-center {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.val-icons-close {
  position: absolute;
  top: 6px;
  right: 8px;
  display: flex;
  gap: 3px;
}

.val-icon-top {
  position: absolute;
  top: 6px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #D8D0E8;
  font-family: Avenir;
  font-size: 8px;
  font-weight: 600;
  color: #555;
}

.val-icon-bottom {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #D8D0E8;
  font-family: Avenir;
  font-size: 8px;
  font-weight: 600;
  color: #555;
}

.validation-finding {
  font-family: Avenir;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  line-height: 1.5;
  margin-bottom: 12px;
}

.validation-quote {
  font-family: Avenir;
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: #999;
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  .validation-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Process Timeline */
.process-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin: 32px 0 40px;
  padding: 0 4px;
}

.timeline-track {
  position: absolute;
  top: 17px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, #F0C8A8, #E8D5C8);
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.timeline-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFF5ED;
  border: 2px solid #F0C8A8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Kaisei Tokumin;
  font-size: 13px;
  color: #C08050;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.timeline-label {
  font-family: Avenir;
  font-size: 12px;
  font-weight: 500;
  color: #888;
  text-align: center;
  max-width: 90px;
  line-height: 1.4;
}

@media screen and (max-width: 768px) {
  .process-timeline {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }
  .timeline-track {
    display: none;
  }
  .timeline-step {
    flex: 0 0 calc(25% - 12px);
  }
}

@media screen and (max-width: 480px) {
  .timeline-step {
    flex: 0 0 calc(50% - 8px);
  }
}

/* Workflow Comparison */
.workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0 40px;
}

.workflow-card {
  background: #F8F8FA;
  border: 1px solid #E8E8EE;
  border-radius: 16px;
  padding: 24px;
  position: relative;
}

.workflow-card-chosen {
  background: #FFF8F2;
  border-color: #F0C8A8;
}

.workflow-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #D4885C;
  color: white;
  font-family: Avenir;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 100px;
}

.workflow-label {
  font-family: Avenir;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 16px;
}

.workflow-card-chosen .workflow-label {
  color: #C08050;
}

.workflow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.workflow-step {
  background: #EEEEF0;
  border-radius: 100px;
  padding: 6px 12px;
  font-family: Avenir;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
}

.workflow-card-chosen .workflow-step {
  background: #FCE8D8;
  color: #8B5A2B;
}

.workflow-arrow {
  font-family: Avenir;
  font-size: 12px;
  color: #ccc;
}

.workflow-card-chosen .workflow-arrow {
  color: #D4A882;
}

.workflow-desc {
  font-family: Avenir;
  font-size: 13px;
  color: #999;
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Persona Cards */
.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 20px 0 40px;
}

.persona-card {
  background: #fff;
  border: 1px solid #E8E8EE;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.persona-card:hover {
  transform: translateY(-2px);
}

.persona-illustration {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #FFF8F2;
  padding: 20px 40px;
}

.persona-info {
  padding: 20px 24px 24px;
}

.persona-role {
  font-family: Kaisei Tokumin;
  font-size: 18px;
  color: #333;
  margin-bottom: 4px;
}

.persona-context {
  font-family: Avenir;
  font-size: 13px;
  color: #999;
  margin-bottom: 14px;
}

.persona-quote {
  font-family: Avenir;
  font-size: 14px;
  font-style: italic;
  color: #666;
  line-height: 1.6;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid #F0C8A8;
}

.persona-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.persona-tag {
  display: inline-block;
  background: #FCE8D8;
  color: #8B5A2B;
  font-family: Avenir;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
}

/* Journey Strip */
.journey-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 20px 0 40px;
  background: #fff;
  border: 1px solid #E8E8EE;
  border-radius: 16px;
  overflow: hidden;
}

.journey-stage {
  padding: 24px 20px;
  border-right: 1px solid #E8E8EE;
}

.journey-stage:last-child {
  border-right: none;
}

.journey-stage-number {
  font-family: Kaisei Tokumin;
  font-size: 12px;
  color: #C08050;
  margin-bottom: 6px;
}

.journey-stage-header {
  font-family: Kaisei Tokumin;
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
}

.journey-actions {
  font-family: Avenir;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 12px;
}

.journey-pain {
  font-family: Avenir;
  font-size: 12px;
  color: #C08050;
  background: #FFF8F2;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.4;
}

/* Insight List */
.insight-list {
  margin: 20px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #E8E8EE;
  border-radius: 12px;
  padding: 20px;
}

.insight-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFF5ED;
  border: 2px solid #F0C8A8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Kaisei Tokumin;
  font-size: 14px;
  color: #C08050;
}

.insight-item strong {
  font-family: Avenir;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 4px;
}

.insight-item p {
  font-family: Avenir;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Phase Grid */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0 32px;
}

.phase-card {
  background: #FFF8F2;
  border: 1px solid #F0C8A8;
  border-radius: 16px;
  padding: 24px;
}

.phase-number {
  font-family: Kaisei Tokumin;
  font-size: 24px;
  color: #D4885C;
  margin-bottom: 8px;
}

.phase-title {
  font-family: Avenir;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.phase-desc {
  font-family: Avenir;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .persona-grid {
    grid-template-columns: 1fr;
  }
  .journey-strip {
    grid-template-columns: 1fr;
  }
  .journey-stage {
    border-right: none;
    border-bottom: 1px solid #E8E8EE;
  }
  .journey-stage:last-child {
    border-bottom: none;
  }
  .phase-grid {
    grid-template-columns: 1fr;
  }
}

/* Impact metrics */
.case-impact {
  background-color: #0078D4;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  margin-top: 48px;
  margin-bottom: 48px;
}

.case-impact-teal {
  background-color: #0E7C6B;
}

.case-impact-purple {
  background-color: #7C5CFC;
}

.case-impact-coral {
  background-color: #D4766A;
}

.case-impact h4 {
  font-family: Avenir;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  margin-top: 0;
}

.case-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.case-impact-metric {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
}

.case-impact-metric .metric-value {
  font-family: Avenir;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 4px;
}

.case-impact-metric .metric-value-blue {
  color: #0078D4;
}

.case-impact-metric .metric-value-green {
  color: #0E7C6B;
}

.case-impact-metric .metric-value-teal {
  color: #0E7C6B;
}

.case-impact-metric .metric-value-purple {
  color: #7C5CFC;
}

.case-impact-metric .metric-value-coral {
  color: #D4766A;
}

.case-impact-metric .metric-label {
  font-family: Avenir;
  font-size: 13px;
  font-weight: 500;
  color: #666;
}

/* Takeaway cards (updated for 2025 structure) */
.case-takeaways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 40px;
}

.case-takeaways-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.case-takeaway-card {
  background: #F3F5F8;
  border-radius: 16px;
  padding: 28px 24px;
}

.case-takeaway-card .takeaway-icon {
  font-size: 24px;
  margin-bottom: 14px;
}

.case-takeaway-card h4 {
  font-family: Avenir;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  margin-top: 0;
}

.case-takeaway-card p {
  font-family: Avenir;
  font-size: 14px;
  font-weight: 350;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Case divider — transition between solution and process */
.case-divider {
  text-align: center;
  margin: 56px 0 48px;
  position: relative;
}

.case-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #E8E0D8;
}

.case-divider-text {
  font-family: Kaisei Tokumin;
  font-size: 16px;
  color: #999;
  background: #FFFBF7;
  display: inline-block;
  padding: 0 24px;
  position: relative;
}

/* Callout box */
.case-callout {
  background: #fff;
  border: 1px solid #E8E8EE;
  border-radius: 16px;
  padding: 28px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.case-callout-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.case-callout h3 {
  font-family: Avenir;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
  margin-top: 0;
}

.case-callout p {
  font-family: Avenir;
  font-size: 15px;
  font-weight: 350;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Concept exploration cards */
.case-concept {
  background: #F8F8FA;
  border: 1px solid #E8E8EE;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.case-concept-selected {
  border: 2px solid #0E7C6B;
  position: relative;
}

.case-concept-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0E7C6B;
  color: #fff;
  font-family: Avenir;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 1;
}

.case-concept img {
  width: 100%;
  display: block;
}

.case-concept-info {
  padding: 16px 20px;
}

.case-concept-info h4 {
  font-family: Avenir;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
  margin-top: 0;
}

.case-concept-info p {
  font-family: Avenir;
  font-size: 14px;
  font-weight: 350;
  color: #888;
  margin-bottom: 0;
}

/* Future enhancements dark section */
.case-future-section {
  background-color: #1a1a2e;
  padding: 80px 60px;
}

.case-future-section .case-section-inner {
  max-width: 760px;
  margin: 0 auto;
}

.case-future-section h2 {
  font-family: Kaisei Tokumin;
  font-size: 32px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 32px;
}

.case-future-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.case-future-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 28px 24px;
}

.case-future-card .future-icon {
  font-size: 24px;
  margin-bottom: 14px;
}

.case-future-card h3 {
  font-family: Avenir;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.case-future-card p {
  font-family: Avenir;
  font-size: 14px;
  font-weight: 350;
  color: #aab;
  line-height: 1.5;
}

/* Visual inconsistency single card */
.case-single-card {
  background: #fff;
  border: 1px solid #E8E8EE;
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.case-single-card .case-card-icon {
  font-size: 24px;
  margin-bottom: 14px;
}

.case-single-card h4 {
  font-family: Avenir;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  margin-top: 0;
}

.case-single-card p {
  font-family: Avenir;
  font-size: 14px;
  font-weight: 350;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Responsive adjustments for case study */
@media screen and (max-width: 768px) {
  .case-hero {
    padding: 60px 30px 40px 30px;
  }

  .case-hero h1 {
    font-size: 32px;
  }

  .case-hero-dark {
    padding: 60px 30px 40px 30px;
  }

  .case-hero-dark h1 {
    font-size: 32px;
  }

  .case-overview {
    padding: 40px 30px 20px 30px;
  }

  .case-overview-grid {
    grid-template-columns: 1fr;
  }

  .case-section {
    padding: 40px 30px;
  }

  .case-cards-grid {
    grid-template-columns: 1fr;
  }

  .case-takeaways-grid {
    grid-template-columns: 1fr;
  }

  .case-impact-grid {
    grid-template-columns: 1fr;
  }

  .case-future-section {
    padding: 60px 30px;
  }

  .case-future-grid {
    grid-template-columns: 1fr;
  }
}
