/*!
Theme Name: Whisky Tala
Description: Whisky Tala — private journeys through Scotland. A Cosmos child theme: homepage section blocks, anchor-link navigation, a journey line that draws itself on scroll, and the Journal.
Version: 1.4.2
Author: Alchemy + Aim
Author URI: https://www.alchemyandaim.com
Template: cosmos-theme
Requires at least: 6.1
Requires PHP: 7.4
Text Domain: whisky-tala
*/

/* ==========================================================================
   Whisky Tala
   Plain CSS (valid SCSS) so it works whether or not WP-SCSS recompiles it.
   Desktop measurements come from the 1440px Figma frame; "cqw" units scale
   them with the 1440px stage. Below 992px the stacked (mobile) layout is
   used — switched with container queries so the block editor previews the
   right layout for its canvas width.
   ========================================================================== */

:root {
  --tala-ink: #1e1a16;
  --tala-text: #3e372f;
  --tala-muted: #5e554b;
  --tala-accent: #8a5a22;
  --tala-cream: #f6f1e8;
  --tala-paper: rgba(246, 241, 232, 0.95);
  --tala-rule: #8c8172;
  --tala-earth: #3b2a17;
  --tala-shadow: 0 24px 60px rgba(18, 28, 14, 0.28);
  --tala-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --tala-sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --tala-header-h: 88px;
}

@media (max-width: 991px) {
  :root { --tala-header-h: 64px; }
}

/* ---------- Base ---------- */
html {
  background-color: var(--tala-earth);
  scroll-padding-top: var(--tala-header-h);
}

body.tala-theme {
  margin: 0;
  font-family: var(--tala-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tala-text);
  background-color: var(--tala-earth);
  background-image: var(--tala-bg-image, url(_static/images/landscape-quiraing.jpg));
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.tala-theme .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tala-theme .tala-skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--tala-ink);
  color: var(--tala-cream);
}

.tala-theme :focus-visible {
  outline: 2px solid var(--tala-accent);
  outline-offset: 3px;
}

.tala-main {
  display: block;
  overflow-x: clip;
}

/* ---------- Header (fixed) ---------- */
.tala-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(246, 241, 232, 0.9);
  box-shadow: var(--tala-shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s ease;
}

.admin-bar .tala-header { top: 32px; }

@media (max-width: 782px) {
  .admin-bar .tala-header { top: 46px; }
}

@media (max-width: 600px) {
  .admin-bar .tala-header { top: 0; }
  .admin-bar.tala-scrolled-past-bar .tala-header { top: 0; }
}

.tala-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  max-width: 1440px;
  min-height: var(--tala-header-h);
  margin: 0 auto;
  padding: 0 80px;
}

.tala-theme .tala-header__brand {
  font-family: var(--tala-sans);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--tala-ink);
  text-decoration: none;
  white-space: nowrap;
}

.tala-header__brand img {
  display: block;
  max-height: 40px;
  width: auto;
}

.tala-nav__list {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tala-nav__list > li {
  margin: 0;
  padding: 0;
}

.tala-theme .tala-nav__list > li > a {
  font-family: var(--tala-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.08em;
  color: var(--tala-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.tala-theme .tala-nav__list > li > a:hover,
.tala-theme .tala-nav__list > li > a.is-active {
  color: var(--tala-accent);
}

.tala-theme .tala-nav__list > li:not(.tala-nav__item--button):not(.menu-button) > a {
  position: relative;
}

.tala-theme .tala-nav__list > li:not(.tala-nav__item--button):not(.menu-button) > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.tala-theme .tala-nav__list > li:not(.tala-nav__item--button):not(.menu-button) > a.is-active::after,
.tala-theme .tala-nav__list > li:not(.tala-nav__item--button):not(.menu-button) > a.is-current::after {
  transform: scaleX(1);
}

.tala-theme .tala-nav__list > li.tala-nav__item--button > a,
.tala-theme .tala-nav__list > li.menu-button > a {
  display: inline-block;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--tala-cream);
  background: var(--tala-ink);
  border: 1px solid var(--tala-ink);
}

.tala-theme .tala-nav__list > li.tala-nav__item--button > a:hover,
.tala-theme .tala-nav__list > li.menu-button > a:hover {
  color: var(--tala-cream);
  background: var(--tala-accent);
  border-color: var(--tala-accent);
}

.tala-theme .tala-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0 -11px 0 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--tala-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.tala-header__toggle svg {
  display: block;
  width: 22px;
  height: 14px;
}

.tala-header__toggle .tala-icon-close { width: 18px; height: 18px; }

.tala-header__toggle .tala-icon-close,
.tala-header__toggle[aria-expanded="true"] .tala-icon-open { display: none; }
.tala-header__toggle[aria-expanded="true"] .tala-icon-close { display: block; }

@media (max-width: 991px) {
  .tala-header__inner { padding: 0 20px; }
  .tala-theme .tala-header__brand { font-size: 12px; letter-spacing: 0.3em; }
  .tala-theme .tala-header__toggle { display: inline-flex; }

  .tala-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--tala-header-h));
    overflow-y: auto;
    background: var(--tala-cream);
    box-shadow: 0 24px 40px rgba(18, 28, 14, 0.25);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }

  .tala-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .tala-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 24px;
  }

  .tala-theme .tala-nav__list > li > a {
    display: block;
    padding: 16px 0;
    font-family: var(--tala-serif);
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0;
    border-bottom: 1px solid rgba(30, 26, 22, 0.12);
  }

  .tala-theme .tala-nav__list > li:not(.tala-nav__item--button):not(.menu-button) > a::after { display: none; }

  .tala-theme .tala-nav__list > li.tala-nav__item--button > a,
  .tala-theme .tala-nav__list > li.menu-button > a {
    display: block;
    margin-top: 20px;
    padding: 16px 20px;
    font-family: var(--tala-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
  }
}

/* ---------- Page wrappers ---------- */
.tala-page > :not(.tala-section) {
  box-sizing: border-box;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.tala-page--plain {
  padding: calc(var(--tala-header-h) + 60px) 16px 80px;
}

.tala-theme .tala-page--plain > .tala-prose {
  max-width: 820px;
  padding: 56px 58px;
}

.tala-prose h1,
.tala-prose h2,
.tala-prose h3 {
  font-family: var(--tala-serif);
  font-weight: 400;
  color: var(--tala-ink);
}

.tala-main > .container {
  box-sizing: border-box;
  margin: calc(var(--tala-header-h) + 60px) auto 80px;
  padding: 48px 52px;
  background: var(--tala-paper);
  box-shadow: var(--tala-shadow);
}

@media (max-width: 991px) {
  .tala-theme .tala-page--plain > .tala-prose { padding: 32px 26px; }
  .tala-main > .container { margin-left: 16px; margin-right: 16px; padding: 32px 26px; }
}

/* ---------- Sections & stage ---------- */
.tala-section {
  position: relative;
  container: tala / inline-size;
  scroll-margin-top: 0;
}

.tala-stage {
  position: relative;
  box-sizing: border-box;
  max-width: 1440px;
  min-height: var(--tala-h, 0);
  margin: 0 auto;
  container-type: inline-size;
}

/* The journey line */
.tala-route {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}

.tala-route path {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tala-route--mobile { display: none; }

/* Background below a pinned section, shifted to continue from where the
   landscape held still (child-theme.js, "Pinned background") */
.tala-bg-shift {
  position: absolute;
  left: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--tala-earth);
  background-image: var(--tala-bg-image, url(_static/images/landscape-quiraing.jpg));
  background-repeat: no-repeat;
}

/* Hidden until child-theme.js has measured it, so it never flashes fully drawn */
.tala-js .tala-route:not(.is-ready) { visibility: hidden; }

.tala-section--no-route .tala-route { display: none; }

/* ---------- Panels & type ---------- */
.tala-panel {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  background: var(--tala-paper);
  box-shadow: var(--tala-shadow);
  color: var(--tala-text);
}

.tala-section .tala-eyebrow {
  margin: 0 0 22px;
  font-family: var(--tala-sans);
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tala-accent);
}

.tala-section .tala-heading {
  margin: 0;
  font-family: var(--tala-serif);
  font-weight: 400;
  font-size: 60px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--tala-ink);
}

