/* ==========================================================================
   CAREERS  -  full page rebuild
   Section architecture follows the reference the client supplied
   (credenceinnovations.org/careers): hero with a stamp badge, a three-card
   "what the job includes" band on a drawn route, a numbered benefits ledger
   with a sticky rail and a progress meter, an open-roles grid, a clips row,
   and an FAQ.

   MOBILE FIRST throughout. The client's site is opened on a phone far more
   than on a desktop, so the default rules below ARE the phone layout and the
   min-width queries add the desktop composition on top. Nothing here is a
   desktop layout patched down.

   IMAGES ARE PLACEHOLDERS ON PURPOSE. Every .ph block is a labelled, ratio-
   locked box with no <img> behind it - requested, and it also means the page
   cannot ship a stock photograph by accident. Dropping a real image in is one
   <img> inside the .ph; the box already owns the ratio, the radius and the
   border.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO
   -------------------------------------------------------------------------- */
.chero {
  position: relative;
  padding-top: clamp(6.5rem, 5rem + 8vw, 9.5rem);
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  overflow: hidden;
}
.chero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(60% 60% at 30% 20%, rgba(156, 120, 72, 0.16), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.chero__grid { position: relative; display: grid; gap: clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.chero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(1rem, 0.85rem + 0.6vw, 1.4rem);
}
.chero__eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.chero__h {
  font-size: clamp(2.4rem, 1.7rem + 4.4vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.038em;
  color: var(--white);
}
.chero__h em { display: block; font-style: italic; color: var(--gold-light); }
.chero__sub {
  margin-top: clamp(1.1rem, 0.95rem + 0.7vw, 1.6rem);
  max-width: 40rem;
  color: var(--ink);
  font-size: var(--text-lg);
  line-height: 1.6;
  text-wrap: pretty;
}
.chero__act { margin-top: clamp(1.5rem, 1.25rem + 1vw, 2.25rem); }

/* the stamp: two concentric rings, arc text top and bottom, year in the middle */
.stamp {
  position: relative;
  width: clamp(5.5rem, 5rem + 3vw, 7rem);
  aspect-ratio: 1;
  transform: rotate(-9deg);
  color: var(--gold-light);
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.stamp svg { width: 100%; height: 100%; overflow: visible; }
.stamp__arc { font-size: 9.5px; font-weight: 600; letter-spacing: 0.22em; fill: currentColor; }
.stamp__year {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  fill: var(--white);
  text-anchor: middle;
  dominant-baseline: middle;
}
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp-turn 34s linear infinite; }
  @keyframes stamp-turn {
    from { transform: rotate(-9deg); }
    to   { transform: rotate(351deg); }
  }
  /* only the rings turn - the year would be upside down half the time */
  .stamp__year { animation: stamp-hold 34s linear infinite; transform-origin: 60px 60px; }
  @keyframes stamp-hold {
    from { transform: rotate(9deg); }
    to   { transform: rotate(-351deg); }
  }
}
.chero__media { --ph-ar: 4 / 5; max-width: 26rem; }

@media (min-width: 900px) {
  .chero__grid { grid-template-columns: 1.02fr 0.98fr; align-items: center; }
  /* justify-self: end sizes a grid item to its CONTENT. .ph carries its box
     through aspect-ratio and its <img> is position:absolute, so the item has
     no intrinsic width at all - it collapsed to 2px (two borders) and the
     photo vanished on desktop while still showing on mobile, where the item
     stretches. The explicit width gives justify-self something to place. */
  .chero__media { order: 2; width: 100%; max-width: 28rem; justify-self: end; }
  .chero__copy { order: 1; }
}

/* --------------------------------------------------------------------------
   2. WHAT THE JOB INCLUDES  (three cards on a drawn route)
   -------------------------------------------------------------------------- */
.route { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.route__head { max-width: 46rem; margin-inline: auto; text-align: center; }
.route__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  background: rgba(156, 120, 72, 0.08);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.route__h {
  margin-top: clamp(0.9rem, 0.8rem + 0.5vw, 1.3rem);
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.08;
  color: var(--white);
  text-wrap: balance;
}
.route__h em { font-style: italic; color: var(--gold-light); }
.route__sub {
  margin-top: 0.9rem;
  color: var(--vein);
  line-height: 1.65;
  text-wrap: pretty;
}
.route__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  margin-top: clamp(1.1rem, 0.95rem + 0.6vw, 1.5rem);
}
.route__stats li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--ink);
}
.route__stats li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.route__wrap { position: relative; margin-top: clamp(2rem, 1.6rem + 2vw, 3.25rem); }
/* the dotted arc the cards sit on. Desktop only: at phone width the cards
   stack and a curve drawn behind a single column is just noise. */
