/* ── PROJECT PAGE STYLES ── */

.back-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 48px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 1;
}

/* HERO */

.project-hero {
  padding: 60px 8vw 80px;
}

.project-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.project-hero-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: center;
}

.project-logo-wrap {
  background: #111;
  border-radius: 32px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.project-logo-svg {
  width: 100%;
  height: auto;
  filter: invert(1);
}

/* light variant — shows the actual app logo on a white card */
.project-logo-wrap--light {
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.project-logo-img {
  width: 100%;
  max-width: 190px;
  height: auto;
}

.project-eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 12px;
}

.project-title {
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
}

.project-tagline {
  font-size: 1.2rem;
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.8;
}

/* Thales: full-width text hero (no side card) */
.project-hero-text--full {
  max-width: 820px;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 24px;
}

.project-section--flush {
  padding-top: 0;
}

/* deck cover banner */
.deck-banner {
  margin: 0;
}

.deck-banner img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  display: block;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.deck-banner img:hover {
  transform: scale(1.01);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.deck-banner figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.55;
  text-align: center;
}

.deck-banner figcaption a {
  color: var(--green);
  text-decoration: underline;
}

/* three-up card grid (personas, etc.) */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 860px) {
  .trio {
    grid-template-columns: 1fr;
  }
}

/* OUTCOME stats */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  margin: 36px 0 12px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #7fc97a;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.6;
}

/* HERO CTAs */

.project-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-cta--primary {
  background: var(--green);
  color: #fff;
}

.project-cta--secondary {
  background: #111;
  color: #fff;
}

.project-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.project-meta-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

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

.meta-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 700;
}

/* SECTIONS */

.project-section {
  padding: 80px 8vw;
}

.project-section--dark {
  background: #111;
  color: #fff;
}

.project-section--tint {
  background: rgba(127, 156, 120, 0.08);
}

.project-container {
  max-width: 1100px;
  margin: 0 auto;
}

.project-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.project-section--dark .section-label {
  color: #7fc97a;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
}

.section-body {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 780px;
  opacity: 0.8;
  margin-bottom: 16px;
}

.project-section--dark .section-body {
  opacity: 0.75;
}

/* BUNNY GALLERY */

.bunny-gallery {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.bunny-card {
  flex: 1 1 160px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 20px 20px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.bunny-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
}

.bunny-card img {
  width: 100%;
  max-width: 140px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 12px;
}

.bunny-card p {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* TAG CLOUD */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.tag {
  background: white;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: default;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}

.tag:hover {
  transform: scale(1.08);
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 6px 16px rgba(127, 156, 120, 0.35);
}

/* STACK LIST */

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.stack-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  gap: 16px;
}

.stack-name {
  font-weight: 800;
  font-size: 1rem;
}

.stack-desc {
  font-size: 0.85rem;
  opacity: 0.5;
  text-align: right;
}

/* FEATURES GRID */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.7;
}

/* SCREENSHOTS */

.screens-section {
  padding: 60px 0 60px 8vw;
  overflow: hidden;
}

.screens-section--dark {
  background: #111;
  color: #fff;
}

.screens-section--dark .screens-group-label {
  color: #7fc97a;
}

.screens-group-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 28px;
  padding-right: 8vw;
}

.screens-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 24px;
  padding-right: 8vw;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.screens-scroll--centered {
  justify-content: center;
  overflow-x: visible;
  flex-wrap: wrap;
}