.tala-section .tala-heading em {
  font-style: italic;
  font-weight: 400;
}

.tala-section .tala-body {
  margin-top: 26px;
  font-family: var(--tala-sans);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--tala-text);
}

.tala-section .tala-body p {
  margin: 0 0 14px;
  font-size: inherit;
  line-height: inherit;
}

.tala-section .tala-body > :last-child { margin-bottom: 0; }

.tala-section .tala-body a {
  color: var(--tala-ink);
  text-decoration: underline;
}

.tala-actions { margin-top: 30px; }

.tala-section .tala-button {
  display: inline-block;
  box-sizing: border-box;
  margin: 0;
  padding: 18px 30px;
  font-family: var(--tala-sans);
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--tala-ink);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.tala-section .tala-button--solid {
  color: var(--tala-cream);
  background-color: var(--tala-ink);
}

.tala-section .tala-button--solid:hover,
.tala-section .tala-button--solid:focus-visible {
  color: var(--tala-cream);
  background-color: var(--tala-accent);
  border-color: var(--tala-accent);
}

.tala-section .tala-button--outline {
  padding: 16px 26px;
  letter-spacing: 0.14em;
  color: var(--tala-ink);
  background-color: transparent;
}

.tala-section .tala-button--outline:hover,
.tala-section .tala-button--outline:focus-visible {
  color: var(--tala-cream);
  background-color: var(--tala-ink);
}

/* Waypoints (dots on the route) */
.tala-waypoint {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 4;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tala-waypoint__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.tala-waypoint--large .tala-waypoint__dot {
  width: 18px;
  height: 18px;
}

.tala-waypoint__label {
  position: absolute;
  top: -8px;
  left: 20px;
  font-family: var(--tala-sans);
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(10, 6, 2, 0.45);
}

.tala-waypoint--left .tala-waypoint__label {
  left: auto;
  right: 22px;
  text-align: right;
}

.tala-star {
  display: block;
  color: #fff;
}

/* Reveal: waypoints, stars and labels light up as the line reaches them */
.tala-js [data-route-point] .tala-waypoint__dot,
.tala-js [data-route-point] .tala-chip__dot {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.4), opacity 0.4s ease;
}

.tala-js [data-route-point]:not(.is-lit) .tala-waypoint__dot,
.tala-js [data-route-point]:not(.is-lit) .tala-chip__dot {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
}

.tala-js .tala-waypoint__label,
.tala-js .tala-feature__star-text {
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.tala-js [data-route-point]:not(.is-lit) .tala-waypoint__label,
.tala-js [data-route-point]:not(.is-lit) .tala-feature__star-text {
  opacity: 0;
  transform: translateY(6px);
}

.tala-js .tala-feature__star-icon,
.tala-js .tala-founders__star .tala-star,
.tala-js .tala-contact__star .tala-star {
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1.3), opacity 0.5s ease;
}

.tala-js [data-route-point]:not(.is-lit) .tala-star {
  opacity: 0;
  transform: scale(0.3) rotate(-45deg);
}

/* ==========================================================================
   Sections — desktop
   ========================================================================== */

/* Hero */
.tala-section--hero .tala-stage {
  --tala-h: 1000px;
  padding-top: 220px;
  padding-bottom: 80px;
}

.tala-hero__panel {
  width: min(660px, 45.84cqw);
  margin-left: 5.556cqw;
  padding: 56px 58px;
}

.tala-section .tala-heading--hero {
  font-size: clamp(52px, 5.14cqw, 74px);
  line-height: 0.98;
  letter-spacing: -0.0115em;
}

.tala-section .tala-heading--hero em { color: var(--tala-accent); }

.tala-section .tala-hero__intro {
  margin-top: 30px;
  font-size: 18px;
  line-height: 1.65;
}

.tala-hero__panel .tala-actions { margin-top: 36px; }

/* The decanter sits above the journey line (z-index 3), which starts tucked
   just under its base (child-theme.js measures the image). */
.tala-hero__bottle {
  position: absolute;
  z-index: 4;
  top: 142px;
  left: calc(72.26cqw - 183.5px);
  width: 367px;
  filter: drop-shadow(0 26px 30px rgba(10, 6, 2, 0.5));
}

.tala-hero__bottle img {
  display: block;
  width: 100%;
  height: auto;
}

/* Constellation */
.tala-section--constellation .tala-stage {
  --tala-h: 1000px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.tala-constellation__panel {
  width: min(600px, 41.67cqw);
  margin-left: 5.556cqw;
  padding: 48px 52px;
}

.tala-section .tala-constellation__panel .tala-heading { font-size: clamp(44px, 4.17cqw, 60px); }

.tala-constellation__map {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

/* Three movements */
.tala-section--movements .tala-stage {
  --tala-h: 780px;
  padding-top: 70px;
  padding-bottom: 80px;
}

.tala-movements__intro {
  width: min(640px, 44.45cqw);
  margin-left: 38.4cqw;
  padding: 36px 44px;
}

.tala-section .tala-movements__intro .tala-eyebrow,
.tala-section .tala-founders__intro .tala-eyebrow { margin-bottom: 14px; }

.tala-section .tala-movements__intro .tala-heading { font-size: clamp(40px, 3.62cqw, 52px); }

.tala-movements__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5.556cqw;
  margin: 116px 5.556cqw 0;
}

.tala-movement {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 30px;
}

.tala-section .tala-movement__count { display: none; }

.tala-section .tala-movement__title {
  margin: 0;
  font-family: var(--tala-serif);
  font-weight: 400;
  font-size: clamp(21px, 1.81cqw, 26px);
  line-height: 1.25;
  color: var(--tala-ink);
}

.tala-section .tala-movement__text {
  margin: 0;
  font-family: var(--tala-sans);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--tala-text);
}

.tala-movements__progress { display: none; }

/* Feature with star */
.tala-section--feature .tala-stage {
  --tala-h: 980px;
  padding-top: 100px;
  padding-bottom: 80px;
}

.tala-feature__panel {
  width: min(640px, 44.45cqw);
  margin-left: 5.556cqw;
  padding: 48px 52px;
}

.tala-section .tala-feature__panel .tala-heading { font-size: clamp(42px, 3.75cqw, 54px); }

.tala-feature__star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 4;
  width: 0;
  height: 0;
}

.tala-feature__star-icon {
  position: absolute;
  left: -26px;
  top: -26px;
  width: 52px;
  height: 52px;
}

.tala-feature__star-text {
  position: absolute;
  right: 36px;
  top: -34px;
  text-align: right;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 14px rgba(10, 6, 2, 0.45);
}

.tala-section .tala-feature__star-title {
  margin: 0;
  font-family: var(--tala-serif);
  font-style: italic;
  font-size: 30px;
  line-height: 37px;
  color: #fff;
}

