@import url("alebrije.css");

:root {
  --job-red: #f2471c;
  --job-yellow: #f7d642;
  --blue: #f2471c;
  --blue-soft: #fff0e9;
}

.project-main { width: min(100%, 1080px); }
.case-section { padding: clamp(2rem, 8vw, 2px) 0; }
.project-hero { padding-bottom: clamp(2rem, 1vw, 1rem); }
.project-hero h1 { max-width: 10ch; }
.project-dot { background: var(--job-red); box-shadow: 0 0 0 4px rgba(242, 71, 28, 0.14); }
.guide-nav a.is-active, .project-footer a:hover { color: var(--job-red); }

.window-card { margin: 0; overflow: hidden; border: 1px solid rgba(24, 24, 23, 0.16); border-radius: 20px; background: #fff; box-shadow: 0 18px 46px rgba(36, 31, 22, 0.1); }
.window-card .window-bar { border-bottom: 1px solid rgba(24, 24, 23, 0.1); }
.hero-window { margin-bottom: 2.5rem; background: #f4df4f; }
.hero-window .zoom-trigger { padding: clamp(0.8rem, 2vw, 1.25rem); }
.hero-window img { width: 100%; display: block; border-radius: 12px; image-rendering: auto; }
.overview-copy { align-items: flex-start; }
.overview-copy p { font-size: clamp(1.12rem, 2vw, 1.55rem); line-height: 1.58; }
.summary-card { background: var(--job-yellow); transform: rotate(2deg); }

.north-star { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid rgba(24, 24, 23, 0.12); border-radius: 24px; background: var(--ink); color: white; }
.north-star span { color: #ffb395; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; }
.north-star p { max-width: 28ch; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3.5vw, 3rem); line-height: 1.15; }
.before-pair { margin-top: clamp(2rem, 5vw, 4rem); }

.media-card, .wide-media, .final-card {
  height: fit-content;
  align-self: start;
  background: #f4f2eb;
}

.media-card .zoom-trigger,
.wide-media .zoom-trigger,
.final-card .zoom-trigger {
  height: auto;
  line-height: 0;
}

.media-card img,
.wide-media img,
.final-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  display: block;
  padding: 0;
  object-fit: contain;
  image-rendering: auto;
}
.media-card figcaption, .wide-media figcaption, .final-card figcaption { padding: 1rem 1.25rem 1.15rem; border-top: 1px solid rgba(24, 24, 23, 0.1); background: rgba(255, 255, 252, 0.96); color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(2.5rem, 5vw, 4rem); overflow: hidden; border: 1px solid rgba(24, 24, 23, 0.12); border-radius: 22px; background: rgba(24, 24, 23, 0.12); }
.stats-row div { display: flex; flex-direction: column; gap: 0.65rem; min-height: 155px; justify-content: center; padding: 1.5rem; background: rgba(255, 255, 252, 0.96); }
.stats-row strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 400; line-height: 0.9; }
.stats-row span { color: var(--muted); font-size: 0.9rem; line-height: 1.35; }

.task-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.task-list article { min-height: 210px; padding: 1.5rem; border: 1px solid rgba(24, 24, 23, 0.12); border-radius: 20px; background: #fff; }
.task-list article:nth-child(1) { background: #fff1bb; }
.task-list article:nth-child(2) { background: #dfeaf4; }
.task-list article:nth-child(3) { background: #f5d9d1; }
.task-list span, .finding-number { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.08em; }
.task-list h3 { margin: 2rem 0 0.65rem; font-size: 1.15rem; }
.task-list p { margin: 0; color: #4f4f4b; font-size: 0.92rem; line-height: 1.5; }
.wide-media { margin-top: clamp(2rem, 5vw, 4rem); }

.finding-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.finding-card { min-height: 330px; padding: clamp(1.4rem, 3vw, 2.1rem); border: 1px solid rgba(24, 24, 23, 0.13); border-radius: 26px; box-shadow: 0 14px 34px rgba(36, 31, 22, 0.06); }
.finding-card--yellow { background: #f8db4c; transform: rotate(-1.5deg); }
.finding-card--blue { background: #b9d4e6; transform: translateY(1.5rem); }
.finding-card--red { background: #f48362; transform: rotate(1.5deg); }
.finding-card h3 { margin: 4.25rem 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 400; line-height: 1.12; }
.finding-card p { margin: 0; line-height: 1.58; }

blockquote { max-width: 800px; margin: clamp(4rem, 8vw, 7rem) auto 0; padding: 0; border: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.75rem, 4.2vw, 3.75rem); font-style: italic; line-height: 1.12; text-align: center; }
blockquote p { margin: 0; }

.decision-list { margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.decision-list li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 1rem; padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.decision-list > li > span { color: var(--job-red); font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.08em; }
.decision-list h3 { margin: 0 0 0.55rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 400; }
.decision-list p { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.55; }

.process-gallery { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1.25rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.process-gallery .media-card { margin: 0; }
.process-gallery .media-card:nth-child(2) { transform: translateY(3rem); }

.final-showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.final-card--wide { grid-column: 1 / -1; }
.final-card img { min-height: 0; max-height: none; }
.final-card strong { color: var(--ink); }
.prototype-link { width: fit-content; display: flex; align-items: center; gap: 0.8rem; margin: 2.5rem auto 0; padding: 0.85rem 1.2rem; border: 1px solid var(--ink); border-radius: 999px; background: rgba(255,255,252,0.88); font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.05em; text-decoration: none; transition: background 160ms ease, color 160ms ease, transform 160ms ease; }
.prototype-link:hover { background: var(--ink); color: white; transform: translateY(-2px); }
.prototype-link:focus-visible { outline: 3px solid var(--job-red); outline-offset: 3px; }

.reflection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(2.5rem, 6vw, 4.5rem); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--border); }
.reflection-grid article { min-height: 270px; padding: clamp(1.5rem, 3vw, 2.4rem); background: rgba(255,255,252,0.96); }
.reflection-grid h3 { margin: 0 0 1.25rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 400; line-height: 1.15; }
.reflection-grid p { margin: 0; color: var(--muted); line-height: 1.65; }
.lightbox__image { image-rendering: auto; }

@media (max-width: 840px) {
  .stats-row, .task-list, .finding-grid, .reflection-grid { grid-template-columns: 1fr; }
  .stats-row div { min-height: 125px; }
  .task-list article { min-height: 180px; }
  .finding-card { min-height: 250px; transform: none; }
  .finding-card h3 { margin-top: 2.75rem; }
  .process-gallery { grid-template-columns: 1fr; }
  .process-gallery .media-card:nth-child(2) { transform: none; }
}

@media (max-width: 680px) {
  .case-section { padding: 4.5rem 0; }
  .north-star { grid-template-columns: 1fr; }
  .final-showcase { grid-template-columns: 1fr; }
  .final-card--wide { grid-column: auto; }
  .final-card img { min-height: 0; }
  .decision-list li { grid-template-columns: 42px minmax(0, 1fr); }
  .window-bar p { display: block; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