.screen-item {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screen-item img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  display: block;
  border: 1px solid rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screen-item img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.screens-section--dark .screen-item img {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.screen-item figcaption {
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.55;
  text-align: center;
  padding: 0 4px;
}

/* App Store marketing screenshots already include their own backgrounds */
.screen-item--marketing {
  width: 248px;
}

.screen-item--marketing img {
  border: none;
  border-radius: 22px;
}

/* product section — copy left, addison icon right */
.product-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}

.product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-visual img {
  width: 100%;
  max-width: 380px;
  height: auto;
}

@media (max-width: 860px) {
  .product-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-visual {
    max-width: 280px;
  }
}

/* key decision — insight / decision / tradeoff */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.decision-tip {
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
}

.decision-step {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

/* flip cards */
.flip-card {
  height: 290px;
  perspective: 1200px;
  cursor: pointer;
  border-radius: 20px;
}

.flip-card:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.flip-card-front {
  background: var(--green);
  color: #fff;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.flip-card-front .decision-step {
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
}

.flip-hint {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  padding: 7px 14px;
  border-radius: 999px;
}

.flip-card-back {
  background: #fff;
  color: var(--text);
  transform: rotateY(180deg);
  border-top: 4px solid var(--green);
  justify-content: center;
}

.flip-card-back p {
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.85;
}

@media (max-width: 860px) {
  .decision-grid {
    grid-template-columns: 1fr;
  }
}

/* two-column skill groups */
.skills-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.skills-cols .section-label {
  margin-bottom: 14px;
}

/* skills with the team photo in the middle column */
.skills-cols--3 {
  grid-template-columns: 1fr 0.85fr 1fr;
  align-items: center;
}

.skills-team {
  margin: 0;
  text-align: center;
}

.skills-team img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.14);
  display: block;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.skills-team img:hover {
  transform: scale(1.04);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.skills-team figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.6;
}

@media (max-width: 860px) {
  .skills-cols,
  .skills-cols--3 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* RESPONSIVE */

@media (max-width: 860px) {
  .project-hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-logo-wrap {
    max-width: 200px;
  }

  .project-two-col {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .bunny-gallery {
    gap: 16px;
  }

  .bunny-card {
    flex: 1 1 130px;
  }

  .screen-item {
    width: 180px;
  }

  .screens-scroll--centered {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

/* ============================================================
   PROCESS GRID + FINAL GALLERY (Cubos and future builds)
   ============================================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

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

.process-figure {
  margin: 0;
}

.process-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  display: block;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background: #f3f3f0;
}

.process-figure img:hover {
  transform: scale(1.015);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.process-figure figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0.6;
}

.process-figure--contain img {
  object-fit: contain;
}

/* full-bleed-ish final gallery */
.final-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.final-gallery figure {
  margin: 0;
}

.final-gallery img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  display: block;
}

.final-gallery figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.6;
  text-align: center;
}

@media (max-width: 860px) {
  .process-grid,
  .process-grid--two,
  .final-gallery {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PARTNER LOGO LOCKUP + CONFIDENTIAL NOTE (Field Echo)
   ============================================================ */

.partner-lockup {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 8px 0 32px;
}

.partner-lockup .partner-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
}

.partner-lockup img {
  height: 30px;
  width: auto;
  display: block;
}

.partner-lockup .partner-divider {
  width: 1px;
  height: 26px;
  background: rgba(0, 0, 0, 0.15);
}

.confidential-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 24px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  background: rgba(127, 156, 120, 0.06);
  font-size: 0.92rem;
  line-height: 1.55;
}

.confidential-note .lock-icon {
  font-size: 1.2rem;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .partner-lockup { gap: 18px; }
  .partner-lockup img { height: 24px; }
}

/* back / next project navigation row */
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.project-nav .back-link { margin-bottom: 0; }

.next-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.next-link:hover { opacity: 1; transform: translateX(3px); }

/* ============================================================
   CROSS-APP DATA FLOW — shared section across the connected apps
   ============================================================ */
.dataflow {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.dataflow-node {
  flex: 1 1 180px;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dataflow-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.dataflow-node .df-name { font-weight: 800; font-size: 1.15rem; }
.dataflow-node .df-role { font-size: 0.82rem; opacity: 0.6; }
.dataflow-node .df-note { font-size: 0.8rem; margin-top: 6px; opacity: 0.7; }

.dataflow-node.is-current {
  border-color: var(--green);
  background: #f4f8f2;
  box-shadow: 0 10px 26px rgba(127, 156, 120, 0.22);
}

.dataflow-arrow {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 92px;
}

.dataflow-arrow .df-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
  text-align: center;
}

.dataflow-arrow .df-line { font-size: 1.4rem; opacity: 0.45; line-height: 1; }

.project-section--dark .dataflow-node {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.project-section--dark .dataflow-node.is-current {
  background: rgba(127, 156, 120, 0.22);
  border-color: var(--green);
}
.project-section--dark .dataflow-arrow .df-label,
.project-section--dark .dataflow-arrow .df-line { color: #fff; }

@media (max-width: 760px) {
  .dataflow { flex-direction: column; }
  .dataflow-arrow { flex-direction: row; min-width: 0; gap: 8px; }
  .dataflow-arrow .df-line { transform: rotate(90deg); }
}

/* ============================================================
   IMAGE + FEATURE PAIR CARDS — screenshot paired with its feature
   so a recruiter reads the screen and a bold one-liner, not a caption
   ============================================================ */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 40px;
}

.shot-card {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16);
}

.shot-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  display: block;
  background: #f4f4f2;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.shot-card figcaption { padding: 18px 22px 22px; }
.shot-card figcaption h3 { font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; }
.shot-card figcaption p { font-size: 0.95rem; line-height: 1.5; opacity: 0.72; margin: 0; }

/* compact strip for features that don't have a screenshot yet */
.also-inside {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.also-inside .also-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.also-inside ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
}

.also-inside li {
  font-size: 0.95rem;
  opacity: 0.82;
  padding-left: 18px;
  position: relative;
}

.also-inside li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 860px) {
  .shot-grid,
  .also-inside ul { grid-template-columns: 1fr; }
}