.tala-section .tala-feature__star-caption {
  margin: 6px 0 0;
  font-family: var(--tala-sans);
  font-weight: 700;
  font-size: 11px;
  line-height: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

/* Possibilities */
.tala-section--possibilities .tala-stage {
  --tala-h: 880px;
  display: flex;
  align-items: flex-start;
  padding-top: 90px;
  padding-bottom: 90px;
}

.tala-possibilities__panel {
  flex: 0 0 auto;
  width: min(580px, 40.28cqw);
  margin-left: 5.556cqw;
  padding: 48px 52px;
}

.tala-section .tala-possibilities__panel .tala-heading { font-size: clamp(42px, 4.03cqw, 58px); }

.tala-possibilities__list {
  position: relative;
  z-index: 4;
  flex: 0 1 auto;
  width: min(560px, 38.9cqw);
  /* First chip centred 226px into the section, on the route's first waypoint */
  margin: 114px 0 0 6.112cqw;
}

.tala-possibilities__list ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 38px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tala-chip {
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
  background: var(--tala-paper);
  box-shadow: var(--tala-shadow);
}

.tala-section .tala-chip--item {
  margin: 0;
  padding: 10px 18px;
  font-family: var(--tala-serif);
  font-size: 20px;
  line-height: 1.2;
  color: var(--tala-ink);
}

.tala-chip__dot {
  position: absolute;
  left: calc(-1.945cqw);
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}


/* Founders */
.tala-section--founders .tala-stage {
  --tala-h: 960px;
  padding-top: 50px;
  padding-bottom: 80px;
}

.tala-founders__intro {
  width: min(600px, 41.67cqw);
  margin-left: 5.556cqw;
  padding: 36px 44px;
}

.tala-section .tala-founders__intro .tala-heading {
  font-size: clamp(36px, 3.2cqw, 46px);
  line-height: 1.02;
}

.tala-founders__track {
  display: flex;
  justify-content: center;
  gap: 7.43cqw;
  margin-top: 86px;
}

.tala-founder {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 37.02cqw;
  min-height: 320px;
  background: var(--tala-paper);
  box-shadow: var(--tala-shadow);
}

.tala-founder__portrait {
  position: relative;
  display: flex;
  flex: 0 0 44.1%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #d9d1c3;
}

.tala-founder:nth-child(even) .tala-founder__portrait { background: #cfc6b8; }

/* The route runs behind the founder cards (its branch ends tuck under them),
   so the cards are solid here rather than 95% cream. */
.tala-section--founders .tala-route { z-index: 1; }
.tala-section--founders .tala-founder { background: #ece6dc; }

.tala-founder__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tala-founder__placeholder {
  font-family: var(--tala-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tala-muted);
}

.tala-founder__bio {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 24px;
}

.tala-section .tala-founder__name {
  margin: 0;
  font-family: var(--tala-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  color: var(--tala-ink);
}

.tala-section .tala-founder__role {
  margin: 10px 0 0;
  font-family: var(--tala-sans);
  font-weight: 700;
  font-size: 11px;
  line-height: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tala-accent);
}

.tala-founder__rule {
  display: block;
  width: 36px;
  height: 1px;
  margin: 12px 0;
  background: var(--tala-accent);
}

.tala-section .tala-founder__text {
  font-family: var(--tala-sans);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--tala-text);
}

.tala-section .tala-founder__text p { margin: 0 0 10px; font-size: inherit; line-height: inherit; }
.tala-section .tala-founder__text > :last-child { margin-bottom: 0; }

.tala-founders__controls,
.tala-founders__star { display: none; }

/* One person: a single wide card, centred on the route (which runs behind it) */
.tala-founders--count-1 .tala-founders__track { margin-top: 66px; }

.tala-founders--count-1 .tala-founder {
  flex: 0 0 min(840px, 70cqw);
  min-height: 420px;
}

.tala-founders--count-1 .tala-founder__portrait { flex: 0 0 40.48%; }

.tala-founders--count-1 .tala-founder__portrait img { object-position: 50% 30%; }

.tala-founders--count-1 .tala-founder__bio { padding: 34px 40px; }

.tala-section.tala-founders--count-1 .tala-founder__name { font-size: 32px; }

.tala-founders--count-1 .tala-founder__rule { margin: 16px 0; }

.tala-section.tala-founders--count-1 .tala-founder__text {
  font-size: 15px;
  line-height: 1.65;
}

.tala-section.tala-founders--count-1 .tala-founder__text p { margin-bottom: 12px; }
.tala-section.tala-founders--count-1 .tala-founder__text > :last-child { margin-bottom: 0; }

/* Begin a conversation */
.tala-section--contact .tala-stage {
  padding-top: 200px;
  padding-bottom: 44px;
}

.tala-contact__star {
  position: absolute;
  z-index: 4;
  top: 84px;
  left: 50%;
  width: 72px;
  height: 72px;
  margin-left: -36px;
}

.tala-contact__star .tala-star {
  width: 100%;
  height: 100%;
}

.tala-contact__panel {
  width: min(1040px, 72.23cqw);
  margin: 0 auto;
  padding: 56px 80px;
}

.tala-contact__invitation { text-align: center; }

.tala-section .tala-contact__panel .tala-heading {
  font-size: clamp(46px, 4.45cqw, 64px);
  text-align: center;
}

.tala-section .tala-contact__intro {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--tala-text);
}

.tala-section .tala-contact__email {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--tala-text);
}

.tala-section .tala-contact__email a,
.tala-section .tala-form__privacy a {
  color: var(--tala-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tala-contact__form--shortcode { margin-top: 38px; }

/* Built-in form */
.tala-section .tala-form {
  margin: 38px 0 0;
}

.tala-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 40px;
}

.tala-section .tala-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.tala-field--wide { grid-column: 1 / -1; }

.tala-field--submit { justify-content: flex-end; align-items: flex-start; }

.tala-section .tala-field label {
  margin: 0;
  font-family: var(--tala-sans);
  font-weight: 400;
  font-size: 11px;
  line-height: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tala-muted);
}

.tala-section .tala-field input,
.tala-section .tala-field select,
.tala-section .tala-field textarea {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  font-family: var(--tala-sans);
  font-size: 16px;
  line-height: 1.3;
  color: var(--tala-ink);
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--tala-rule);
  border-radius: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  outline: 0;
  transition: border-color 0.2s ease;
}

.tala-section .tala-field input:focus,
.tala-section .tala-field select:focus,
.tala-section .tala-field textarea:focus {
  border-bottom-color: var(--tala-ink);
  -webkit-box-shadow: none;
  box-shadow: 0 1px 0 0 var(--tala-ink);
}

.tala-section .tala-field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px var(--tala-cream) inset;
}

.tala-section .tala-field select {
  padding-right: 24px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 8'%3E%3Cpath d='M.5.4l5 6 5-6' fill='none' stroke='%231E1A16' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 11px 8px;
}

.tala-section .tala-field textarea {
  height: 84px;
  min-height: 84px;
  padding-top: 10px;
  resize: vertical;
}

.tala-section .tala-button--send {
  padding: 18px 44px;
  font-size: 13px;
  line-height: 16px;
}

.tala-section .tala-form__privacy {
  margin: 30px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--tala-muted);
}

.tala-form__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tala-section .tala-form__notice {
  margin: 38px 0 0;
  text-align: center;
}

.tala-section .tala-form__notice--success {
  padding: 30px 0 10px;
  font-family: var(--tala-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--tala-ink);
}

.tala-section .tala-form__notice--error {
  margin-bottom: -10px;
  font-size: 14px;
  color: #8a2a22;
}

