/* ============================================================
   Thaleria — Flagship project detail page
   Route: /projects/[slug]
   Ported as-is from Claude Design "Full website WIP".
   Reuses .tl-section/.tl-section-head/.tl-eyebrow/.tl-accent from site.css
   and .tl-svc-cta from services.css; .tl-ph from placeholders.css.
   ============================================================ */

/* --- Hero ---------------------------------------------------------- */
/* Full-width banner: art authored for this band (motif right, quiet ground left),
   the copy set over it, the client logo plated in the top corner. */
.tl-proj-hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-900);
  color: var(--fg-on-dark);
}
.tl-proj-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* <picture> is inline by default, so the img's height: 100% would resolve
   against an auto-height parent and collapse the backdrop. */
.tl-proj-hero__bg picture { display: block; width: 100%; height: 100%; }
.tl-proj-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Deep on the left so the copy always has a solid ground, opening up towards
   the right where the artwork's wave motif reads. */
.tl-proj-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--navy-900) 8%, rgba(11, 21, 36, 0.68) 42%, rgba(11, 21, 36, 0.10) 100%),
    linear-gradient(0deg, rgba(11, 21, 36, 0.42), transparent 60%);
}
.tl-proj-hero__inner {
  min-height: clamp(440px, 40vw, 560px);
  display: flex;
  flex-direction: column;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

/* Breadcrumb on the left, plated client logo on the right. */
.tl-proj-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.tl-proj-hero__breadcrumb { margin-bottom: 0; }
.tl-proj-hero__breadcrumb,
.tl-proj-hero__breadcrumb a,
.tl-proj-hero__breadcrumb span { color: var(--neutral-300); }
.tl-proj-hero__breadcrumb a:hover { color: var(--fg-on-dark); }
/* Plated so dark client marks stay legible on the band; margin-left keeps it
   right-aligned once the row wraps on narrow screens. */
.tl-proj-hero__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  background: var(--neutral-0);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  box-shadow: var(--shadow-2);
}
.tl-proj-hero__logo-img { display: block; height: 26px; width: auto; max-width: 180px; }

.tl-proj-hero__copy { margin-top: auto; max-width: 46rem; min-width: 0; }
.tl-proj-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--neutral-300);
  font-weight: var(--weight-semibold);
}
.tl-proj-hero__rule {
  width: 18px;
  height: 2px;
  background: var(--fg-accent);
  border-radius: 2px;
}
.tl-proj-hero__client {
  margin: var(--space-5) 0 var(--space-3);
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--neutral-0);
  letter-spacing: -0.005em;
}
.tl-proj-hero__title {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  font-weight: var(--weight-semibold);
  margin: 0;
  color: var(--fg-on-dark);
  text-wrap: balance;
}
.tl-proj-hero__lede {
  margin-top: var(--space-5);
  max-width: 640px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--neutral-200);
  font-weight: var(--weight-regular);
}

@media (max-width: 720px) {
  .tl-proj-hero__inner { min-height: 420px; }
  /* Narrow screens: the copy spans the full width, so the scrim has to darken
     vertically instead of from the left. */
  .tl-proj-hero__scrim {
    background:
      linear-gradient(180deg, rgba(11, 21, 36, 0.55) 0%, rgba(11, 21, 36, 0.78) 45%, rgba(11, 21, 36, 0.93) 100%);
  }
  .tl-proj-hero__logo-img { height: 22px; }
}

.tl-proj-other__cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Facts strip --------------------------------------------------- */
.tl-proj-facts {
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  background: var(--surface-card);
}
.tl-proj-facts__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
}
@media (max-width: 980px) {
  .tl-proj-facts__row { grid-template-columns: repeat(2, 1fr); }
  .tl-proj-facts__item:nth-child(n+3) { border-top: 1px solid var(--border-1); }
}
@media (max-width: 560px) {
  .tl-proj-facts__row { grid-template-columns: 1fr; }
  .tl-proj-facts__item:nth-child(n+2) { border-top: 1px solid var(--border-1); }
  .tl-proj-facts__item:nth-child(n+3) { border-top: 1px solid var(--border-1); }
  .tl-proj-facts__item + .tl-proj-facts__item { border-left: 0; }
}
.tl-proj-facts__item {
  padding: var(--space-5) var(--space-6);
  border-left: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tl-proj-facts__item:first-child { border-left: 0; }
.tl-proj-facts__item dt {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: var(--weight-semibold);
}
.tl-proj-facts__item dd {
  margin: 0;
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--fg-1);
  line-height: 1.4;
}

/* --- The challenge ------------------------------------------------- */
.tl-proj-challenge {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--space-10);
  align-items: start;
}
@media (max-width: 920px) {
  .tl-proj-challenge { grid-template-columns: 1fr; gap: var(--space-5); }
}
.tl-proj-challenge__head { position: sticky; top: 110px; }
@media (max-width: 920px) { .tl-proj-challenge__head { position: static; } }
.tl-proj-challenge__head h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-weight: var(--weight-semibold);
  margin: var(--space-4) 0 0;
  text-wrap: balance;
}
.tl-proj-challenge__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.tl-proj-challenge__body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-1);
}
.tl-proj-challenge__body p.tl-proj-challenge__lede {
  font-size: 19px;
  line-height: 1.55;
  font-weight: var(--weight-medium);
}
.tl-proj-challenge__body p + p { color: var(--fg-2); }

