/* =========================================================
   ALICE POLETTO — FINAL SITE-WIDE POLISH
   Inner pages only
   ========================================================= */

/* ---------------------------------------------------------
   TYPOGRAPHIC RHYTHM
   --------------------------------------------------------- */

/* Keep all major inner-page titles within the same family */
.media-title,
.consulting-title,
.travel-title,
.about-title,
.teaching-title,
.fieldwork-title,
.public-talks-title,
.research-title,
.sibylla-title,
.contact-title{
  line-height:.95;
  letter-spacing:-.04em;
}

/* Supporting hero copy should never become a second headline */
.media-intro .lead,
.travel-intro .lead,
.consulting-lead .lead,
.fieldwork-intro .lead,
.public-talks-intro .lead,
.sibylla-intro .lead{
  line-height:1.42;
}

/* Standard service-title hierarchy */
.secondary-card h3,
.consulting-service h3{
  line-height:1.06;
}

/* Prevent excessively wide reading lines */
.secondary-card p,
.consulting-service p{
  max-width:520px;
}

/* ---------------------------------------------------------
   SECTION RHYTHM
   --------------------------------------------------------- */

@media(min-width:981px){

  /* Main titles on internal pages */
  .media-title,
  .consulting-title,
  .travel-title,
  .teaching-title,
  .fieldwork-title,
  .public-talks-title,
  .sibylla-title{
    font-size:clamp(58px,5.6vw,82px);
  }

  .about-title{
    font-size:clamp(56px,5.3vw,78px);
  }

  .contact-title{
    font-size:clamp(52px,5vw,72px);
  }

  /* Service headings */
  .secondary-card h3,
  .consulting-service h3{
    font-size:30px;
  }

  /* Lower editorial headings */
  .section-head h2,
  .consulting-bespoke h2,
  .media-bottom-contact h2,
  .teaching-institutions h2{
    line-height:.98;
  }

  /* Avoid over-long sections on large monitors */
  .media-portfolio,
  .teaching-institutions{
    padding-top:82px;
    padding-bottom:82px;
  }
}


/* ---------------------------------------------------------
   MEDIA
   --------------------------------------------------------- */

.media-credit h3{
  line-height:1.08;
}

.media-credit p{
  line-height:1.5;
}

.media-credit-meta{
  line-height:1.3;
}


/* ---------------------------------------------------------
   RESEARCH
   --------------------------------------------------------- */

/* Long academic titles need elegant wrapping */
.pub h3,
.pub h3 a{
  overflow-wrap:anywhere;
  hyphens:auto;
}

.pub h3{
  line-height:1.12;
}

.research-links a{
  line-height:1.35;
}


/* ---------------------------------------------------------
   TEACHING
   --------------------------------------------------------- */

.teaching-institution-name{
  line-height:1.12;
}

.teaching-institution-link{
  min-height:76px;
}


/* ---------------------------------------------------------
   FIELDWORK
   --------------------------------------------------------- */

.fieldwork-intro-copy{
  min-width:0;
}

/* The four-site heading is long; don't let it overpower page */
.fieldwork-selected h2,
.fieldwork-projects h2{
  font-size:clamp(38px,4vw,58px);
  line-height:1.02;
}


/* ---------------------------------------------------------
   IMAGES
   --------------------------------------------------------- */

.media-feature,
.travel-feature,
.fieldwork-feature,
.sibylla-feature{
  overflow:hidden;
}

.media-feature-image,
.travel-feature-image,
.fieldwork-feature-image,
.sibylla-feature-image{
  display:block;
  width:100%;
  height:100%;
}

/* Maintain intentional photographic crops */
.media-feature-image,
.travel-feature-image,
.fieldwork-feature-image{
  object-fit:cover;
}

/* Do not alter transparent Public Talks cutout */


/* ---------------------------------------------------------
   SHARED CLOSING CTA
   --------------------------------------------------------- */

.page-closing-cta{
  padding:72px 0;
  border-top:1px solid var(--line);
}

.page-closing-cta-inner{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) auto;
  gap:60px;
  align-items:end;
}

.page-closing-cta h2{
  font-size:clamp(38px,4vw,56px);
  line-height:.98;
  max-width:720px;
  margin:12px 0 14px;
}

.page-closing-cta p{
  margin:0;
  max-width:680px;
  font-size:18px;
  line-height:1.5;
}

.page-closing-cta-action{
  display:flex;
  justify-content:flex-end;
}


/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */

/* Guarantee Netlify honeypot never appears visually */
[hidden],
.hidden,
.bot-field{
  display:none !important;
}

.contact-form label{
  line-height:1.35;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media(max-width:680px){

  /* Unified internal-page title scale */
  .media-title,
  .consulting-title,
  .travel-title,
  .about-title,
  .teaching-title,
  .fieldwork-title,
  .public-talks-title,
  .research-title,
  .sibylla-title{
    font-size:clamp(44px,11vw,56px);
    line-height:.97;
  }

  .contact-title{
    font-size:clamp(42px,10.5vw,52px);
    line-height:.98;
  }

  .secondary-card h3,
  .consulting-service h3{
    font-size:clamp(29px,7.8vw,37px);
  }

  .secondary-card p,
  .consulting-service p{
    font-size:16px;
    line-height:1.52;
  }

  .page-closing-cta{
    padding:58px 0 62px;
  }

  .page-closing-cta-inner{
    grid-template-columns:1fr;
    gap:26px;
  }

  .page-closing-cta h2{
    font-size:clamp(38px,10vw,48px);
  }

  .page-closing-cta p{
    font-size:17px;
  }

  .page-closing-cta-action{
    justify-content:flex-start;
  }

  .teaching-institution-name{
    font-size:22px;
  }
}


/* About — restrained closing navigation */
.about-next{
  padding:42px 0 72px;
}

.about-next .actions{
  justify-content:flex-start;
  flex-wrap:wrap;
}


/* Inline external brand links */
.inline-brand-link{
  color:var(--ink);
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid rgba(21,57,103,.35);
  transition:.2s ease;
}

.inline-brand-link:hover{
  color:var(--accent);
  border-bottom-color:var(--accent);
}