/* ---------- Embedded forms (Gravity Forms; inputs also cover CF7 etc.) ----------
   Scoped to the "Begin a conversation" block; the doubled class keeps these
   ahead of Gravity Forms' own theme CSS and the parent theme's .button rules. */
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper {
  margin: 0;
  padding: 0;
  max-width: none;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_heading,
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_validation_container,
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield--type-honeypot,
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield_visibility_hidden,
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gform_hidden {
  display: none !important;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed form {
  margin: 0;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 30px 40px;
}

/* Fields and the footer share the form's grid, so a "half width" Send button
   can sit beside the last half-width field, where Gravity Forms leaves a .spacer */
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gform_body,
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gform_fields {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gform_fields > .spacer { display: none; }

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper :is(.gform_footer, .gform_page_footer) {
  grid-column: 1 / -1;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper form:has(.gform_fields > .spacer) .gform_footer {
  grid-column: span 6;
  align-self: end;
  margin-top: 0;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield--type-submit {
  align-self: end;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield--width-half { grid-column: span 6; }
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield--width-third { grid-column: span 4; }
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield--width-two-thirds { grid-column: span 8; }
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield--width-quarter { grid-column: span 3; }
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield--width-three-quarter { grid-column: span 9; }
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield--width-five-twelfths { grid-column: span 5; }
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield--width-seven-twelfths { grid-column: span 7; }

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield_label,
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper legend.gfield_label,
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .wpcf7 label {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-family: var(--tala-sans);
  font-weight: 400;
  font-size: 11px;
  line-height: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tala-muted);
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield_required {
  margin-left: 4px;
  color: var(--tala-accent);
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield_required .gfield_required_text {
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .ginput_complex label,
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gform-field-label--type-sub {
  margin: 6px 0 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tala-muted);
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .ginput_container {
  margin: 0;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed :is(input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="number"], [type="password"], [type="date"], [type="search"]), select, textarea) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  font-family: var(--tala-sans);
  font-size: 16px;
  line-height: 1.3;
  color: var(--tala-ink);
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--tala-rule);
  border-radius: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  outline: 0;
  transition: border-color 0.2s ease;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed :is(input, select, textarea):focus {
  border-bottom-color: var(--tala-ink);
  -webkit-box-shadow: none;
  box-shadow: 0 1px 0 0 var(--tala-ink);
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px var(--tala-cream) inset;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed select {
  padding-right: 24px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 8'%3E%3Cpath d='M.5.4l5 6 5-6' fill='none' stroke='%231E1A16' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 11px 8px;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed textarea,
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield textarea.large {
  height: 84px;
  min-height: 84px;
  padding-top: 10px;
  resize: vertical;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield_checkbox,
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield_radio {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 0;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gchoice,
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .ginput_container_consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper input:is([type="checkbox"], [type="radio"]) {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--tala-ink);
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gchoice label,
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .ginput_container_consent label {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tala-text);
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield_description {
  margin: 8px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tala-muted);
}

/* Validation */
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gform_validation_errors {
  margin: 0 0 30px;
  padding: 14px 18px;
  background: transparent;
  border: 1px solid #8a2a22;
  border-radius: 0;
  box-shadow: none;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gform_validation_errors > h2,
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gform_submission_error {
  margin: 0;
  font-family: var(--tala-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #8a2a22;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gform_validation_errors > h2 .gform-icon { display: none; }

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield_error :is(input, select, textarea) {
  border-bottom-color: #8a2a22;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield_error .gfield_label { color: #8a2a22; }

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .validation_message,
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield_validation_message {
  margin: 8px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #8a2a22;
  background: none;
  border: 0;
}

/* Submit */
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gform_footer,
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gform_page_footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed :is(input[type="submit"], button[type="submit"], .gform_button, .gform_next_button, .gform_previous_button) {
  display: inline-block;
  box-sizing: border-box;
  width: auto;
  height: auto;
  margin: 0;
  padding: 18px 44px;
  font-family: var(--tala-sans);
  font-weight: 700;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--tala-cream);
  background-color: var(--tala-ink);
  border: 1px solid var(--tala-ink);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed :is(input[type="submit"], button[type="submit"], .gform_button, .gform_next_button, .gform_previous_button):is(:hover, :focus-visible) {
  color: var(--tala-cream);
  background-color: var(--tala-accent);
  border-color: var(--tala-accent);
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gform_previous_button {
  color: var(--tala-ink);
  background-color: transparent;
}

.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_ajax_spinner {
  width: 18px;
  height: 18px;
  margin: 0;
}

/* Confirmation */
.tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_confirmation_message {
  padding: 10px 0;
  font-family: var(--tala-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  text-align: center;
  color: var(--tala-ink);
}

/* ---------- Footer ---------- */
.tala-footer {
  position: relative;
  background: rgba(246, 241, 232, 0.92);
  box-shadow: var(--tala-shadow);
}

.tala-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 80px;
}

.tala-theme .tala-footer__note,
.tala-theme .tala-footer__note p {
  margin: 0;
  font-family: var(--tala-sans);
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.1em;
  color: var(--tala-text);
}

.tala-theme .tala-footer__note a {
  color: inherit;
  text-decoration: none;
}

.tala-theme .tala-footer__note a:hover { text-decoration: underline; }

@media (max-width: 991px) {
  .tala-footer__inner {
    flex-direction: column;
    gap: 10px;
    padding: 26px 20px;
  }

  .tala-theme .tala-footer__note,
  .tala-theme .tala-footer__note p { line-height: 1.6; }
}

/* ==========================================================================
   Stacked layout (phones & tablets) — follows the 390px Figma frame
   ========================================================================== */
@container tala (max-width: 991px) {
  .tala-section.tala-section .tala-stage {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .tala-route--desktop,
  .tala-waypoint--desktop { display: none; }

  .tala-route--mobile { display: block; z-index: 1; }

  /* Solid (same tone as the 95% cream over the landscape) so the line
     passes cleanly behind the panels instead of showing through them */
  .tala-panel,
  .tala-founder,
  .tala-chip { background: #ece6dc; }

  .tala-panel {
    width: auto;
    max-width: 600px;
    margin-left: 16px;
    margin-right: 16px;
    padding: 32px 26px;
  }

  .tala-section .tala-eyebrow {
    margin-bottom: 16px;
    font-size: 11px;
    line-height: 13px;
    letter-spacing: 0.2em;
  }

  .tala-section .tala-heading,
  .tala-section .tala-constellation__panel .tala-heading,
  .tala-section .tala-movements__intro .tala-heading,
  .tala-section .tala-feature__panel .tala-heading,
  .tala-section .tala-possibilities__panel .tala-heading,
  .tala-section .tala-founders__intro .tala-heading,
  .tala-section .tala-contact__panel .tala-heading {
    font-size: 40px;
    line-height: 1.02;
  }

  .tala-section .tala-body {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.65;
  }

  .tala-section .tala-body p { margin-bottom: 12px; }

  .tala-actions { margin-top: 24px; }

  .tala-section .tala-actions .tala-button { display: block; width: 100%; }

  /* Center the stacked panels on tablets */
  .tala-hero__panel,
  .tala-constellation__panel,
  .tala-movements__intro,
  .tala-feature__panel,
  .tala-possibilities__panel,
  .tala-founders__intro,
  .tala-contact__panel {
    margin-left: max(16px, calc(50% - 300px));
    margin-right: max(16px, calc(50% - 300px));
  }

  /* Hero */
  .tala-section.tala-section--hero .tala-stage { padding-top: var(--tala-header-h); padding-bottom: 44px; }

  .tala-hero__bottle {
    position: relative;
    top: auto;
    left: auto;
    width: 180px;
    margin: 32px auto 52px;
  }

  .tala-hero__panel { padding: 34px 26px 32px; }

  .tala-section .tala-heading--hero {
    font-size: 48px;
    line-height: 1.04;
  }

  .tala-section .tala-hero__intro {
    margin-top: 20px;
    font-size: 16px;
  }

  .tala-hero__panel .tala-actions { margin-top: 26px; }

  /* Constellation — the winding map below the panel */
  .tala-constellation__map {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 390px;
    height: 660px;
    margin: 0 auto;
  }

  .tala-constellation__map .tala-waypoint {
    left: var(--mx);
    top: var(--my);
  }

  .tala-constellation__map .tala-waypoint__dot { width: 12px; height: 12px; }

  /* One line wherever it fits: a wrapped second line drops into the path
     of the route as it leaves the waypoint. */
  .tala-constellation__map .tala-waypoint__label {
    top: -7px;
    left: 16px;
    right: auto;
    width: max-content;
    max-width: calc(100vw - 72px);
    font-size: 10.5px;
    line-height: 14px;
    letter-spacing: 0.04em;
    white-space: normal;
    text-align: left;
  }

  .tala-constellation__map .tala-waypoint--m-left .tala-waypoint__label {
    left: auto;
    right: 16px;
    text-align: right;
  }

  /* Three movements — swipeable cards */
  .tala-movements__track {
    display: flex;
    gap: 14px;
    margin: 34px 0 0;
    padding: 0 16px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .tala-movements__track::-webkit-scrollbar { display: none; }

  /* Pinned: the cards hold still while vertical scrolling moves through them.
     child-theme.js adds .is-pinned, sizes the scroller and sets --tala-pin-top. */
  .tala-movements__scroller.is-pinned .tala-movements__pin {
    position: sticky;
    top: var(--tala-pin-top, 80px);
    z-index: 2;
  }

  .tala-movements__scroller.is-pinned .tala-movements__track {
    overflow-x: hidden;
    scroll-snap-type: none;
    touch-action: pan-y;
  }

  /* While pinned, the line travels with the cards: from under the header,
     behind the cards (showing in the gaps between them), ending at the centre
     of the progress dots. child-theme.js sets how much of it is drawn
     (--tala-pin-line) so it keeps pace with the rest of the route. */
  .tala-movements__scroller.is-pinned .tala-movements__pin::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--tala-pin-reach, 0px));
    left: 50%;
    width: 2px;
    height: var(--tala-pin-line, 0px);
    margin-left: -1px;
    background: #fff;
    border-radius: 1px;
    pointer-events: none;
    /* Never above the top of the section: there the route is still the curve
       arriving from the section before (child-theme.js sets --tala-pin-cut) */
    clip-path: inset(var(--tala-pin-cut, 0px) 0 0 0);
  }

  .tala-movements__scroller.is-stuck .tala-movements__pin::before {
    transition: height 0.6s ease;
  }

  /* The pinned line passes behind the heading panel, like the rest of the route */
  .tala-movements__intro { z-index: 3; }

  /* While the cards are pinned the landscape holds still too. A screen-sized
     view of the background sticks for exactly as long as the cards do, and
     the background further down the page is shifted to carry on from it.
     child-theme.js sizes and positions it (see "Pinned background"). */
  .tala-movements__scroller.is-pinned { position: relative; }

  .tala-pin-backdrop {
    position: absolute;
    left: 0;
    right: 0;
    z-index: -1;
    pointer-events: none;
  }

  .tala-pin-backdrop__view {
    background-color: var(--tala-earth);
    background-image: var(--tala-bg-image, url(_static/images/landscape-quiraing.jpg));
    background-repeat: no-repeat;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100lvh;
    visibility: hidden;
  }

  .tala-movements__scroller.is-stuck .tala-pin-backdrop__view { visibility: visible; }

  .tala-movement {
    flex: 0 0 min(340px, calc(100% - 34px));
    gap: 0;
    padding: 26px 26px 30px;
    scroll-snap-align: start;
    box-shadow: 0 18px 44px rgba(18, 28, 14, 0.3);
  }

  .tala-section .tala-movement__count {
    display: block;
    margin: 0;
    font-family: var(--tala-sans);
    font-weight: 700;
    font-size: 11px;
    line-height: 13px;
    letter-spacing: 0.04em;
    color: var(--tala-accent);
  }

  .tala-movement__num { display: none; }

  .tala-section .tala-movement__title {
    margin-top: 10px;
    font-size: 28px;
    line-height: 33px;
  }

  .tala-section .tala-movement__text {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.65;
  }

  .tala-movements__progress {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(310px, calc(100% - 80px));
    height: 60px;
    margin: 0 auto;
  }

  .tala-movements__progress::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 29px;
    height: 2px;
    background: rgba(255, 255, 255, 0.55);
  }

  .tala-movements__progress-dot {
    position: relative;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    margin: 0 -7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--tala-earth);
    transition: background-color 0.3s ease, transform 0.3s ease;
  }

  .tala-movements__progress-dot.is-active {
    background: #fff;
    transform: scale(1.15);
  }

  /* Feature — the star sits on the line above the panel */
  .tala-section.tala-section--feature .tala-stage { padding-bottom: 176px; }

  .tala-feature__star {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: 240px;
  }

  .tala-feature__star-icon {
    left: 50%;
    top: 120px;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
  }

  .tala-feature__star-text {
    left: calc(50% + 27px);
    right: auto;
    top: 88px;
    text-align: left;
    white-space: normal;
    max-width: 160px;
  }

  .tala-section .tala-feature__star-title { font-size: 24px; line-height: 29px; }

  .tala-section .tala-feature__star-caption {
    margin-top: 5px;
    font-size: 9.5px;
    line-height: 15px;
    letter-spacing: 0.06em;
    max-width: 110px;
  }

  /* Possibilities — the line moves to the left edge of the list */
  .tala-section.tala-section--possibilities .tala-stage {
    display: block;
    padding-bottom: 240px;
  }

  .tala-possibilities__list {
    width: auto;
    max-width: 560px;
    margin: 36px 16px 0 max(0px, calc(50% - 320px));
    padding-left: 40px;
  }

  .tala-possibilities__list ul { gap: 14px; }

  .tala-section .tala-chip--item {
    padding: 11px 16px;
    font-size: 20px;
    line-height: 1.19;
  }

  .tala-chip__dot {
    display: block;
    left: -27px;
    top: 50%;
    width: 12px;
    height: 12px;
  }

  /* Founders — swipeable cards with controls */
  .tala-section.tala-section--founders .tala-stage { padding-bottom: 36px; }

  .tala-founders__track {
    justify-content: flex-start;
    gap: 14px;
    margin-top: 36px;
    padding: 0 16px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .tala-founders__track::-webkit-scrollbar { display: none; }

  .tala-founders--count-1 .tala-founders__track {
    justify-content: center;
    margin-top: 36px;
    overflow: visible;
  }

  .tala-founders--count-1 .tala-founder { flex: 0 1 600px; }

  .tala-founders--count-1 .tala-founder__portrait {
    flex: 0 0 auto;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .tala-founders--count-1 .tala-founder__bio { padding: 24px 24px 28px; }

  .tala-founder {
    flex: 0 0 min(300px, calc(100% - 60px));
    flex-direction: column;
    min-height: 0;
    scroll-snap-align: start;
  }

  .tala-founder__portrait {
    flex: 0 0 250px;
    height: 250px;
  }

  .tala-founder__bio {
    justify-content: flex-start;
    padding: 20px 22px 24px;
  }

  .tala-section .tala-founder__text {
    font-size: 13.5px;
  }

  .tala-founders__controls {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 568px;
    margin: 2px auto 0;
    padding: 0 16px;
  }

  .tala-section .tala-round-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    color: #fff;
    background: rgba(30, 26, 22, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .tala-section .tala-round-button:hover { background: rgba(30, 26, 22, 0.7); }
  .tala-section .tala-round-button[disabled] { opacity: 0.4; cursor: default; }

  .tala-round-button svg { width: 16px; height: 16px; }

  .tala-founders__position {
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 12px rgba(10, 6, 2, 0.5);
  }

  .tala-section .tala-founders__next {
    margin: 0;
    font-family: var(--tala-serif);
    font-style: italic;
    font-size: 20px;
    line-height: 25px;
    color: #fff;
  }

  .tala-section .tala-founders__count {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 13px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.85);
  }

  .tala-founders__star {
    position: relative;
    z-index: 3;
    display: block;
    width: 52px;
    height: 52px;
    margin: 74px auto 0;
  }

  .tala-founders__star .tala-star { width: 100%; height: 100%; }

  /* Contact */
  .tala-section.tala-section--contact .tala-stage { padding-top: 0; padding-bottom: 64px; }
  .tala-section--contact .tala-route--mobile,
  .tala-contact__star { display: none; }

  .tala-contact__panel { padding: 32px 24px; }

  .tala-section .tala-contact__intro { margin-top: 16px; font-size: 15px; }
  .tala-section .tala-contact__email { font-size: 14px; }

  .tala-form__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .tala-section .tala-form { margin-top: 28px; }

  .tala-section .tala-button--send { width: 100%; }

  .tala-section .tala-form__privacy { margin-top: 22px; }

  .tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper form {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper .gfield[class*="gfield--width-"],
  .tala-section .tala-contact__panel .tala-form-embed.tala-form-embed .gform_wrapper form:has(.gform_fields > .spacer) .gform_footer { grid-column: 1 / -1; }

  .tala-section .tala-contact__panel .tala-form-embed.tala-form-embed :is(input[type="submit"], button[type="submit"], .gform_button) { width: 100%; }

  .tala-section .tala-contact__form--shortcode { margin-top: 28px; }

}

/* ==========================================================================
   The Journal (posts page, section archives and stories)
   Paper instead of the landscape; the landscape returns for the closing
   invitation. Same typefaces, accent and small-caps labels as the homepage.
   ========================================================================== */
:root {
  --tala-journal-paper: #f4eee4;
  --tala-journal-band: #eae1d3;
  --tala-line: #d3c8b7;
  --tala-meta: #6e6458;
  --tala-copy: #4a4239;
  --tala-ph: #d9d1c3;
  --tala-gold: #d9a25a;
  --tala-gutter: 80px;
}

@media (max-width: 991px) { :root { --tala-gutter: 32px; } }
@media (max-width: 640px) { :root { --tala-gutter: 20px; } }

html:has(body.tala-journal) { background-color: var(--tala-journal-paper); }

body.tala-theme.tala-journal {
  background-color: var(--tala-journal-paper);
  background-image: none;
}

.tala-journal .tala-header {
  background: rgba(244, 238, 228, 0.96);
  box-shadow: none;
  border-bottom: 1px solid var(--tala-line);
}

.tala-journal .tala-main { padding-top: var(--tala-header-h); }

.tala-journal .tala-footer {
  background: transparent;
  box-shadow: none;
  border-top: 1px solid var(--tala-line);
}

.tala-theme .tala-journal .tala-footer__note,
.tala-journal .tala-footer .tala-footer__note { color: var(--tala-copy); }

/* "Journal" in the menu while reading it */
.tala-theme .tala-nav__list > li > a.is-current { color: var(--tala-accent); }

/* ---------- Shared ---------- */
.tala-journal-page {
  color: var(--tala-ink);
  font-family: var(--tala-sans);
}

.tala-journal-page a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tala-journal-page a:hover { color: var(--tala-accent); }

.tala-journal-page em {
  font-style: italic;
  color: var(--tala-accent);
}

.tala-journal-page h1,
.tala-journal-page h2,
.tala-journal-page h3 {
  margin: 0;
  font-family: var(--tala-serif);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--tala-ink);
  text-transform: none;
}

.tala-journal-page h1 a,
.tala-journal-page h2 a,
.tala-journal-page h3 a { color: inherit; }

.tala-journal-page .tala-kicker {
  margin: 0;
  font-family: var(--tala-sans);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tala-accent);
}

.tala-journal-page .tala-meta {
  margin: 0;
  font-family: var(--tala-sans);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tala-meta);
}

.tala-journal-page .tala-meta--accent {
  font-weight: 700;
  color: var(--tala-accent);
}

.tala-journal-page .tala-more {
  display: inline-block;
  padding-bottom: 4px;
  font-family: var(--tala-sans);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--tala-ink);
  border-bottom: 1px solid var(--tala-accent);
}

.tala-journal-page .tala-btn {
  display: inline-block;
  padding: 18px 30px;
  font-family: var(--tala-sans);
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tala-cream);
  background: var(--tala-ink);
  transition: background-color 0.25s ease;
}

.tala-journal-page .tala-btn:hover,
.tala-journal-page .tala-btn:focus-visible {
  color: var(--tala-cream);
  background: var(--tala-accent);
}

/* Photographs (and a quiet placeholder for stories without one) */
.tala-journal-page .tala-ph {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--tala-ph);
}

.tala-journal-page .tala-ph img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tala-journal-page a.tala-ph:hover img { transform: scale(1.03); }

.tala-ph__mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(94, 85, 75, 0.3);
}

.tala-ph__star { width: 28px; height: 28px; }

.tala-dept__inner,
.tala-masthead,
.tala-featured,
.tala-archive,
.tala-related {
  box-sizing: border-box;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--tala-gutter);
  padding-right: var(--tala-gutter);
}

.tala-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 40px;
}

/* ---------- Masthead & filter ---------- */
.tala-masthead {
  padding-top: 88px;
  text-align: center;
}

.tala-journal-page .tala-masthead__title {
  margin-top: 18px;
  font-size: clamp(46px, 5.6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.tala-masthead__intro {
  max-width: 620px;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--tala-copy);
}

.tala-masthead__intro p { margin: 0; font-size: inherit; line-height: inherit; }

.tala-filter {
  margin-top: 46px;
  border-bottom: 1px solid var(--tala-line);
}

.tala-filter__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tala-filter__list li { margin: 0; padding: 0; }

.tala-journal-page .tala-filter__link {
  display: block;
  margin-bottom: -1px;
  padding: 10px 2px 12px;
  font-family: var(--tala-sans);
  font-weight: 700;
  font-size: 11px;
  line-height: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--tala-muted);
  border-bottom: 1.5px solid transparent;
}

.tala-journal-page .tala-filter__link.is-current {
  color: var(--tala-ink);
  border-bottom-color: var(--tala-accent);
}

/* ---------- Featured ---------- */
.tala-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 64px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.tala-journal-page .tala-featured__image { height: 600px; }

.tala-journal-page .tala-featured__title {
  margin-top: 18px;
  font-size: clamp(40px, 3.75vw, 54px);
  line-height: 1.02;
}

.tala-featured__dek {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--tala-copy);
}

.tala-featured__more { margin: 32px 0 0; }

/* ---------- Section heads ---------- */
.tala-dept__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}

.tala-journal-page .tala-dept__title {
  margin-top: 14px;
  font-size: clamp(38px, 3.5vw, 50px);
  line-height: 1;
}

.tala-dept__head--rule {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--tala-line);
}

.tala-journal-page .tala-dept__head--rule .tala-dept__title {
  margin-top: 12px;
  font-size: clamp(32px, 2.65vw, 38px);
}

/* ---------- Cards ---------- */
.tala-card { min-width: 0; }

.tala-journal-page .tala-ph--tall { height: 420px; }
.tala-journal-page .tala-ph--medium { height: 340px; }
.tala-journal-page .tala-ph--column { height: 380px; }
.tala-journal-page .tala-ph--short { height: 280px; }

.tala-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 0;
}

.tala-journal-page .tala-card__title {
  margin-top: 12px;
  font-size: 26px;
  line-height: 1.1;
}

.tala-card__dek {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--tala-copy);
}

/* ---------- Dark band ---------- */
.tala-dept--dark {
  margin-top: 72px;
  padding: 80px 0 88px;
  color: var(--tala-cream);
  background: var(--tala-ink);
}

.tala-journal-page .tala-dept--dark .tala-kicker { color: var(--tala-gold); }
.tala-journal-page .tala-dept--dark h2,
.tala-journal-page .tala-dept--dark h3 { color: var(--tala-cream); }
.tala-journal-page .tala-dept--dark em { color: var(--tala-gold); }
.tala-journal-page .tala-dept--dark a:hover { color: var(--tala-gold); }
.tala-journal-page .tala-dept--dark .tala-more { color: var(--tala-cream); }
.tala-journal-page .tala-dept--dark .tala-dept__title { font-size: clamp(40px, 3.9vw, 56px); line-height: 0.98; }
.tala-journal-page .tala-dept--dark .tala-ph { background: #2b251f; }
.tala-dept--dark .tala-ph__mark { color: rgba(167, 156, 140, 0.35); }

.tala-dark {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  margin-top: 48px;
}

.tala-journal-page .tala-dark__image { height: 520px; margin-bottom: 22px; }

.tala-journal-page .tala-dark__title {
  margin-top: 10px;
  font-size: clamp(30px, 2.6vw, 37px);
  line-height: 1.06;
}

.tala-dark__dek {
  max-width: 560px;
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: #d8cfc2;
}

.tala-dark__item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--tala-copy);
}

