/* ============================================
   Design Showcase — Full-page scroll sections
   ============================================ */

/* --- Page Header Additions --- */
.back-link--dark {
  color: #000;
}

.page-header--light .page-title {
  color: #000;
}

.page-header--light .page-subtitle {
  color: rgba(0, 0, 0, 0.5);
}



/* --- Project Anchor Nav --- */
.page-header--light {
  position: relative;
}

.project-anchors {
  position: absolute;
  bottom: 1rem;
  right: 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}

.project-anchor {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e8622b;
  transition: color 0.3s ease;
}

.project-anchor:hover {
  color: #c04e1f;
}

.project-anchor-dot {
  color: #e8622b;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .project-anchors {
    padding: 0.75rem 1.5rem;
  }
}

/* --- Design Project Section --- */
.design-project {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* --- Screen Gallery (top portion) --- */
.design-project-screens {
  flex: 0 0 auto;
  padding: 6rem 3rem 3rem;
  display: flex;
  justify-content: center;
}

.screen-gallery {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-end;
  max-width: 1100px;
  width: 100%;
}

.screen-mock {
  flex: 0 1 280px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s var(--ease-out);
}

.screen-mock:hover {
  transform: translateY(-8px);
}

/* Center screen slightly larger */

/* Mockup image variant (replaces phone placeholders) */
.screen-gallery--mockup {
  justify-content: center;
  align-items: center;
}

.screen-mockup-img {
  max-width: 900px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
  transition: transform 0.5s var(--ease-out);
}

.screen-mockup-img:hover {
  transform: none;
}

/* --- Horizontal layout variant (text left, image right) --- */
.design-project--horizontal {
  flex-direction: row;
  align-items: center;
  height: 100vh;
  min-height: 0;
}

.design-project--horizontal .design-project-info {
  flex: 0 0 32%;
  padding: 3rem 1.5rem 3rem 4rem;
  margin: 0;
  justify-content: center;
}

.design-project-screens--side {
  flex: 1;
  padding: 0.5rem 0.5rem 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-mockup-img--side {
  max-width: 100%;
  max-height: 98vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.screen-mock:nth-child(2) {
  flex: 0 1 300px;
}

.screen-mock-img {
  width: 100%;
  height: auto;
  display: block;
}

.screen-placeholder {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.screen-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 1rem;
}

/* Per-project bottom shadow tint — currently unused */

/* ---- Matchbox: beige & burgundy, professional-friendly ---- */
.design-project--matchbox {
  background: #f6f4f1;
}

.screen-placeholder--matchbox {
  background: linear-gradient(160deg, #8c2f39 0%, #c4a882 40%, #3d1c20 100%);
}

.design-project--matchbox .design-project-name {
  color: #2a2018;
}

.design-project--matchbox .design-project-type {
  color: rgba(42, 32, 24, 0.5);
}

.design-project--matchbox .design-project-blurb {
  color: rgba(42, 32, 24, 0.65);
}

.design-project--matchbox .detail-chip {
  border-color: rgba(42, 32, 24, 0.2);
  color: rgba(42, 32, 24, 0.5);
}

.design-project--matchbox .design-project-cta {
  color: #e8622b;
}

.design-project--matchbox .design-project-cta::after {
  background: #e8622b;
}

/* Matchbox horizontal: cropped phone pinned to bottom */
.matchbox-hero-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  align-self: stretch;
  margin: 0;
}

.matchbox-hero-img {
  width: auto;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.12));
}

/* ---- Revel: purple/magenta glowing orb nightlife ---- */
.design-project--revel {
  background: #0a0a0f;
}

.design-project--revel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 60% 80%, rgba(180, 40, 200, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 40% 60%, rgba(100, 20, 160, 0.5) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 90%, rgba(220, 60, 180, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 30% 70%, rgba(60, 10, 120, 0.6) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.design-project--revel .revel-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

.design-project--revel > *:not(.revel-grain) {
  position: relative;
  z-index: 2;
}

.screen-placeholder--revel {
  background: radial-gradient(ellipse at 50% 70%, rgba(180, 40, 200, 0.5) 0%, rgba(60, 10, 120, 0.4) 50%, #0a0a0f 100%);
}

.design-project--revel .design-project-name {
  color: #c9a0ff;
}

.design-project--revel .design-project-type {
  color: rgba(160, 130, 220, 0.6);
}

.design-project--revel .design-project-blurb {
  color: rgba(200, 190, 230, 0.7);
}

.design-project--revel .detail-chip {
  border-color: rgba(138, 43, 226, 0.35);
  color: rgba(180, 160, 230, 0.6);
}

.design-project--revel .design-project-cta {
  color: #e8622b;
}

.design-project--revel .design-project-cta::after {
  background: #e8622b;
}

/* Revel mockup — larger image */
.design-project--revel .screen-mockup-img--side {
  max-height: none;
  max-width: 110%;
  transform: scale(1.15);
  transform-origin: center center;
}

/* ---- Fractal: blue-to-white gradient, fintech ---- */
.design-project--fractal {
  background: linear-gradient(180deg, #1a2a4a 0%, #e8edf2 60%, #f5f5f5 100%);
  color: #1a1a2e;
}

/* --- Fractal Hero: full-bleed image with left-aligned content (mirrors Settled) --- */
.fractal-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}

.fractal-hero-bg {
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 960px;
  height: auto;
  object-fit: contain;
  z-index: 0;
}

.fractal-hero-content {
  position: relative;
  z-index: 1;
  max-width: 340px;
  padding: 2rem 2.5rem;
  margin: 0 3vw 6vh 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(26, 42, 74, 0.08);
}

.fractal-hero-content .design-project-header {
  text-align: left;
  margin-bottom: 1rem;
}

.fractal-hero-content .design-project-name {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #1a2a4a;
}

.fractal-hero-content .design-project-type {
  color: rgba(26, 42, 74, 0.5);
}

.fractal-hero-content .design-project-blurb {
  text-align: left;
  font-size: 0.95rem;
  color: rgba(26, 26, 46, 0.65);
}

.fractal-hero-content .design-project-details {
  justify-content: flex-start;
}

.fractal-hero-content .detail-chip {
  border-color: rgba(26, 42, 74, 0.2);
  color: rgba(26, 42, 74, 0.5);
}

.fractal-hero-content .design-project-cta {
  align-self: flex-start;
  color: #e8622b;
}

.fractal-hero-content .design-project-cta::after {
  background: #e8622b;
}

@media (max-width: 768px) {
  .fractal-hero {
    min-height: auto;
  }

  .fractal-hero-bg {
    position: relative;
    inset: auto;
    height: auto;
    transform: none;
    top: auto;
    left: auto;
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }

  .fractal-hero {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }

  .fractal-hero-content {
    padding: 2rem 1.5rem;
    margin: 0;
    max-width: none;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: none;
    border-radius: 0;
    border: none;
  }
}

.screen-placeholder--fractal {
  background: linear-gradient(160deg, #ffffff 0%, #e8edf2 30%, #1a2a4a 80%, #0d3b2e 100%);
}

.screen-placeholder--fractal .screen-label {
  color: rgba(26, 42, 74, 0.5);
}

.design-project--fractal .design-project-name {
  color: #1a2a4a;
}

.design-project--fractal .design-project-type {
  color: rgba(26, 42, 74, 0.5);
}

.design-project--fractal .design-project-blurb {
  color: rgba(26, 26, 46, 0.65);
}

.design-project--fractal .detail-chip {
  border-color: rgba(26, 42, 74, 0.2);
  color: rgba(26, 42, 74, 0.5);
}

.design-project--fractal .design-project-cta {
  color: #e8622b;
}

.design-project--fractal .design-project-cta::after {
  background: #e8622b;
}

/* ---- Settled: lux creamy beige, light yellow accent ---- */
.design-project--settled {
  background: #f0ebe0;
  color: #2a2520;
}

/* --- Settled Hero: full-bleed hands image with right-aligned content --- */
.settled-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}

.settled-hero-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -15%;
  width: 115%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  z-index: 0;
}

.settled-hero-content {
  position: relative;
  z-index: 1;
  max-width: 320px;
  padding: 2rem 2.5rem;
  margin: 0 3vw 6vh 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(240, 235, 224, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(42, 37, 32, 0.08);
}

.settled-hero-content .design-project-header {
  text-align: right;
  margin-bottom: 1rem;
}

.settled-hero-content .design-project-name {
  font-size: clamp(2rem, 4vw, 3rem);
}

.settled-hero-content .design-project-blurb {
  text-align: right;
  font-size: 0.95rem;
}

.settled-hero-content .design-project-details {
  justify-content: flex-end;
}

.settled-hero-content .design-project-cta {
  align-self: flex-end;
}

@media (max-width: 768px) {
  .settled-hero {
    min-height: auto;
  }

  .settled-hero-bg {
    position: relative;
    inset: auto;
    height: auto;
  }

  .settled-hero {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }

  .settled-hero-content {
    padding: 2rem 1.5rem;
    margin: 0;
    max-width: none;
    text-align: left;
    align-items: flex-start;
    background: rgba(240, 235, 224, 0.9);
    backdrop-filter: none;
    border-radius: 0;
    border: none;
  }

  .settled-hero-content .design-project-header {
    text-align: left;
  }

  .settled-hero-content .design-project-blurb {
    text-align: left;
  }

  .settled-hero-content .design-project-details {
    justify-content: flex-start;
  }

  .settled-hero-content .design-project-cta {
    align-self: flex-start;
  }
}

.screen-placeholder--settled {
  background: linear-gradient(160deg, #f5f0e8 0%, #e8dcc8 40%, #c8b898 100%);
}

.screen-placeholder--settled .screen-label {
  color: rgba(42, 37, 32, 0.4);
}

.design-project--settled .design-project-name {
  color: #2a2520;
}

.design-project--settled .design-project-type {
  color: rgba(42, 37, 32, 0.45);
}

.design-project--settled .design-project-blurb {
  color: rgba(42, 37, 32, 0.6);
}

.design-project--settled .detail-chip {
  border-color: rgba(42, 37, 32, 0.15);
  color: rgba(42, 37, 32, 0.45);
}

.design-project--settled .design-project-cta {
  color: #e8622b;
}

.design-project--settled .design-project-cta::after {
  background: #e8622b;
}

/* --- Project Info (bottom portion) --- */
.design-project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.design-project-header {
  margin-bottom: 1.25rem;
}

.design-project-name {
  font-family: var(--font-serif-display, 'DM Serif Display', 'Georgia', serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.design-project-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
}

.design-project-blurb {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.design-project-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.detail-chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  color: rgba(255, 255, 255, 0.5);
}

.design-project-cta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e8622b;
  display: inline-block;
  padding: 0.75rem 0;
  position: relative;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.design-project-cta::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  width: 0;
  height: 1px;
  background: #e8622b;
  transition: width 0.4s var(--ease-out);
}

.design-project-cta:hover::after {
  width: 100%;
}

/* --- Scroll Reveal for design sections --- */
.design-project .screen-mock {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.design-project.in-view .screen-mock {
  opacity: 1;
  transform: translateY(0);
}

.design-project.in-view .screen-mock:nth-child(1) { transition-delay: 0s; }
.design-project.in-view .screen-mock:nth-child(2) { transition-delay: 0.12s; }
.design-project.in-view .screen-mock:nth-child(3) { transition-delay: 0.24s; }

.design-project-info {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s var(--ease-out) 0.3s;
}

.design-project.in-view .design-project-info {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .design-project--horizontal {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .design-project--horizontal .design-project-info {
    flex: none;
    padding: 2rem 1.5rem;
  }

  .design-project-screens--side {
    padding: 1rem 1.5rem 3rem;
  }

  .screen-mockup-img--side {
    max-height: 50vh;
  }

  .design-project-screens {
    padding: 5rem 1.5rem 2rem;
  }

  .screen-gallery {
    gap: 0.75rem;
  }

  .screen-mock {
    flex: 0 1 160px;
    border-radius: 16px;
  }

  .screen-mock:nth-child(2) {
    flex: 0 1 170px;
  }

  .design-project-info {
    padding: 2rem 1.5rem 3rem;
  }

  .design-project-name {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .design-project-blurb {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .screen-gallery {
    gap: 0.5rem;
  }

  .screen-mock {
    flex: 0 1 120px;
    border-radius: 12px;
  }

  .screen-mock:nth-child(2) {
    flex: 0 1 130px;
  }
}
