/* Sobre nosotros / About us / À propos: one type scale and the red thread.
   Loaded after the legacy sheets on the three about pages only, so every
   rule is scoped to main.tsf-about-aman. */

main.tsf-about-aman {
  --about-h1: clamp(40px, 4.2vw, 60px);
  --about-h2: clamp(34px, 3.3vw, 50px);
  --about-h3: clamp(24px, 2vw, 30px);
  --about-body: clamp(18px, 1.45vw, 21px);
  --about-eyebrow: 11px;
  --about-red: var(--red, #c6192e);
  --about-ink: #201c19;
}

/* ---- Type scale -------------------------------------------------------- */

main.tsf-about-aman h1 {
  font-size: var(--about-h1);
  line-height: 1;
}

main.tsf-about-aman section h2 {
  font-size: var(--about-h2) !important;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 14px 0 22px;
}

main.tsf-about-aman section h2 em {
  font-weight: 400;
}

main.tsf-about-aman section h3,
main.tsf-about-aman .tsf-about-aman__timeline > span,
main.tsf-about-aman .tsf-about-aman__services-track strong {
  font-size: var(--about-h3);
  line-height: 1.08;
}

main.tsf-about-aman .tsf-about-aman__copy p:not(.tsf-about-aman__eyebrow):not(.tsf-about-aman__note),
main.tsf-about-aman .tsf-about-aman__services-intro {
  font-family: var(--font-display, Georgia, serif);
  font-size: var(--about-body);
  line-height: 1.6;
}

main.tsf-about-aman .tsf-about-aman__eyebrow,
main.tsf-about-aman .tsf-about-aman__timeline p,
main.tsf-about-aman .tsf-about-aman__services-track small,
main.tsf-about-aman .tsf-about-aman__services-track b {
  font-family: var(--font-ui, Arial, sans-serif);
  font-size: var(--about-eyebrow);
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}

main.tsf-about-aman .tsf-about-aman__eyebrow {
  margin: 0 0 4px;
}

/* The handwritten red phrases share one size everywhere. */
main.tsf-about-aman .tsf-about-aman__note {
  font-size: var(--about-h3);
  letter-spacing: -.04em;
  line-height: 1.05;
  max-width: none;
  position: relative;
  white-space: normal;
  width: fit-content;
}

main.tsf-about-aman .tsf-about-aman__opening .tsf-about-aman__note {
  margin-left: auto;
  margin-right: auto;
}

main.tsf-about-aman .tsf-about-aman__farewell p {
  font-size: var(--about-h2);
  letter-spacing: -.045em;
  line-height: 1.02;
}

/* ---- Red phrases: written by hand, then underlined ----------------------- */

.tsf-about-ink {
  display: block;
  height: 14px;
  left: -2%;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  top: 100%;
  width: 104%;
}

.tsf-about-ink path {
  fill: none;
  stroke: var(--about-red);
  stroke-linecap: round;
  stroke-width: 1.6;
}

.tsf-about-ink-text {
  display: block;
}

html.tsf-about-thread-ready main.tsf-about-aman .tsf-about-ink-text {
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 230% 100%;
  mask-size: 230% 100%;
  opacity: 0;
  transition: -webkit-mask-position 1.5s cubic-bezier(.45, .05, .25, 1), mask-position 1.5s cubic-bezier(.45, .05, .25, 1), opacity .35s ease;
}

html.tsf-about-thread-ready main.tsf-about-aman .is-written .tsf-about-ink-text {
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  opacity: 1;
}

html.tsf-about-thread-ready .tsf-about-ink path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .75s cubic-bezier(.6, 0, .3, 1) 1.25s;
}

html.tsf-about-thread-ready .is-written .tsf-about-ink path {
  stroke-dashoffset: 0;
}

/* Red words inside the titles settle in once the title is on screen. */
html.tsf-about-thread-ready main.tsf-about-aman [data-about-reveal] h2 em,
html.tsf-about-thread-ready main.tsf-about-aman [data-about-reveal] h3 em {
  display: inline-block;
  opacity: 0;
  transform: translateY(.18em);
  transition: opacity .9s ease .45s, transform 1.1s cubic-bezier(.22, .61, .2, 1) .45s;
}