.tala-dark__item:first-child { padding-top: 0; }
.tala-dark__item:last-child { padding-bottom: 0; border-bottom: 0; }

.tala-journal-page .tala-dark__thumb { height: 210px; }

.tala-journal-page .tala-dark__item-title {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
}

/* ---------- Introduction + staggered pair ---------- */
.tala-dept--sticky { padding-top: 96px; }

.tala-sticky {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 64px;
}

.tala-sticky__intro {
  position: sticky;
  top: calc(var(--tala-header-h) + 40px);
  align-self: start;
}

.tala-sticky__text {
  margin: 20px 0 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--tala-copy);
}

.tala-sticky__more { margin: 28px 0 0; }

.tala-sticky__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

.tala-sticky__cards > :nth-child(even) { margin-top: 90px; }

/* ---------- Wide photograph ---------- */
.tala-dept--wide { padding-top: 104px; }

.tala-wide {
  position: relative;
  height: 620px;
  margin-top: 40px;
}

.tala-journal-page .tala-wide__image {
  position: absolute;
  inset: 0;
}

.tala-wide__panel {
  position: absolute;
  right: 56px;
  bottom: 56px;
  box-sizing: border-box;
  width: 460px;
  padding: 40px 44px;
  background: rgba(246, 241, 232, 0.96);
  box-shadow: 0 24px 60px rgba(18, 28, 14, 0.25);
}