.route__path { display: none; }
.route__cards {
  list-style: none;
  display: grid;
  gap: clamp(2.25rem, 2rem + 2vw, 3rem);
}
.rcard { position: relative; }
.rcard__pin {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--obsidian);
  border: 1px solid var(--border-gold-strong);
  color: var(--gold-light);
}
.rcard__pin svg { width: 14px; height: 14px; }
.rcard__shot { --ph-ar: 4 / 5; position: relative; }
.rcard__freq {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(6, 6, 8, 0.72);
  border: 1px solid var(--border-gold);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}
/* the label card overlaps the bottom edge of the plate, as in the reference */
.rcard__label {
  position: relative;
  z-index: 2;
  margin: -2rem 0.85rem 0;
  padding: clamp(0.9rem, 0.8rem + 0.5vw, 1.25rem);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  background: rgba(12, 12, 17, 0.92);
  backdrop-filter: blur(12px);
}
.rcard__place {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.rcard__name {
  margin-top: 0.25rem;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}
.rcard__note { margin-top: 0.4rem; font-size: var(--text-sm); line-height: 1.55; color: var(--vein); }

@media (min-width: 860px) {
  .route__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.85rem + 1vw, 1.75rem); }
  .route__path {
    display: block;
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: 260px;
    pointer-events: none;
    color: var(--border-gold-strong);
  }
  .route__path path { stroke-dasharray: 1 10; stroke-linecap: round; }
  /* the middle card rides up onto the arc */
  .rcard--mid { margin-top: clamp(-2.75rem, -2.5vw, -1.25rem); }
}

/* --------------------------------------------------------------------------
   3. THE UPSIDE  (sticky rail + numbered ledger)
   -------------------------------------------------------------------------- */
.gain { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.gain__grid { display: grid; gap: clamp(1.75rem, 1.4rem + 2vw, 3rem); }
.gain__h {
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.06;
  color: var(--white);
}
.gain__h em { display: block; font-style: italic; color: var(--gold-light); }
.gain__sub { margin-top: 1rem; color: var(--vein); line-height: 1.65; max-width: 34rem; text-wrap: pretty; }
.gain__meter { display: none; }

.gain__list { list-style: none; display: grid; }

/* THE ROW REVEAL NEVER HIDES THE ROW.
   An earlier version used clip-path: inset(0 0 100% 0) as the from-state.
   That deadlocks: Chromium counts the target's own clip in intersectionRatio,
   so a fully-clipped row reports 0 and the site observer (threshold 0.12)
   can never fire the class that would un-clip it. The section rendered empty.

   So the row itself is always fully painted and readable. What animates is
   the RULE above it - a gold line that draws left-to-right as the row
   arrives - and a small settle on the text. If the observer never fires,
   the reader loses a line animation and loses no content. */
.gain__row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  padding: clamp(1.1rem, 0.95rem + 0.7vw, 1.6rem) clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
  border-top: 1px solid var(--border-neutral);
  border-radius: var(--radius-md);
  transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
/* the drawing rule, over the top border */
.gain__row::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 100%;
  background: var(--acc, var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-out);
}
.gain__row.is-visible::before { transform: scaleX(1); }
.gain__row.reveal { opacity: 1; transform: none; }
.gain__row .gain__body,
.gain__row .gain__n { transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); }
.gain__row.reveal:not(.is-visible) .gain__body,
.gain__row.reveal:not(.is-visible) .gain__n { opacity: 0.999; transform: translateY(6px); }
.gain__row.is-visible .gain__body,
.gain__row.is-visible .gain__n { transform: none; }
.gain__list .gain__row:last-child { border-bottom: 1px solid var(--border-neutral); }

/* pointing at a row lifts it and lights its own accent colour */
.gain__row:hover {
  background: var(--gold-wash);
  transform: translateX(4px);
}
.gain__n {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--acc, var(--border-gold-strong));
  font-variant-numeric: tabular-nums;
  transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.gain__row:hover .gain__n { color: var(--acc, var(--gold)); transform: translateY(-2px); }
