/* ----------
   Vai Jay — Portfolio Styles
   vibe: simple | sharp | modern | colorful (earthy muted tones)
---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

/* THEME TOKENS */
:root {
  --charcoal: #1E1E1E;
  --ink: #222222;
  --sage: #CFE7BA;
  --moss: #6E8B74;
  --sand: #F3E9DD;
  --clay: #D7B49E;
  --sky: #D9E7F1;
  --cream: #ffffff;
  --olive: #7A8D5A;
  --stone: #434343;

  --bg: var(--cream);
  --text: var(--ink);
  --muted-text: var(--stone);
  --accent: var(--sage);
  --accent-2: var(--clay);
  --accent-3: var(--sky);

  --nav-h: 88px;
}

/* BASE */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
  'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 36px 0;
}

/* tighter sections when needed */
.section.section-tight {
  padding-top: 20px;
  padding-bottom: 20px;
}

.section h2 {
  font-family: 'Outfit', system-ui;
  font-size: clamp(28px, 3.2vw, 36px);
  margin: 0 0 16px;
}

/* TYPOGRAPHY */
h1 {
  font-family: 'Outfit', system-ui;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  margin: 0 0 8px;
}

.intro {
  color: var(--muted-text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.sub {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text);
  max-width: 70ch;
}

.sub.small {
  font-size: 13px;
}

.mini {
  font-size: 14px;
  color: var(--muted-text);
}

.highlight {
  display: inline-block;
  background: var(--accent);
  color: var(--charcoal);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
}

/* BUTTONS / TAGS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--charcoal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.tag-row,
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
}

.tag {
  background: var(--sage);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(13px, 1.2vw, 16px);
  color: var(--charcoal);
}

/* NAVBAR */
nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand img,
.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

nav a:hover {
  background: var(--sand);
  transform: translateY(-1px);
}

/* FOOTER */
.footer {
  padding: 40px 0;
  border-top: 1px solid color-mix(in oklab, var(--stone), white 70%);
  color: var(--muted-text);
  text-align: center;
}

/* GENERIC GRID / CARD */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid color-mix(in oklab, var(--stone), white 70%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
}

.card .banner {
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: var(--sand);
  background-size: cover;
  background-position: center;
  margin-bottom: 14px;
}

.card h3 {
  margin: 10px 0 6px;
  font-size: 22px;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted-text);
}

/* PHOTO CARDS (case study images, artifacts, etc.) */
.photo-card {
  margin: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--stone), white 70%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.photo-card img,
.photo-card iframe {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 0;
}

/* first section top padding on subpages */
.section:first-of-type {
  padding-top: 40px;
}

/* GENERIC TWO-COLUMN LAYOUT */
.two-col {
  display: grid;
  gap: 24px;
  align-items: flex-start;
  margin-top: 24px;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
  }
}

/* SPLIT LAYOUT (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.split .bio {
  background: #fff;
  border: 1px solid color-mix(in oklab, var(--stone), white 70%);
  border-radius: 18px;
  padding: 24px;
}

/* HOME HERO (landing) */
.intro-section {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.intro-section-inner {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
}

.intro-kicker {
  font-size: clamp(14px, 1.4vw, 20px);
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--muted-text);
  margin-bottom: 26px;
}

.hero-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 3vw, 36px);
  margin-bottom: 22px;
}

.intro-avatar {
  width: clamp(200px, 12vw, 150px);
  height: clamp(200px, 12vw, 150px);
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
}

.hero-title-left {
  font-family: 'Outfit', system-ui;
  font-size: clamp(58px, 8vw, 108px);
  line-height: 1;
  font-weight: 800;
  margin: 0;
  text-align: left;
  letter-spacing: -0.02em;
}

/* FEATURED WORK (home cards) */
.featured-section {
  padding-top: clamp(30px, 4vw, 50px);
}

.featured-heading {
  font-family: 'Outfit', system-ui;
  font-size: clamp(28px, 3.4vw, 36px);
  margin: 0 0 20px;
}

.featured-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 22px);
}

.feature-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(18px, 2.8vw, 28px);
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 22px;
  border: 1px solid color-mix(in oklab, var(--stone), white 70%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.feature-card.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.feature-card.reverse .feature-media {
  order: 2;
}

.feature-card.reverse .feature-content {
  order: 1;
}

.feature-sand {
  background: color-mix(in oklab, var(--sand), white 35%);
}

.feature-sky {
  background: color-mix(in oklab, var(--sky), white 40%);
}

.feature-media {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.feature-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  object-fit: cover;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-title {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0;
}

.feature-desc {
  margin: 0;
  color: var(--muted-text);
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 55ch;
}

.feature-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

/* ABOUT PAGE */
.about-hero {
  padding-top: 64px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.hello {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--muted-text);
}

.about-title {
  margin: 0 0 16px;
  font-family: 'Outfit', system-ui;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.about-name {
  color: var(--charcoal);
}

.about-lead {
  font-size: clamp(16px, 1.6vw, 18px);
  margin: 0 0 10px;
}

.about-body {
  color: var(--stone);
  margin: 0 0 12px;
}

.about-links {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}

.about-links a {
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--sand);
  color: var(--charcoal);
  border: 1px solid color-mix(in oklab, var(--stone), white 70%);
}

.about-links a:hover {
  background: color-mix(in oklab, var(--sand), white 12%);
}

/* ========== FLOWMERSION CASE STUDY ========== */

/* Case hero layout */
.case-hero {
  padding-top: 80px;
}

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.case-hero-media .photo-card img {
  aspect-ratio: 16 / 9;
}

/* "What I owned" pill list */
.case-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.case-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--stone), white 70%);
  font-size: 12px;
}

