/* Project Page Styles - ONGRID Case Study */

.project-main {
  padding-top: 0;
  background-color: #050505;
  color: #edeef0;
}

/* Hero Section */
.project-hero {
  padding: 0 12vw 0;
  max-width: 1440px;
  margin: -100px auto 0;
}

.project-hero:has(.project-cover-image) {
  padding-top: 48px;
  padding-bottom: 80px;
  margin: 0 auto;
}


.project-hero-content {
  display: flex;
  gap: 122px;
  align-items: center;
}

.project-hero-text {
  flex: 1;
  max-width: 607px;
}

.project-badge {
  display: inline-block;
  background: rgba(75, 193, 200, 0.3);
  color: white;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14px;
  margin-bottom: 12px;
  font-family: 'Inter', system-ui, sans-serif;
}

.project-title {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.66px;
  color: white;
  margin: 0 0 8px 0;
  white-space: nowrap;
}

.project-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.6;
  color: #d9d9d9;
  margin: 0 0 32px 0;
  max-width: 720px;
}

.project-meta-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-meta-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.11;
  letter-spacing: 0.18px;
  color: #969696;
}

.project-meta-value {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(231, 231, 231, 0.9);
}

.impact-value {
  border-left: 2px solid #4bc1c8;
  padding-left: 14.25px;
}

/* Phone Mockup */
.project-hero-image {
  flex-shrink: 0;
  width: 400px;
  height: 810px;
  position: relative;
  margin-left: -30px;
}

.project-hero-image .project-cover-image {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.phone-mockup {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 55.88px;
  overflow: hidden;
  box-shadow: 0 0 55.88px rgba(0, 0, 0, 0.8);
  background: black;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16.764px;
  display: block;
}

/* Project Sections */
.project-section {
  padding: 24px 12vw 80px;
  max-width: 1440px;
  margin: 0 auto;
}

/* Reduce top padding for the first section after hero (The Context) */
.project-section:first-of-type {
  padding-top: 0;
}

/* Reduce gap between Backstory and Turning Point sections */
.backstory-section {
  padding-bottom: 0;
}

.project-section-content {
  max-width: 1180px;
  margin: 0 auto;
}

/* Extra spacing after Strategy section before Solution */
.strategy-section {
  margin-bottom: 40px;
}

/* Extra spacing after Solution section before Design System */
.solution-section {
  margin-bottom: 60px;
}

.section-heading {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.11;
  letter-spacing: 0.4px;
  color: white;
  margin: 0 0 20px 0;
}

.section-heading-accent {
  font-size: 22px;
  border-left: 3px solid #4BC1C8;
  padding-left: 16px;
  margin-top: 40px;
}

.subsection-heading.section-heading-accent {
  margin-top: 40px;
}

.section-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(231, 231, 231, 0.9);
  margin-bottom: 40px;
}

.section-text p {
  margin: 0 0 16px 0;
}

.section-text p:last-child {
  margin-bottom: 0;
}

.section-text ul {
  margin: 16px 0;
  padding-left: 24px;
  list-style-type: disc;
}

.section-text li {
  margin-bottom: 8px;
  color: rgba(231, 231, 231, 0.9);
  line-height: 1.7;
}

.section-text li:last-child {
  margin-bottom: 0;
}

.code-pill {
  display: inline-block;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  font-size: 0.9em;
  background: #1c1c1e;
  color: #e7e7e7;
  padding: 4px 8px;
  border-radius: 4px;
  margin: 0 2px;
}

/* Funnel Diagram */
.funnel-diagram {
  position: relative;
  width: 809px;
  height: 392px;
  margin: 40px auto 10px; /* tighter gap before Reality Check */
}

.funnel-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

.funnel-top,
.funnel-middle,
.funnel-bottom {
  display: none;
}

.funnel-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.3;
  z-index: 2;
  pointer-events: none;
}

.funnel-text span {
  font-size: 18px;
}

.funnel-text-top {
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
}

.funnel-text-middle {
  top: 170px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
}

.funnel-text-bottom {
  top: 300px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
}

.funnel-labels {
  position: absolute;
  left: 483px;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 43px 0 58px;
  z-index: 2;
}

.funnel-label-top {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.44px;
  color: #ececec;
  position: relative;
  padding-left: 40px;
}

.funnel-label-middle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.44px;
  color: white;
  position: relative;
  padding-left: 40px;
}

.funnel-label-bottom {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.44px;
  color: #ececec;
  position: relative;
  padding-left: 40px;
}