.gain__body { min-width: 0; }
.gain__tag {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc, var(--gold));
}
.gain__title {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
}
.gain__desc { margin-top: 0.4rem; color: var(--vein); font-size: var(--text-sm); line-height: 1.6; text-wrap: pretty; }

/* the circular arrow: hidden on a phone where there is no hover to reward */
.gain__go { display: none; }

@media (min-width: 980px) {
  .gain__grid { grid-template-columns: 0.82fr 1.18fr; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
  .gain__row { grid-template-columns: auto 1fr auto; align-items: center; }
  .gain__go {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
      background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
  }
  .gain__go svg { width: 15px; height: 15px; }
  .gain__row:hover .gain__go {
    opacity: 1;
    transform: none;
    background: var(--gold);
    color: var(--obsidian);
  }
  .gain__rail { position: sticky; top: clamp(6rem, 12vh, 9rem); align-self: start; }
  .gain__meter {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  }
  .gain__track { position: relative; width: 2px; height: 5.5rem; background: var(--border-neutral); }
  .gain__fill {
    transition: transform 0.6s var(--ease-out);
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transform-origin: top;
    transform: scaleY(var(--gain-p, 0));
  }
  .gain__count { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; color: var(--white); line-height: 1; }
  .gain__countlbl { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--vein); line-height: 1.6; }
}

/* --------------------------------------------------------------------------
   4. OPEN ROLES
   -------------------------------------------------------------------------- */
.roles { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); scroll-margin-top: 5rem; }
.roles__head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
}
.roles__h {
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.06;
  color: var(--white);
}
.roles__h em { font-style: italic; color: var(--gold-light); }
.roles__count { display: flex; align-items: baseline; gap: 0.6rem; }
.roles__countn { font-size: 2rem; font-weight: 700; color: var(--gold-light); letter-spacing: -0.03em; }
.roles__countlbl { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--vein); }

.roles__list { list-style: none; display: grid; gap: clamp(0.85rem, 0.7rem + 0.7vw, 1.35rem); }
.rrole {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.85rem);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(156, 120, 72, 0.045), transparent 58%), var(--surface);
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.rrole:hover { border-color: var(--border-gold-strong); transform: translateY(-2px); }
.rrole__top { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.rrole__n {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.rrole__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.rrole__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
}
.rrole__name {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.2;
  color: var(--white);
  text-wrap: balance;
}
.rrole__meta { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--vein); line-height: 1.7; }
.rrole__desc { color: var(--vein); font-size: var(--text-sm); line-height: 1.62; text-wrap: pretty; }
.rrole__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rrole__tags li {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.rrole__act { margin-top: 0.35rem; }
.rrole__act .btn { min-height: 44px; }

@media (min-width: 900px) {
  .roles__head { grid-template-columns: 1fr auto; align-items: end; }
  .roles__count { justify-content: flex-end; }
  .rrole {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "top  act"
      "name act"
      "meta act"
      "desc act"
      "tags act";
    align-items: start;
    column-gap: 2rem;
  }
  .rrole__top { grid-area: top; }
  .rrole__name { grid-area: name; }
  .rrole__meta { grid-area: meta; }
  .rrole__desc { grid-area: desc; max-width: 46rem; }
  .rrole__tags { grid-area: tags; }
  .rrole__act { grid-area: act; align-self: center; margin-top: 0; }
}

/* --------------------------------------------------------------------------
   Shared: section head used by the FAQ
   -------------------------------------------------------------------------- */
.cfaq { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.cfaq__head { max-width: 46rem; margin-bottom: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); }
.cfaq__h {
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  color: var(--white);
}
.cfaq__sub { margin-top: 0.9rem; color: var(--vein); line-height: 1.65; text-wrap: pretty; }

/* ==========================================================================
   .says  -  "What it is actually like" (careers, above the FAQ)

   Mobile-first: one column, cards stack. At 760px it becomes 3-up.
   Nothing here depends on a class arriving to be readable - the cards are
   fully painted at rest and .reveal only adds the site's standard fade-up.
   ========================================================================== */
.says { padding-block: var(--section); }
.says__head { max-width: 42rem; margin-bottom: clamp(2rem, 1.6rem + 1.8vw, 3.25rem); }
.says__h {
  margin-top: 0.75rem;
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
  text-wrap: balance;
}
.says__sub { margin-top: 0.9rem; color: var(--vein); font-size: var(--text-lg); text-wrap: pretty; }

.says__grid {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 0.85rem + 0.6vw, 1.4rem);
}