.tala-journal-page .tala-wide__title {
  margin-top: 10px;
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: 1.06;
}

.tala-wide__dek {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--tala-copy);
}

.tala-wide__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.tala-journal-page .tala-mini {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.tala-journal-page .tala-mini__image { height: 110px; }
.tala-mini__image .tala-ph__star { width: 20px; height: 20px; }

.tala-mini .tala-meta { display: block; }

.tala-mini__title {
  display: block;
  margin-top: 6px;
  font-family: var(--tala-serif);
  font-size: 20px;
  line-height: 1.15;
}

/* ---------- Tinted band ---------- */
.tala-dept--band {
  margin-top: 104px;
  padding: 88px 0;
  background: var(--tala-journal-band);
}

.tala-dept--band .tala-grid { margin-top: 44px; }
.tala-journal-page .tala-dept--band .tala-ph { background: var(--tala-line); }

/* ---------- Two columns ---------- */
.tala-dept--columns { padding-top: 104px; }

.tala-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}

.tala-dept--single-column .tala-columns { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

.tala-column .tala-card { margin-top: 32px; }

.tala-journal-page .tala-textlink {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid var(--tala-line);
}

.tala-journal-page .tala-card + .tala-textlink { margin-top: 18px; }

.tala-textlink__title {
  display: block;
  margin-top: 6px;
  font-family: var(--tala-serif);
  font-size: 22px;
  line-height: 1.2;
}

/* ---------- The grid (Journal archives) ---------- */
.tala-archive {
  padding-top: 56px;
  padding-bottom: 112px;
}

.tala-archive .tala-grid { row-gap: 64px; }

.tala-archive__empty {
  margin: 0;
  padding: 40px 0;
  text-align: center;
  font-family: var(--tala-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--tala-copy);
}

.tala-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--tala-line);
}