/* Funnel dashed lines + circles */
.funnel-label-top::before,
.funnel-label-middle::before,
.funnel-label-bottom::before {
  content: "";
  position: absolute;
  left: -130px;
  top: 50%;
  width: 110px;
  border-top: 2px dashed rgba(190, 191, 191, 0.8);
  transform: translateY(-50%);
}

.funnel-label-top::after,
.funnel-label-middle::after,
.funnel-label-bottom::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  transform: translateY(-50%);
}

.funnel-label-top::after {
  border: 3px solid #31d09d; /* green circle */
}

.funnel-label-middle::after {
  border: 3px solid #00c3c8; /* teal circle */
}

.funnel-label-bottom::after {
  border: 3px solid #f35c54; /* red circle */
}

/* Fine‑tune line length so 2nd & 3rd arrows touch funnel edge */
.funnel-label-middle::before {
  left: -165px;
  width: 145px;
}

.funnel-label-bottom::before {
  left: -195px;
  width: 175px;
}

/* Reality Cards */
.reality-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
  margin-bottom: 60px; /* extra space after Reality Check before Core Problem */
}

.reality-card {
  padding: 30px;
  background: #1c1c1e;
  border-radius: 12px;
  border-left: 3px solid #4bc1c8;
}

.reality-card-title {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.44px;
  color: white;
  margin: 0 0 8px 0;
}

.reality-card-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(231, 231, 231, 0.9);
  margin: 0;
}

/* Cognitive Comparison */
.cognitive-comparison {
  display: flex;
  align-items: center;
  gap: 28px; /* reduced gap so images and arrow sit closer */
  margin-top: 40px;
  margin-bottom: 60px; /* extra space after Core Problem before Strategy */
  justify-content: center;
}

.cognitive-item {
  width: 362px;
}

.cognitive-image {
  width: 100%;
  height: 319px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 8px;
}

.cognitive-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.18px;
  color: #969696;
  text-align: center;
  margin: 0;
}

.cognitive-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cognitive-arrow-image {
  height: 80px;
  width: auto;
}

/* Solution Text */
.solution-text {
  margin-bottom: 40px;
}

/* Old vs New Section */
.old-new-section {
  padding: 80px 12vw;
}

.old-new-comparison {
  width: 100%;
  margin: 0 auto;
}

.old-new-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.prototype-link-wrap {
  margin-top: 16px;
  margin-bottom: 40px; /* extra space before Design System section */
  text-align: center;
}

.prototype-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: #ffffff;
  text-decoration: underline;
}

.prototype-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border: none;
}

.prototype-link-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.prototype-link:hover {
  color: #ffffff;
}

.prototype-link:hover .prototype-link-icon {
  border-color: #4bc1c8;
}

/* Drag slider: Old vs New design */
.design-slider {
  max-width: 934px;
  margin: 24px auto 0;
}

.design-slider-inner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #111111;
}

.design-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.design-image-new-wrapper {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}

.design-image-new-wrapper .design-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.design-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.design-handle-line {
  height: 100%;
  border-left: 2px dashed rgba(255, 255, 255, 0.6);
}

.design-handle-knob {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(10, 10, 10, 0.9);
  margin-left: -14px;
}

.design-slider-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.design-slider-labels {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #4bc1c8;
}

.design-label-old {
  text-align: left;
}

.design-label-new {
  text-align: right;
}

/* Design System Images */
.design-system-images {
  margin-top: 60px;
}

.design-system-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Impact Section */
.impact-section {
  padding: 80px 12vw 120px;
}

.impact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 29px;
}

.impact-card {
  background: #1c1c1e;
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.impact-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 76px;
  margin-bottom: 8px;
}

.impact-number {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: 55.335px;
  font-weight: normal;
  line-height: 1.5;
  letter-spacing: 1.1067px;
  color: #4bc2c8;
  white-space: nowrap;
}

.impact-number-to {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: 30px;
  font-weight: normal;
  line-height: 1;
  letter-spacing: 0.4px;
  color: #4bc2c8;
  margin: 0 6px;
  display: inline-block;
  transform: translateY(10px);
}

.impact-card:first-child .impact-number {
  font-size: 55.335px;
}

.impact-card:nth-child(2) .impact-number {
  font-size: 68.33px;
}

.impact-arrow {
  font-size: 24px;
  color: #edeef0;
}

.impact-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 8px;
  display: block;
}

