/* ==========================================================================
   STUDIO PROJECT PAGES — shared chrome + long-scroll rhythm.
   Each project (easy-gas / fatima / terra) sets --proj-color and otherwise
   reuses this file entirely; page-specific copy/images live only in the
   HTML. No header, no footer — just the two controls the brief calls for.
   Real scrolling is allowed here (unlike studio.html itself).
   ========================================================================== */

.proj {
  background: var(--c-white);
  color: var(--c-ink);
  /* same running-copy measure the real case studies use, so these pages read
     as part of the same system rather than a one-off full-bleed layout */
  --proj-copy: 57rem;
}

/* Terra Travel's own brand world is near-black — carry that into the page
   itself rather than floating dark panels on a white page. */
.proj--dark {
  background: #0b0b0f;
  color: var(--c-white);
}
.proj--dark .proj__lede { color: var(--c-grey-e4); }
.proj--dark .proj__next { color: var(--c-white); }
.proj--dark .proj__panel figcaption { color: var(--c-grey-e4); }
.proj--dark .crumbs { color: rgba(255, 255, 255, 0.7); }
.proj--dark .crumbs [aria-current="page"] { color: var(--c-white); }

/* breadcrumb now sits inline at the top of .proj__hero (real site-header
   present above it), same treatment as every case study's .cs2-hero */
.proj__hero .crumbs { margin-bottom: clamp(1.5rem, 1.1rem + 2vw, 2.5rem); }

.proj__next {
  position: fixed;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-ink);
  opacity: 0.6;
  transition: opacity var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.proj__next:hover, .proj__next:focus-visible {
  opacity: 1;
  color: var(--proj-color, var(--c-ink));
}
.proj__next {
  bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  right: var(--gutter);
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-1);
  text-align: right;
}
.proj__next span { opacity: 0.7; }
.proj__next strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-lg);
  letter-spacing: normal;
  text-transform: none;
}

.proj__hero {
  /* matches .page-hero (Work/Studio) now that a real site-header floats
     above this content instead of the old fixed breadcrumb overlay */
  padding-top: calc(var(--section-pad-y) + 4.5rem);
  padding-bottom: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  /* narrower than .container's own max-width, so cancel its margin-inline:auto
     here — otherwise this box centers itself on the page instead of staying
     flush-left at the same gutter edge the panel images sit on */
  max-width: var(--proj-copy);
  margin-inline: 0;
}
.proj__eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-3xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--proj-color, var(--c-grey-mid));
  margin-bottom: var(--sp-4);
}
.proj__title {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  line-height: 1.12;
  max-width: 20ch;
  margin-bottom: var(--sp-5);
}
.proj__lede {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--c-grey-dark);
  max-width: var(--proj-copy);
}

.proj__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  background: var(--c-ink-2);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.proj__intro {
  font-family: var(--font-body);
  font-size: var(--fs-lede);
  line-height: var(--lh-body);
  max-width: var(--proj-copy);
  margin-inline: 0;
  padding-bottom: clamp(2.5rem, 1.8rem + 3vw, 4rem);
}

/* images sit inside the same 111px container gutter as the case studies —
   never full-bleed — while staying at their own full column width (wider
   than the text measure), matching .cs2-hero__media's treatment */
.proj__panel {
  margin: 0 auto clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  padding-inline: var(--gutter);
}
.proj__panel img { border-radius: var(--r-xl); }
.proj__panel img {
  display: block;
  width: 100%;
  height: auto;
}
.proj__panel figcaption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--fs-sm);
  color: var(--c-grey-mid);
  text-align: center;
  padding: var(--sp-3) var(--gutter) 0;
}
.proj__panel--tight { margin-top: calc(-1 * clamp(2.5rem, 1.8rem + 3vw, 4.5rem) + var(--sp-6)); }

.proj__section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-8);
  align-items: end;
  padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem);
}
.proj__section-head h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.16;
  max-width: 16ch;
}
.proj__section-head p {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--c-grey-dark);
}

.proj__closing {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  line-height: 1.4;
  max-width: 46rem;
  margin-inline: 0;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}

/* A quiet rule between panel groups, tinted to the project's own colour. */
.proj__rule {
  border: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.12;
  max-width: var(--content-max);
  margin: 0 auto clamp(2.5rem, 1.8rem + 3vw, 4rem);
}

@media (max-width: 860px) {
  .proj__section-head { grid-template-columns: 1fr; gap: var(--sp-4); }
}