/* --- Approach (2x2 work streams) ----------------------------------- */
.tl-proj-approach {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
@media (max-width: 820px) { .tl-proj-approach { grid-template-columns: 1fr; } }

.tl-proj-approach__card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6) var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.tl-proj-approach__card:hover {
  box-shadow: var(--shadow-2);
  border-color: transparent;
  transform: translateY(-2px);
}
.tl-proj-approach__num {
  font-family: var(--font-sans);
  font-feature-settings: "tnum";
  font-size: 13px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  color: var(--fg-accent);
  align-self: flex-start;
}
.tl-proj-approach__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.012em;
  color: var(--fg-1);
}
.tl-proj-approach__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
}

/* --- Outcomes (dark ink band) -------------------------------------- */
.tl-proj-outcomes {
  background: var(--surface-ink);
  color: var(--fg-on-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-10);
  position: relative;
  overflow: hidden;
}
@media (max-width: 820px) {
  .tl-proj-outcomes { padding: var(--space-8); }
}
.tl-proj-outcomes__head {
  margin-bottom: var(--space-10);
  max-width: 640px;
}
.tl-proj-outcomes__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-on-dark-muted);
  margin-bottom: var(--space-3);
}
.tl-proj-outcomes__rule {
  width: 18px;
  height: 2px;
  background: var(--fg-accent);
  border-radius: 2px;
}
.tl-proj-outcomes__heading {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  font-weight: var(--weight-semibold);
  color: var(--fg-on-dark);
  text-wrap: balance;
}
.tl-proj-outcomes__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-8);
}
@media (max-width: 1024px) { .tl-proj-outcomes__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }
@media (max-width: 520px)  { .tl-proj-outcomes__grid { grid-template-columns: 1fr; } }
.tl-proj-outcomes__kpi {
  position: relative;
  padding-top: var(--space-4);
}
.tl-proj-outcomes__kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--fg-accent);
  border-radius: 2px;
}
.tl-proj-outcomes__value {
  font-size: clamp(40px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: var(--weight-semibold);
  color: var(--fg-on-dark);
  font-feature-settings: "tnum";
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.tl-proj-outcomes__suffix {
  color: var(--fg-accent);
  font-weight: var(--weight-semibold);
}
.tl-proj-outcomes__label {
  margin-top: var(--space-3);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-on-dark-muted);
  max-width: 240px;
}

/* --- Stack --------------------------------------------------------- */
.tl-proj-stack {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: var(--space-10);
  align-items: start;
}
@media (max-width: 920px) { .tl-proj-stack { grid-template-columns: 1fr; gap: var(--space-5); } }
.tl-proj-stack__head h2 {
  margin: var(--space-4) 0 var(--space-3);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: var(--weight-semibold);
  text-wrap: balance;
}
.tl-proj-stack__head p {
  margin: 0;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 320px;
}
.tl-proj-stack__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tl-proj-stack__list li {
  font-size: 14px;
  font-weight: var(--weight-medium);
  letter-spacing: -0.005em;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  border: 1px solid var(--border-1);
  color: var(--fg-1);
}

/* --- Open positions ------------------------------------------------ */
.tl-proj-positions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
@media (max-width: 980px) { .tl-proj-positions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tl-proj-positions { grid-template-columns: 1fr; } }

.tl-proj-pos {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--surface-card);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.tl-proj-pos::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--fg-accent);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-base) var(--ease-out);
}
.tl-proj-pos:hover {
  box-shadow: var(--shadow-2);
  border-color: transparent;
  transform: translateY(-2px);
}
.tl-proj-pos:hover::before { transform: scaleY(1); }

.tl-proj-pos__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: var(--weight-semibold);
}
.tl-proj-pos__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--neutral-300);
}
.tl-proj-pos__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.012em;
  color: var(--fg-1);
}
.tl-proj-pos__summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  flex: 1;
}
.tl-proj-pos__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: var(--weight-semibold);
  color: var(--fg-1);
  margin-top: var(--space-2);
  transition: color var(--dur-base) var(--ease-out),
              gap var(--dur-base) var(--ease-out);
}
.tl-proj-pos:hover .tl-proj-pos__cta {
  color: var(--fg-accent);
  gap: 10px;
}

.tl-proj-positions__footer {
  margin-top: var(--space-6);
  display: flex;
  justify-content: center;
}
.tl-proj-positions__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: var(--weight-semibold);
  color: var(--fg-1);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-2);
  transition: gap var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.tl-proj-positions__all:hover {
  gap: 12px;
  color: var(--fg-accent);
  border-color: var(--fg-accent);
}

/* --- Other flagships (cross-sell) ---------------------------------- */
/* Column count follows the number of cards rather than being fixed at three:
   this list is "every flagship project except this one", so with three projects
   it is always two cards, and a hardcoded third track left a permanently empty
   column (~360px of dead space at 1440). auto-fit collapses the empty tracks and
   1fr lets the rest take the room, so two cards fill the row and a fourth
   project would simply add a track. The 300px floor is what drops it to two
   columns on a tablet and one on a phone, replacing the old breakpoints; it is
   capped at 100% so the track can never be wider than the container itself —
   below ~348px a bare 300px floor overflows, and the page clips it rather than
   scrolling, so the card would just be cut off. */
.tl-proj-others {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-5);
}

.tl-proj-other {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.tl-proj-other:hover {
  box-shadow: var(--shadow-2);
  border-color: transparent;
  transform: translateY(-2px);
}
.tl-proj-other__cover {
  position: relative;
  aspect-ratio: 16 / 9;
}
.tl-proj-other__body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.tl-proj-other__client {
  font-size: 12px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: var(--weight-semibold);
}
.tl-proj-other__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: var(--weight-semibold);
  color: var(--fg-1);
  text-wrap: balance;
}
.tl-proj-other__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: var(--weight-semibold);
  color: var(--fg-1);
  margin-top: auto;
  transition: gap var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.tl-proj-other:hover .tl-proj-other__cta {
  gap: 10px;
  color: var(--fg-accent);
}