.say {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--surface), var(--obsidian-raised));
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
/* a hairline of gold that grows on hover - the only motion, so it reads */
.say::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out);
}
.say:hover { border-color: var(--border-gold-strong); transform: translateY(-3px); }
.say:hover::after { transform: scaleX(1); }

.say__mark {
  font-size: 3.25rem;
  line-height: 0.7;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
}
.say__quote { margin-top: 0.6rem; flex: 1; }
.say__quote p {
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.62;
  text-wrap: pretty;
}

.say__by {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
  padding-top: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  border-top: 1px solid var(--border-neutral);
}
/* initials rather than a face: there is no photograph of these people, and
   a stock portrait beside a real name is a worse lie than a monogram */
.say__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--gold-wash);
  color: var(--gold-light);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.say__name { color: var(--white); font-weight: 600; font-size: var(--text-sm); }
.say__role {
  margin-top: 0.15rem;
  color: var(--vein);
  font-size: var(--text-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

@media (min-width: 760px) {
  .says__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .say, .say::after { transition: none; }
}

/* ==========================================================================
   .trv  -  Travel opportunity (careers, section 2)

   Mobile-first: one column, cards stack, nothing lifts. From 900px it is a
   3-up with the CENTRE card raised, which is the whole shape of the layout.
   The lift is a transform, so it costs no layout and cannot push the rows
   out of alignment on a narrow desktop.
   ========================================================================== */
.trv { padding-block: clamp(3.25rem, 2.6rem + 3.4vw, 6rem); }
.trv__head { max-width: 46rem; margin: 0 auto clamp(2.25rem, 1.8rem + 2.2vw, 3.75rem); text-align: center; }
.trv__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  background: var(--gold-wash);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.trv__badge svg { width: 15px; height: 15px; flex: none; }
.trv__h {
  margin-top: clamp(0.9rem, 0.8rem + 0.5vw, 1.3rem);
  font-size: clamp(1.9rem, 1.35rem + 2.6vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--white);
  text-wrap: balance;
}
.trv__h em { font-style: italic; color: var(--gold-light); }
.trv__sub { margin: 1rem auto 0; max-width: 40rem; color: var(--vein); font-size: var(--text-lg); line-height: 1.65; text-wrap: pretty; }
.trv__pills {
  list-style: none;
  margin-top: clamp(1.35rem, 1.15rem + 0.8vw, 1.9rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
}
.trv__pills li {
  padding: 0.34rem 0.8rem;
  border: 1px solid var(--border-neutral);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}

.trv__grid {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.15rem, 1rem + 0.7vw, 1.75rem);
}

.tcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-lg);
  background: linear-gradient(168deg, var(--surface), var(--obsidian-raised));
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
.tcard__shot { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.tcard__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.tcard:hover .tcard__shot img { transform: scale(1.045); }
/* a scrim so the tag stays readable whatever the photo does behind it */
.tcard__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 4, 2, 0.5) 0%, transparent 34%, transparent 62%, rgba(6, 4, 2, 0.6) 100%);
  pointer-events: none;
}
.tcard__tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  white-space: nowrap;
}
.tcard__body { padding: clamp(1.2rem, 1.05rem + 0.7vw, 1.75rem); }
.tcard__eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; color: var(--gold); }
.tcard__h {
  margin-top: 0.35rem;
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--white);
  text-wrap: balance;
}
.tcard__p { margin-top: 0.55rem; color: var(--vein); font-size: var(--text-sm); line-height: 1.62; text-wrap: pretty; }

@media (min-width: 900px) {
  .trv__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  /* The centre card is the raised one. The lift is a MARGIN, not a transform:
     the site's reveal system sets `.reveal.is-visible { transform: none }`,
     which is two classes and therefore outranks `.tcard--lift` - the card sat
     flat the moment it revealed. Margin cannot be clobbered that way, and it
     leaves transform free for the hover. */
  .tcard--lift {
    margin-top: -26px;
    border-color: var(--border-gold-strong);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
  }
  .tcard.is-visible:hover { border-color: var(--border-gold-strong); transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .tcard, .tcard__shot img { transition: none; }
  .tcard:hover .tcard__shot img { transform: none; }
}