.tala-journal-page .tala-pagination .page-numbers {
  padding-bottom: 4px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tala-muted);
  border-bottom: 1px solid transparent;
}

.tala-journal-page .tala-pagination .page-numbers.current {
  color: var(--tala-ink);
  border-bottom-color: var(--tala-accent);
}

/* ---------- Closing invitation, over the landscape ---------- */
.tala-invite {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 640px;
  margin-top: 112px;
  padding: 64px 0;
  background-color: var(--tala-earth);
  /* The whole photograph (not the homepage's centre strip), full width,
     framed on the sunlit peak */
  background-image: var(--tala-invite-image, url(_static/images/landscape-quiraing-full.jpg));
  background-repeat: no-repeat;
  background-position: center 6%;
  background-size: cover;
}

.tala-invite--post {
  min-height: 620px;
  margin-top: 96px;
}

.tala-invite__inner {
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--tala-gutter);
}

.tala-invite--post .tala-invite__inner { justify-content: flex-start; }

.tala-invite__panel {
  box-sizing: border-box;
  width: 760px;
  max-width: 100%;
  padding: 56px 64px;
  text-align: center;
  background: rgba(246, 241, 232, 0.95);
  box-shadow: 0 24px 60px rgba(18, 28, 14, 0.3);
}

.tala-invite--post .tala-invite__panel {
  width: 640px;
  padding: 54px 58px;
  text-align: left;
}

.tala-journal-page .tala-invite__title {
  margin-top: 14px;
  font-size: clamp(36px, 3.2vw, 46px);
  line-height: 1.02;
}

.tala-journal-page .tala-invite--post .tala-invite__title { font-size: clamp(36px, 3.4vw, 49px); line-height: 1; }

.tala-invite__text {
  max-width: 540px;
  margin: 18px auto 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--tala-copy);
}

.tala-invite--post .tala-invite__text { margin: 20px 0 0; font-size: 16px; }

.tala-invite__panel .tala-btn { margin-top: 30px; }

/* ---------- A story ---------- */
.tala-article__header {
  box-sizing: border-box;
  max-width: 1440px;
  margin: 0 auto;
  padding: 84px var(--tala-gutter) 56px;
  text-align: center;
}

.tala-journal-page .tala-crumbs a:hover { color: var(--tala-accent); }

.tala-crumbs__sep,
.tala-crumbs__dot { margin: 0 0.7em; }

.tala-journal-page .tala-crumbs__cat {
  font-weight: 700;
  color: var(--tala-accent);
}

.tala-journal-page .tala-article__title {
  max-width: 1000px;
  margin: 24px auto 0;
  font-size: clamp(44px, 5.9vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.tala-article__dek {
  max-width: 680px;
  margin: 26px auto 0;
  font-size: 20px;
  line-height: 1.6;
  color: var(--tala-copy);
}

.tala-article__hero {
  box-sizing: border-box;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--tala-gutter);
}

.tala-journal-page .tala-article__hero-image { height: clamp(300px, 50vw, 720px); }

.tala-journal-page figcaption,
.tala-journal-page .wp-element-caption,
.tala-journal-page .blocks-gallery-caption {
  margin: 12px 0 0;
  font-family: var(--tala-sans);
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  color: var(--tala-meta);
}

.tala-article__hero figcaption { text-align: right; }

/* The body: a 680px reading column; wide and full-width figures break out */
.tala-article__body {
  box-sizing: border-box;
  max-width: 1440px;
  margin: 72px auto 0;
  padding: 0 var(--tala-gutter);
}

.tala-journal-page .tala-article__body > * {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.tala-journal-page .tala-article__body p,
.tala-journal-page .tala-article__body li {
  font-family: var(--tala-sans);
  font-size: 19px;
  line-height: 1.8;
  color: var(--tala-text);
}

.tala-journal-page .tala-article__body > p { margin-top: 0; margin-bottom: 24px; }

.tala-journal-page .tala-article__body > ul,
.tala-journal-page .tala-article__body > ol { margin-top: 0; margin-bottom: 24px; padding-left: 1.2em; }

.tala-journal-page .tala-article__body p a,
.tala-journal-page .tala-article__body li a {
  text-decoration: underline;
  text-decoration-color: var(--tala-accent);
  text-underline-offset: 3px;
}

.tala-journal-page .tala-article__body > p:first-child::first-letter,
.tala-journal-page .tala-article__body > p.has-drop-cap::first-letter {
  float: left;
  margin: 0;
  padding: 10px 12px 0 0;
  font-family: var(--tala-serif);
  font-size: 84px;
  font-weight: 400;
  line-height: 0.8;
  color: var(--tala-accent);
}

.tala-journal-page .tala-article__body h2 {
  margin-top: 56px;
  margin-bottom: 18px;
  font-size: clamp(28px, 2.3vw, 33px);
  line-height: 1.1;
}

.tala-journal-page .tala-article__body h3 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.15;
}

.tala-journal-page .tala-article__body > figure,
.tala-journal-page .tala-article__body > .wp-block-image,
.tala-journal-page .tala-article__body > .wp-block-gallery {
  margin-top: 24px;
  margin-bottom: 48px;
}

.tala-journal-page .tala-article__body img {
  display: block;
  max-width: 100%;
  height: auto;
}

.tala-journal-page .tala-article__body > .alignwide { max-width: 960px; }

.tala-journal-page .tala-article__body > .alignfull {
  max-width: 1280px;
  margin-top: 40px;
  margin-bottom: 56px;
}

.tala-journal-page .tala-article__body > .alignfull img {
  width: 100%;
  height: clamp(280px, 45vw, 640px);
  object-fit: cover;
}

/* Two photographs side by side */
.tala-journal-page .tala-article__body .wp-block-gallery.has-nested-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tala-journal-page .tala-article__body .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
  width: auto;
  margin: 0;
}

.tala-journal-page .tala-article__body .wp-block-gallery.has-nested-images figure.wp-block-image img {
  width: 100%;
  height: clamp(260px, 39vw, 560px);
  object-fit: cover;
}

.tala-journal-page .tala-article__body .wp-block-gallery .blocks-gallery-caption { grid-column: 1 / -1; margin-top: -4px; }

/* Pull quote */
.tala-journal-page .tala-article__body > .wp-block-pullquote,
.tala-journal-page .tala-article__body > .wp-block-quote.is-style-large {
  max-width: 900px;
  margin: 58px auto;
  padding: 0;
  text-align: center;
  border: 0;
}