html.tsf-about-thread-ready main.tsf-about-aman [data-about-reveal].is-visible h2 em,
html.tsf-about-thread-ready main.tsf-about-aman [data-about-reveal].is-visible h3 em {
  opacity: 1;
  transform: none;
}

/* The eyebrow the thread arrives at gets a short red stroke. */
html.tsf-about-thread-ready main.tsf-about-aman [data-about-thread-stop]::before {
  background: var(--about-red);
  content: '';
  display: inline-block;
  height: 1px;
  margin-right: 10px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s cubic-bezier(.22, .61, .2, 1);
  vertical-align: middle;
  width: 22px;
}

html.tsf-about-thread-ready main.tsf-about-aman [data-about-thread-stop].is-reached::before {
  transform: scaleX(1);
}

/* ---- The red thread between chapters ------------------------------------ */

.tsf-about-route__line {
  display: none;
}

.tsf-about-thread {
  fill: none;
  stroke: var(--about-red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  opacity: .8;
}

.tsf-about-knot {
  fill: #f6f0e8;
  opacity: 0;
  stroke: var(--about-red);
  stroke-width: 1.4;
  transform: scale(.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .3s ease, transform .5s cubic-bezier(.3, 1.6, .5, 1);
}

.tsf-about-knot.is-reached {
  fill: var(--about-red);
  opacity: 1;
  transform: scale(1);
}

main.tsf-about-aman .tsf-about-route__traveller {
  r: 3px;
}

/* ---- 2015 · El proyecto se expande: la foto acompaña la lectura ------------ */

/* overflow: clip recorta igual que hidden pero permite position: sticky. */
@supports (overflow: clip) {
  main.tsf-about-aman { overflow: clip; }
}

@media (min-width: 761px) {
  main.tsf-about-aman .tsf-about-aman__chapter {
    align-items: start;
    gap: clamp(40px, 5.5vw, 96px);
    grid-template-columns: minmax(260px, .78fr) minmax(320px, 1fr);
  }
  main.tsf-about-aman .tsf-about-aman__chapter figure {
    align-self: start;
    margin-top: clamp(40px, 5vw, 80px);
    position: sticky;
    top: clamp(110px, 14vh, 150px);
  }
  main.tsf-about-aman .tsf-about-aman__chapter .tsf-about-aman__copy {
    align-self: start;
    max-width: 660px;
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.tsf-about-thread-ready main.tsf-about-aman .tsf-about-ink-text,
  html.tsf-about-thread-ready main.tsf-about-aman [data-about-reveal] h2 em,
  html.tsf-about-thread-ready main.tsf-about-aman [data-about-reveal] h3 em {
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.tsf-about-thread-ready .tsf-about-ink path {
    stroke-dashoffset: 0;
    transition: none;
  }
}

/* ---- «Otros momentos, otras miradas»: mismo formato que en las landings ----
   Sobre nosotros usa su propio marcado y JS (tarjetas propias de esta página);
   aquí solo se le aplican las medidas y estilos del bloque estándar. */

main.tsf-about-aman section.tsf-about-aman__services {
  background: var(--red, #c6192e);
  color: #fffaf4;
  padding: clamp(54px, 6.5vw, 84px) 0;
}

main.tsf-about-aman section.tsf-about-aman__services > header,
main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-rail {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
  width: calc(100% - 11.2vw);
}

main.tsf-about-aman section.tsf-about-aman__services > header {
  align-items: end;
  display: grid;
  gap: 15px 34px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
  margin-bottom: clamp(28px, 3.2vw, 42px);
  margin-top: 0;
  padding: 0;
  text-align: left;
}

main.tsf-about-aman section.tsf-about-aman__services > header .tsf-about-aman__eyebrow {
  color: #ffd6dc;
  font-family: var(--font-ui, Inter, sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.43;
  margin: 0 0 15px;
}

main.tsf-about-aman section.tsf-about-aman__services > header h2 {
  color: #fffaf4;
  font-size: clamp(37px, 4.2vw, 62px) !important;
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .86;
  margin: 0;
}

main.tsf-about-aman section.tsf-about-aman__services > header h2 em {
  color: #111;
  font-style: italic;
  font-weight: 400;
}

main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-intro {
  color: #fffaf4;
  font-family: var(--font-ui, Inter, sans-serif);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 3px;
  max-width: 360px;
}

main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-rail { position: relative; }

main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-track {
  gap: clamp(15px, 2vw, 26px);
  padding: 0;
}

main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-track a {
  aspect-ratio: auto;
  color: #fff;
  display: block;
  flex: 0 0 calc((min(1180px, 100vw - 10vw) - clamp(30px, 4vw, 52px)) / 3);
  height: auto;
  isolation: isolate;
  min-height: clamp(320px, 32vw, 430px);
  overflow: hidden;
  position: relative;
}

main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-track a img {
  aspect-ratio: auto;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  width: 100%;
  z-index: -2;
}

main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-track a:is(:hover, :focus-visible) img { transform: scale(1.055) !important; }

main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-track a::after {
  background: linear-gradient(180deg, rgba(15, 6, 6, .12) 10%, rgba(15, 6, 6, .79) 88%);
  content: '';
  display: block;
  inset: 0;
  position: absolute;
  z-index: -1;
}

main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-track a > span {
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  left: 0;
  padding: clamp(19px, 2vw, 26px);
  position: absolute;
  right: 0;
  top: auto;
  z-index: 1;
}

main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-track :is(small, b) {
  color: #fff;
  font-family: var(--font-ui, Inter, sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.43;
  margin: 0;
  text-transform: uppercase;
}

main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-track strong {
  color: #fff;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(19px, 1.5vw, 28px);
  font-weight: 500;
  letter-spacing: -.022em;
  line-height: 1;
  white-space: nowrap;
}

main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-track b {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .6);
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  padding-top: 10px;
}

main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-track b i {
  font-size: 21px;
  font-style: normal;
  font-weight: 400;
  line-height: .5;
  transition: transform .25s ease;
}

main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-track a:is(:hover, :focus-visible) b i { transform: translateX(5px); }

main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-arrow {
  align-items: center;
  background: transparent;
  border: 0;
  color: #111;
  cursor: pointer;
  display: flex;
  font-family: Arial, sans-serif;
  font-size: 32px;
  height: 48px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity .2s ease, transform .2s ease;
  width: 42px;
  z-index: 2;
}
main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-arrow--previous { left: clamp(-58px, -4vw, -24px); }
main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-arrow--next { right: clamp(-58px, -4vw, -24px); }
main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-arrow:is(:hover, :focus-visible) { transform: translateY(-50%) scale(1.12); }
main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-arrow:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-arrow:disabled { cursor: default; opacity: .25; pointer-events: none; }

main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-dots {
  gap: 9px;
  margin: 28px auto 0;
  min-height: 12px;
}
main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-dots button {
  background: rgba(255, 250, 244, .48);
  height: 7px;
  transition: background-color .2s ease, transform .2s ease;
  width: 7px;
}
main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-dots button[aria-current="true"] {
  background: #fffaf4;
  transform: scale(1.35);
}

@media (max-width: 760px) {
  main.tsf-about-aman section.tsf-about-aman__services { padding: 56px 0; }
  main.tsf-about-aman section.tsf-about-aman__services > header,
  main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-rail { width: calc(100% - 52px); }
  main.tsf-about-aman section.tsf-about-aman__services > header { display: block; margin-bottom: 28px; }
  main.tsf-about-aman section.tsf-about-aman__services > header .tsf-about-aman__eyebrow { margin-bottom: 0; }
  main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-intro { margin-top: 22px; }
  main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-viewport { margin-right: -5vw; }
  main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-track a {
    flex-basis: min(78vw, 340px);
    min-height: 330px;
  }
  main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-track strong {
    letter-spacing: normal;
    white-space: normal;
  }
  main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-arrow {
    background: rgba(255, 250, 242, .94);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(12, 9, 8, .28);
    color: #171411;
    height: 40px;
    top: calc(50% - 20px);
    transform: none;
    width: 40px;
    z-index: 3;
  }
  main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-arrow:is(:hover, :focus-visible) { transform: none; }
  main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-arrow--previous { left: 6px; right: auto; }
  main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-arrow--next { left: auto; right: 6px; }
  main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-arrow span { font-size: 20px; line-height: 1; }
  main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-arrow:disabled { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-track a img,
  main.tsf-about-aman section.tsf-about-aman__services .tsf-about-aman__services-track b i { transition: none; }
}