/* PM summary cards under intro */
.pm-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.pm-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid color-mix(in oklab, var(--stone), #fff 60%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.pm-card h4 {
  margin: 0 0 6px;
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.pm-card p {
  margin: 0;
  color: var(--muted-text);
  line-height: 1.4;
  font-size: 0.95rem;
}

/* PM callout block */
.pm-callout {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 16px;
  background: color-mix(in oklab, var(--sage), #fff 70%);
  border: 1px solid color-mix(in oklab, var(--sage), #fff 40%);
}

.pm-callout h4 {
  margin: 0 0 6px;
}

.pm-callout ul {
  margin: 0;
  padding-left: 18px;
}

.pm-callout li {
  margin-bottom: 4px;
  font-size: 0.94rem;
}

/* Challenge + goals band */
.challenge-band {
  margin-top: 8px;
  padding: 24px 24px 28px;
  border-radius: 24px;
  background: #f9fafb;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.challenge-band h2 {
  margin-top: 0;
}

/* Research insight tiles */
.evidence-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.evidence-card {
  background: #fff;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid color-mix(in oklab, var(--stone), #fff 60%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.evidence-card h4 {
  margin: 0 0 6px;
  font-weight: 700;
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 0.95rem;
}

.evidence-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted-text);
}

/* Journey row (Learn → Practice → Improve) */
.journey-row {
  margin-top: 28px;
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.journey-step {
  flex: 1 1 180px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid color-mix(in oklab, var(--stone), #fff 60%);
}

.journey-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0.5;
}

/* Product journey vertical timeline (if used) */
.product-journey {
  margin-top: 32px;
  border-left: 3px solid var(--sage);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pj-step {
  position: relative;
}

.pj-dot {
  width: 14px;
  height: 14px;
  background: var(--sage);
  border-radius: 50%;
  position: absolute;
  left: -31px;
  top: 4px;
}

.pj-step p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Case galleries & artifacts */
.case-gallery-grid,
.case-artifacts-grid,
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.case-gallery-grid .photo-card img,
.case-artifacts-grid .photo-card img,
.snapshot-grid .photo-card img {
  aspect-ratio: 16 / 10;
}

.caption {
  padding: 12px 16px 14px;
  font-size: 13px;
  color: var(--muted-text);
}

/* TIMELINE (sprints) */
.timeline {
  position: relative;
  margin-top: 24px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: color-mix(in srgb, var(--stone) 18%, transparent);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: 2px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent-3);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-3) 35%, transparent);
}

.timeline-content {
  padding-left: 24px;
}

.timeline-content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.timeline-content p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted-text);
  max-width: 60ch;
}

.timeline .photo-card {
  margin-top: 12px;
  max-width: 420px;
}

/* HARDWARE SECTION */
.hardware-block {
  align-items: flex-start;
}

.hardware-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 540px;
}

.unified-hardware-caption {
  font-size: 14px;
  text-align: center;
  margin-top: 8px;
  color: var(--muted-text);
}

/* ---------- Impact / Learnings / Roadmap cards ---------- */

/* shared grid layout */
.impact-grid,
.roadmap-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.impact-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.impact-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.impact-card p {
  font-size: 14px;
  line-height: 1.5;
}

/* learnings just a touch tighter */
.learnings-grid .impact-card {
  padding-top: 16px;
  padding-bottom: 16px;
}

/* roadmap cards use dark styling */
.roadmap-card {
  background: #0f172a;
  color: #f9fafb;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.roadmap-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.roadmap-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #e5e7eb;
}

.roadmap-stage {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #93c5fd;
  margin-bottom: 6px;
}

/* ---------- Case intro meta ---------- */

.summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.summary-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f5f5ff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* meta grid under the summary cards */
.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

/* ERROR PAGE */
.error-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  background: var(--bg);
  padding: 4rem 1.5rem;
}

.error-hero h1 {
  font-family: 'Outfit', system-ui;
  font-size: clamp(60px, 10vw, 100px);
  font-weight: 800;
  margin: 0;
  color: var(--charcoal);
  line-height: 1;
}

.error-hero p {
  max-width: 60ch;
  margin: 1rem auto 2rem;
  color: var(--muted-text);
  font-size: 1.2rem;
}

.error-hero a {
  display: inline-block;
  background: var(--charcoal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.error-hero a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.15);
}

.error-emoji {
  font-size: clamp(60px, 10vw, 90px);
  margin-bottom: 1rem;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 3000;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
  cursor: zoom-out;
}

/* RESPONSIVE TWEAKS */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .photo-card {
    order: -1;
  }
}

@media (max-width: 900px) {
  .feature-card,
  .feature-card.reverse {
    grid-template-columns: 1fr;
  }

  .feature-card.reverse .feature-media,
  .feature-card.reverse .feature-content {
    order: initial;
  }

  .two-col {
    margin-top: 20px;
  }

}

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

  .case-hero {
    padding-top: 80px;
  }

  .case-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
  }


  .hero-head {
    flex-direction: column;
    gap: 14px;
  }

  .hero-title-left {
    text-align: center;
  }
}

/* Center the hero image, keep it nicely sized */
.case-hero-media {
  max-width: 760px;
  margin: 0 auto 28px;
}

/* Keep copy aligned to the same column and not super wide */
.case-hero-copy {
  max-width: 780px;
  margin: 0 auto;
}