.tala-journal-page .tala-article__body .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }

.tala-journal-page .tala-article__body .wp-block-pullquote p,
.tala-journal-page .tala-article__body .wp-block-quote.is-style-large p {
  margin: 0;
  font-family: var(--tala-serif);
  font-style: italic;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.16;
  color: var(--tala-ink);
}

.tala-journal-page .tala-article__body .wp-block-pullquote cite,
.tala-journal-page .tala-article__body .wp-block-quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--tala-sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tala-meta);
}

.tala-journal-page .tala-article__body > .wp-block-quote:not(.is-style-large) {
  margin-top: 32px;
  margin-bottom: 32px;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--tala-accent);
}

.tala-journal-page .tala-article__body > .wp-block-quote:not(.is-style-large) p {
  font-family: var(--tala-serif);
  font-style: italic;
  font-size: 23px;
  line-height: 1.45;
  color: var(--tala-ink);
}

.tala-journal-page .tala-article__body > hr {
  margin-top: 48px;
  margin-bottom: 48px;
  border: 0;
  border-top: 1px solid var(--tala-line);
}

/* Places, byline, tags */
.tala-places,
.tala-article__footer {
  box-sizing: border-box;
  max-width: calc(680px + 2 * var(--tala-gutter));
  margin: 56px auto 0;
  padding: 0 var(--tala-gutter);
}

.tala-places__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tala-place {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--tala-line);
}

.tala-place:last-child { border-bottom: 1px solid var(--tala-line); }

.tala-journal-page .tala-place__name {
  margin: 0 0 4px;
  font-family: var(--tala-serif);
  font-size: 21px;
  line-height: 1.2;
  color: var(--tala-ink);
}

.tala-byline {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.tala-byline__portrait {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--tala-ph);
}

.tala-byline__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.tala-journal-page .tala-byline__name {
  margin: 4px 0 0;
  font-family: var(--tala-serif);
  font-size: 24px;
  line-height: 1.15;
  color: var(--tala-ink);
}

.tala-byline__bio {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--tala-copy);
}

.tala-article__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--tala-line);
}

.tala-share {
  display: flex;
  gap: 20px;
}

.tala-journal-page .tala-share button {
  margin: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tala-journal-page .tala-share button:hover { color: var(--tala-accent); }

/* More from the journal */
.tala-related {
  padding-top: 96px;
  padding-bottom: 96px;
}

.tala-related__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.tala-journal-page .tala-related__title { font-size: clamp(30px, 2.4vw, 35px); line-height: 1.1; }

.tala-related .tala-grid { margin-top: 34px; }

.tala-related .tala-card__meta { margin-top: 22px; }

.tala-journal-page .tala-related .tala-card__title { font-size: 24px; }

/* ---------- Journal: tablets and phones ---------- */
@media (max-width: 1199px) {
  .tala-featured { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; }
  .tala-sticky { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; }
  .tala-dark__item { grid-template-columns: 130px minmax(0, 1fr); }
  .tala-journal-page .tala-dark__thumb { height: 170px; }
  .tala-wide__row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 991px) {
  .tala-masthead { padding-top: 56px; }
  .tala-masthead__intro { font-size: 16.5px; }

  .tala-filter { margin-top: 32px; margin-left: calc(-1 * var(--tala-gutter)); margin-right: calc(-1 * var(--tala-gutter)); }

  .tala-filter__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0 26px;
    padding: 0 var(--tala-gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tala-filter__list::-webkit-scrollbar { display: none; }

  .tala-featured {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .tala-journal-page .tala-featured__image { height: clamp(280px, 62vw, 520px); }
  .tala-featured__dek { font-size: 16px; }
  .tala-featured__more { margin-top: 24px; }

  .tala-dept__head { flex-wrap: wrap; }

  .tala-dept--dark { margin-top: 32px; padding: 64px 0; }
  .tala-dark { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 36px; }
  .tala-journal-page .tala-dark__image { height: clamp(260px, 60vw, 460px); }

  .tala-dept--sticky,
  .tala-dept--wide,
  .tala-dept--columns { padding-top: 72px; }

  .tala-sticky { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tala-sticky__intro { position: static; }
  .tala-sticky__cards > :nth-child(even) { margin-top: 48px; }
  .tala-journal-page .tala-ph--tall { height: clamp(260px, 50vw, 420px); }

  .tala-wide { height: auto; margin-top: 32px; }
  .tala-journal-page .tala-wide__image { position: relative; height: clamp(260px, 60vw, 460px); }

  .tala-wide__panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -64px 20px 0;
    padding: 30px 28px;
  }

  .tala-wide__row { margin-top: 32px; }

  .tala-dept--band { margin-top: 72px; padding: 64px 0; }

  .tala-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 28px; }
  .tala-dept--band .tala-grid > :nth-child(3) { display: none; }

  .tala-columns { grid-template-columns: minmax(0, 1fr); gap: 72px; }

  .tala-invite,
  .tala-invite--post {
    min-height: 0;
    margin-top: 72px;
    padding: 96px 0;
  }

  .tala-invite--post .tala-invite__inner { justify-content: center; }

  .tala-invite__panel,
  .tala-invite--post .tala-invite__panel { padding: 40px 30px; }

  .tala-article__header { padding-top: 56px; padding-bottom: 40px; }
  .tala-article__dek { font-size: 18px; }
  .tala-article__body { margin-top: 48px; }

  .tala-journal-page .tala-article__body p,
  .tala-journal-page .tala-article__body li { font-size: 17.5px; line-height: 1.75; }

  .tala-journal-page .tala-article__body > p:first-child::first-letter,
  .tala-journal-page .tala-article__body > p.has-drop-cap::first-letter { font-size: 70px; padding-top: 8px; }

  .tala-related { padding-top: 72px; padding-bottom: 72px; }

  .tala-archive { padding-top: 40px; padding-bottom: 72px; }
  .tala-archive .tala-grid { row-gap: 48px; }
}

@media (max-width: 640px) {
  .tala-grid { grid-template-columns: minmax(0, 1fr); }
  .tala-dept--band .tala-grid > :nth-child(3) { display: block; }

  .tala-journal-page .tala-ph--medium,
  .tala-journal-page .tala-ph--column,
  .tala-journal-page .tala-ph--short { height: clamp(220px, 66vw, 340px); }

  .tala-sticky__cards { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .tala-sticky__cards > :nth-child(even) { margin-top: 0; }

  .tala-dark__item { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 22px 0; }
  .tala-journal-page .tala-dark__thumb { height: 120px; }
  .tala-journal-page .tala-dark__item-title { font-size: 21px; }

  .tala-wide__panel { margin: -48px 12px 0; padding: 26px 22px; }
  .tala-journal-page .tala-mini { grid-template-columns: 84px minmax(0, 1fr); }
  .tala-journal-page .tala-mini__image { height: 84px; }

  .tala-journal-page .tala-article__body .wp-block-gallery.has-nested-images { grid-template-columns: minmax(0, 1fr); }

  .tala-related__head { flex-direction: column; align-items: flex-start; }
  .tala-article__tags { flex-direction: column; align-items: flex-start; }
}

/* ---------- Block editor ---------- */
.editor-styles-wrapper .tala-section {
  background: var(--tala-earth) url(_static/images/landscape-quiraing.jpg) center top / cover no-repeat;
}

.editor-styles-wrapper .tala-section--hero .tala-stage { padding-top: 140px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .tala-js [data-route-point]:not(.is-lit) .tala-waypoint__dot,
  .tala-js [data-route-point]:not(.is-lit) .tala-chip__dot,
  .tala-js [data-route-point]:not(.is-lit) .tala-waypoint__label,
  .tala-js [data-route-point]:not(.is-lit) .tala-feature__star-text,
  .tala-js [data-route-point]:not(.is-lit) .tala-star {
    opacity: 1;
    transform: none;
  }

  .tala-js [data-route-point]:not(.is-lit) .tala-waypoint__dot,
  .tala-js [data-route-point]:not(.is-lit) .tala-chip__dot {
    transform: translate(-50%, -50%);
  }
}