.timer-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.impact-card-title {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.44px;
  color: white;
  margin: 0;
}

.impact-card-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(231, 231, 231, 0.9);
  margin: 0;
}

/* Project Footer - Uses .cta and .cta-bottom classes from main styles.css */

/* Responsive Design */
@media (max-width: 1200px) {
  .project-hero-content {
    flex-direction: column;
    gap: 60px;
  }

  .project-hero-text {
    max-width: 100%;
  }

  .project-hero-image {
    width: 100%;
    max-width: 335px;
    margin: 0 auto;
  }

  .funnel-diagram {
    width: 100%;
    max-width: 809px;
    height: auto;
  }

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

  .cognitive-comparison {
    flex-direction: column;
    gap: 40px;
  }

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

@media (max-width: 768px) {
  .project-hero,
  .project-section,
  .project-footer {
    padding-left: 8vw;
    padding-right: 8vw;
  }

  .project-title {
    font-size: 42px;
  }

  .section-heading {
    font-size: 28px;
  }

  .section-text {
    font-size: 18px;
  }

  .funnel-diagram {
    transform: scale(0.8);
    transform-origin: top left;
  }

  .cognitive-item {
    width: 100%;
    max-width: 362px;
  }
}

/* Project Cover Image */
.project-cover-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Hero image container when it contains cover image */
.project-hero-image:not(:has(.phone-mockup)) {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-left: 0;
  margin-top: 0;
}

.project-hero-content:has(.project-cover-image) {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.project-hero-content:has(.project-cover-image) .project-badge {
  margin-bottom: 0;
}

.project-hero-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
}

.project-hero-content:has(.project-cover-image) .project-title {
  text-align: center;
}

.project-hero-content:has(.project-cover-image) .project-subtitle {
  text-align: center;
}

.project-hero-content:has(.project-cover-image) .project-cover-image {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
}

/* Project Image Section */
.project-image-section {
  margin-top: 40px;
  margin-bottom: 0;
}

.section-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Subsection Heading */
.subsection-heading {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.3px;
  color: white;
  margin: 32px 0 16px 0;
}

/* Result Cards */
.result-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.result-card {
  padding: 30px;
  background: #1c1c1e;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-card-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 8px;
  display: block;
}

.result-card-icon svg {
  width: 100%;
  height: 100%;
}

.result-card-icon path,
.result-card-icon circle,
.result-card-icon rect,
.result-card-icon polygon {
  fill: #4BC1C8;
}

.result-card-title {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.4px;
  color: white;
  margin: 0;
}

.result-card-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(231, 231, 231, 0.9);
  margin: 0;
}

@media (max-width: 1200px) {
  .result-cards {
    grid-template-columns: 1fr;
  }
}

/* DAV Project Specific Styles */

/* Problem Cards */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.problem-card {
  padding: 30px;
  background: #1c1c1e;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem-card-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 8px;
  display: block;
}

.problem-card-icon svg,
.problem-card-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.problem-card-title {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.4px;
  color: white;
  margin: 0;
}

.problem-card-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(231, 231, 231, 0.9);
  margin: 0;
}

/* Core Problem Box */
.core-problem-box {
  background: #1c1c1e;
  border-left: 3px solid #4BC1C8;
  padding: 20px 24px;
  border-radius: 8px;
  margin-top: 20px;
}

.core-problem-box p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(231, 231, 231, 0.9);
  margin: 0;
}

/* Design Decision Sections - 2x2 Grid Layout */
.design-decisions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 60px;
}

.design-decision-card {
  padding: 30px;
  background: #1c1c1e;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.design-decision-title {
  font-family: 'Denton Test', 'Denton', 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.4px;
  color: white;
  margin: 0;
  text-align: center;
}

.design-decision-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.design-decision-image img {
  width: 100%;
  max-width: 293px;
  height: auto;
  border-radius: 12px;
  display: block;
}

.design-decision-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.design-decision-text p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(231, 231, 231, 0.9);
  margin: 0;
  margin-bottom: 24px;
}

.design-decision-text p:last-child {
  margin-bottom: 0;
}

.decision-heading,
.rationale-heading {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.5;
  color: white;
  margin: 0 0 8px 0;
}

.rationale-heading {
  margin-top: 0;
}

/* Cover Image - matches ELockr style */
.project-hero:has(.project-cover-image) .project-cover-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 0;
}

@media (max-width: 1200px) {
  .problem-cards {
    grid-template-columns: 1fr;
  }
  
  .design-decisions-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}
